2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

EVP_CIPHER_CTX_new and EVP_CIPHER_CTX_free exist in OpenSSL 1.0.1

This commit is contained in:
Mark Andrews
2018-10-26 10:01:14 +11:00
parent 826c3ddc5b
commit 632a0ae10b
2 changed files with 4 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ OPENSSL_zalloc(size_t size)
return (ret); return (ret);
} }
#if OPENSSL_VERSION_NUMBER < 0x10001000L || defined(LIBRESSL_VERSION_NUMBER)
EVP_CIPHER_CTX * EVP_CIPHER_CTX *
EVP_CIPHER_CTX_new(void) EVP_CIPHER_CTX_new(void)
{ {
@@ -47,6 +48,7 @@ EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx)
OPENSSL_free(ctx); OPENSSL_free(ctx);
} }
} }
#endif
EVP_MD_CTX * EVP_MD_CTX *
EVP_MD_CTX_new(void) EVP_MD_CTX_new(void)

View File

@@ -21,8 +21,10 @@
#include <openssl/hmac.h> #include <openssl/hmac.h>
void *OPENSSL_zalloc(size_t size); void *OPENSSL_zalloc(size_t size);
#if OPENSSL_VERSION_NUMBER < 0x10001000L || defined(LIBRESSL_VERSION_NUMBER)
EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void); EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void);
void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx); void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx);
#endif
EVP_MD_CTX *EVP_MD_CTX_new(void); EVP_MD_CTX *EVP_MD_CTX_new(void);
void EVP_MD_CTX_free(EVP_MD_CTX *ctx); void EVP_MD_CTX_free(EVP_MD_CTX *ctx);
int EVP_MD_CTX_reset(EVP_MD_CTX *ctx); int EVP_MD_CTX_reset(EVP_MD_CTX *ctx);