fix failing tests with pthreads enabled

This commit is contained in:
Steffen Jaeckel 2017-05-11 14:51:27 +02:00
parent d6a77f5d6d
commit e6cd8e8112
3 changed files with 6 additions and 0 deletions

View File

@ -48,7 +48,9 @@ int pkcs_1_eme_test(void)
mp_clear_multi(key->d, key->e, key->N, key->dQ, key->dP, key->qP, key->p, key->q, NULL); mp_clear_multi(key->d, key->e, key->N, key->dQ, key->dP, key->qP, key->p, key->q, NULL);
} /* for */ } /* for */
#ifndef LTC_PTHREAD
unregister_prng(&no_prng_desc); unregister_prng(&no_prng_desc);
#endif
return 0; return 0;
} }

View File

@ -48,7 +48,9 @@ int pkcs_1_oaep_test(void)
mp_clear_multi(key->d, key->e, key->N, key->dQ, key->dP, key->qP, key->p, key->q, NULL); mp_clear_multi(key->d, key->e, key->N, key->dQ, key->dP, key->qP, key->p, key->q, NULL);
} /* for */ } /* for */
#ifndef LTC_PTHREAD
unregister_prng(&no_prng_desc); unregister_prng(&no_prng_desc);
#endif
return 0; return 0;
} }

View File

@ -49,7 +49,9 @@ int pkcs_1_pss_test(void)
mp_clear_multi(key->d, key->e, key->N, key->dQ, key->dP, key->qP, key->p, key->q, NULL); mp_clear_multi(key->d, key->e, key->N, key->dQ, key->dP, key->qP, key->p, key->q, NULL);
} /* for */ } /* for */
#ifndef LTC_PTHREAD
unregister_prng(&no_prng_desc); unregister_prng(&no_prng_desc);
#endif
return 0; return 0;
} }