summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2018-07-09 16:39:56 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-07-09 16:39:56 -0400
commit64c66dfca99fd7c35372f482375ef302cc621f94 (patch)
tree3faa11cff5f8c6a36528d2993337a66804fa87b1
parent14f10bfd641f7c2e91b9d0ea581e872777d9cdb4 (diff)
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
-rw-r--r--src/tests/eet/eet_test_identity.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tests/eet/eet_test_identity.c b/src/tests/eet/eet_test_identity.c
index 641a53fa78..b22d537021 100644
--- a/src/tests/eet/eet_test_identity.c
+++ b/src/tests/eet/eet_test_identity.c
@@ -156,11 +156,17 @@ EFL_START_TEST(eet_test_identity_open_pkcs8)
156} 156}
157EFL_END_TEST 157EFL_END_TEST
158 158
159static int
160pw_cb(char *buf EINA_UNUSED, int size EINA_UNUSED, int rwflag EINA_UNUSED, void *data EINA_UNUSED)
161{
162 return 0;
163}
164
159EFL_START_TEST(eet_test_identity_open_pkcs8_enc) 165EFL_START_TEST(eet_test_identity_open_pkcs8_enc)
160{ 166{
161 Eet_Key *k = NULL; 167 Eet_Key *k = NULL;
162 168
163 k = eet_identity_open(_cert_pem, _key_enc_pem, NULL); 169 k = eet_identity_open(_cert_pem, _key_enc_pem, pw_cb);
164 fail_if(k); 170 fail_if(k);
165 171
166 if (k) 172 if (k)