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.

23 lines
555 B

  1. --- a/crypto-openssl.c
  2. +++ b/crypto-openssl.c
  3. @@ -20,6 +20,7 @@
  4. #include <string.h>
  5. #include <errno.h>
  6. #include <openssl/pem.h>
  7. +#include <openssl/rsa.h>
  8. #include "config.h"
  9. #include "sysdep.h"
  10. #include "crypto.h"
  11. @@ -35,10 +36,12 @@ crypto_ctx *crypto_ctx_new(crypto_error **error)
  12. return NULL;
  13. }
  14. +#if OPENSSL_VERSION_NUMBER < 0x10100000L
  15. OpenSSL_add_all_ciphers();
  16. OpenSSL_add_all_digests();
  17. OpenSSL_add_all_algorithms();
  18. ERR_load_crypto_strings();
  19. +#endif
  20. memset(ctx, 0, sizeof(crypto_ctx));
  21. ctx->stack = sk_X509_new_null();