You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
360 B

  1. diff --git a/src/rand.c b/src/rand.c
  2. index 10cd025..63fbb0d 100644
  3. --- a/src/rand.c
  4. +++ b/src/rand.c
  5. @@ -226,7 +226,9 @@ int li_rand_bytes (unsigned char *buf, int num)
  6. void li_rand_cleanup (void)
  7. {
  8. #ifdef USE_OPENSSL_CRYPTO
  9. + #if OPENSSL_VERSION_NUMBER < 0x10100000L
  10. RAND_cleanup();
  11. + #endif
  12. #endif
  13. safe_memclear(xsubi, sizeof(xsubi));
  14. }