fix LTC_EASY test failure
This commit is contained in:
parent
e5a2683f5b
commit
8349eda5a5
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user