tests: Add a password callback for eet_test_identiy

Summary:
For whatever reason the test is stalling for me waiting for me to
entire a password at make time.  Provide one internally.

Reviewers: devilhorns, zmike

Reviewed By: zmike

Subscribers: cedric, #committers, zmike

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6528
This commit is contained in:
Derek Foreman 2018-07-09 16:39:56 -04:00 committed by Mike Blumenkrantz
parent 14f10bfd64
commit 64c66dfca9
1 changed files with 7 additions and 1 deletions

View File

@ -156,11 +156,17 @@ EFL_START_TEST(eet_test_identity_open_pkcs8)
}
EFL_END_TEST
static int
pw_cb(char *buf EINA_UNUSED, int size EINA_UNUSED, int rwflag EINA_UNUSED, void *data EINA_UNUSED)
{
return 0;
}
EFL_START_TEST(eet_test_identity_open_pkcs8_enc)
{
Eet_Key *k = NULL;
k = eet_identity_open(_cert_pem, _key_enc_pem, NULL);
k = eet_identity_open(_cert_pem, _key_enc_pem, pw_cb);
fail_if(k);
if (k)