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.

21 lines
498 B

  1. --- a/lib/openssl/compat.h
  2. +++ b/lib/openssl/compat.h
  3. @@ -17,6 +17,7 @@
  4. #pragma once
  5. +#include <openssl/bn.h>
  6. #include <openssl/hmac.h>
  7. #include <openssl/ec.h>
  8. #include <openssl/ecdsa.h>
  9. --- a/lib/openssl/misc.c
  10. +++ b/lib/openssl/misc.c
  11. @@ -185,6 +185,8 @@ add_entity(json_t *root, json_t *obj, const char *plural, ...)
  12. static void __attribute__((constructor))
  13. constructor(void)
  14. {
  15. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  16. OpenSSL_add_all_algorithms();
  17. +#endif
  18. RAND_poll();
  19. }