fix LTC_EASY test failure

This commit is contained in:
Karel Miko 2018-10-06 11:24:47 +02:00 committed by Steffen Jaeckel
parent e5a2683f5b
commit 8349eda5a5

View File

@ -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));