aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDirkjan Bussink <d.bussink@gmail.com>2020-12-22 19:40:08 +0100
committerJakub Jelen <jjelen@redhat.com>2021-01-11 10:45:22 +0100
commit38806e1dd87f9d6bf6e6a88634bdf342a4b6c74c (patch)
tree693ee9bc9fc5a96332702ec3d3ccf35f663bf777 /src
parenta1e8c985d1f1da0561a155d46a580b0b732e727c (diff)
downloadlibssh-38806e1dd87f9d6bf6e6a88634bdf342a4b6c74c.tar.gz
libssh-38806e1dd87f9d6bf6e6a88634bdf342a4b6c74c.tar.xz
libssh-38806e1dd87f9d6bf6e6a88634bdf342a4b6c74c.zip
Remove no longer needed compatibility function
Since OpenSSL 1.0.1 is the minimum version, this function is always available so no compatibility check is needed anymore. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcrypto-compat.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/libcrypto-compat.c b/src/libcrypto-compat.c
index 8700a9b5..33b8dffd 100644
--- a/src/libcrypto-compat.c
+++ b/src/libcrypto-compat.c
@@ -236,23 +236,6 @@ void EVP_MD_CTX_free(EVP_MD_CTX *ctx)
OPENSSL_free(ctx);
}
-#ifndef HAVE_OPENSSL_EVP_CIPHER_CTX_NEW
-EVP_CIPHER_CTX *EVP_CIPHER_CTX_new(void)
-{
- EVP_CIPHER_CTX *ctx = OPENSSL_malloc(sizeof(EVP_CIPHER_CTX));
- if (ctx != NULL) {
- EVP_CIPHER_CTX_init(ctx);
- }
- return ctx;
-}
-
-void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx)
-{
- EVP_CIPHER_CTX_cleanup(ctx);
- OPENSSL_free(ctx);
-}
-#endif
-
void DH_get0_pqg(const DH *dh,
const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
{