fix failing tests with pthreads enabled
This commit is contained in:
parent
d6a77f5d6d
commit
e6cd8e8112
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user