From 474476fe4d0dbe63b03ecb55c3d81ae21d0a41d0 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 25 Nov 2016 18:36:40 +0800 Subject: EVP_MD_CTX_new for libressl --- src/protocol/internal/ssh_diffie-hellman.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/internal/ssh_diffie-hellman.h b/src/protocol/internal/ssh_diffie-hellman.h index f132493..0716d48 100644 --- a/src/protocol/internal/ssh_diffie-hellman.h +++ b/src/protocol/internal/ssh_diffie-hellman.h @@ -5,7 +5,8 @@ #include #include -#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \ + !defined(LIBRESSL_VERSION_NUMBER) #define ssh_md_ctx_new EVP_MD_CTX_new #define ssh_md_ctx_free EVP_MD_CTX_free #else -- cgit v1.2.3