diff --git a/crypto.c b/crypto.c index b962ac6..9f8300d 100644 --- a/crypto.c +++ b/crypto.c @@ -71,9 +71,11 @@ int get_method(char *password, char *method) int crypto_init(char *password, char *method) { +#if OPENSSL_VERSION_NUMBER < 0x10100000L ERR_load_crypto_strings(); OpenSSL_add_all_algorithms(); OPENSSL_config(NULL); +#endif if (get_method(password, method) == -1) return -1; @@ -83,8 +85,10 @@ int crypto_init(char *password, char *method) void crypto_exit(void) { +#if OPENSSL_VERSION_NUMBER < 0x10100000L EVP_cleanup(); ERR_free_strings(); +#endif } int add_iv(int sockfd, struct link *ln)