b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 15 | if (!isns_openssl_init) { |
| 16 | - ERR_load_crypto_strings(); |
| 17 | #if OPENSSL_API_COMPAT < 0x10100000L |
| 18 | + ERR_load_crypto_strings(); |
| 19 | OpenSSL_add_all_algorithms(); |
| 20 | OpenSSL_add_all_ciphers(); |
| 21 | OpenSSL_add_all_digests(); |
| 22 | -#else |
| 23 | - OPENSSL_init_crypto(); |
| 24 | #endif |
| 25 | isns_openssl_init = 1; |
| 26 | } |