From 8349eda5a5091b24339b1721111883ed583b5585 Mon Sep 17 00:00:00 2001 From: Karel Miko Date: Sat, 6 Oct 2018 11:24:47 +0200 Subject: [PATCH] fix LTC_EASY test failure --- tests/rsa_test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/rsa_test.c b/tests/rsa_test.c index dbc242b6..642a506e 100644 --- a/tests/rsa_test.c +++ b/tests/rsa_test.c @@ -342,11 +342,13 @@ static int _rsa_import_x509(const void *in, unsigned long inlen, void *key) return rsa_import_x509(in, inlen, key); } +#if defined(LTC_MD2) && defined(LTC_MD5) && defined(LTC_RC2) static int _rsa_import_pkcs8(const void *in, unsigned long inlen, void *key) { return rsa_import_pkcs8(in, inlen, "secret", 6, key); } #endif +#endif int rsa_test(void) { @@ -375,7 +377,9 @@ int rsa_test(void) #ifdef LTC_TEST_READDIR DO(test_process_dir("tests/rsa", &key, _rsa_import_x509, (dir_cleanup_cb)rsa_free, "rsa_test")); +#if defined(LTC_MD2) && defined(LTC_MD5) && defined(LTC_RC2) DO(test_process_dir("tests/rsa-pkcs8", &key, _rsa_import_pkcs8, (dir_cleanup_cb)rsa_free, "rsa_pkcs8_test")); +#endif #endif DO(_rsa_issue_301(prng_idx));