Skip to content

Commit 8349eda

Browse files
karel-msjaeckel
authored andcommitted
fix LTC_EASY test failure
1 parent e5a2683 commit 8349eda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/rsa_test.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,11 +342,13 @@ static int _rsa_import_x509(const void *in, unsigned long inlen, void *key)
342342
return rsa_import_x509(in, inlen, key);
343343
}
344344

345+
#if defined(LTC_MD2) && defined(LTC_MD5) && defined(LTC_RC2)
345346
static int _rsa_import_pkcs8(const void *in, unsigned long inlen, void *key)
346347
{
347348
return rsa_import_pkcs8(in, inlen, "secret", 6, key);
348349
}
349350
#endif
351+
#endif
350352

351353
int rsa_test(void)
352354
{
@@ -375,7 +377,9 @@ int rsa_test(void)
375377

376378
#ifdef LTC_TEST_READDIR
377379
DO(test_process_dir("tests/rsa", &key, _rsa_import_x509, (dir_cleanup_cb)rsa_free, "rsa_test"));
380+
#if defined(LTC_MD2) && defined(LTC_MD5) && defined(LTC_RC2)
378381
DO(test_process_dir("tests/rsa-pkcs8", &key, _rsa_import_pkcs8, (dir_cleanup_cb)rsa_free, "rsa_pkcs8_test"));
382+
#endif
379383
#endif
380384

381385
DO(_rsa_issue_301(prng_idx));

0 commit comments

Comments
 (0)