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.

26 lines
595 B

  1. --- a/pki.c
  2. +++ b/pki.c
  3. @@ -15,6 +15,8 @@
  4. #include <openssl/pem.h>
  5. #include <openssl/err.h>
  6. #include <openssl/evp.h>
  7. +#include <openssl/dsa.h>
  8. +#include <openssl/bn.h>
  9. #endif
  10. #include <libisns/isns.h>
  11. #include "security.h"
  12. @@ -97,13 +99,11 @@ isns_create_dsa_context(void)
  13. isns_security_t *ctx;
  14. if (!isns_openssl_init) {
  15. - ERR_load_crypto_strings();
  16. #if OPENSSL_API_COMPAT < 0x10100000L
  17. + ERR_load_crypto_strings();
  18. OpenSSL_add_all_algorithms();
  19. OpenSSL_add_all_ciphers();
  20. OpenSSL_add_all_digests();
  21. -#else
  22. - OPENSSL_init_crypto();
  23. #endif
  24. isns_openssl_init = 1;
  25. }