summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2016-11-25 18:36:40 +0800
committerIru Cai <mytbk920423@gmail.com>2016-12-01 10:56:28 +0800
commit474476fe4d0dbe63b03ecb55c3d81ae21d0a41d0 (patch)
treea4d4fd108c9a34d2559b4fac4022ce6c95c7743f
parentd808f9446ac54768b13b1f9abd4ec7a93cadcb6f (diff)
downloadfqterm-474476fe4d0dbe63b03ecb55c3d81ae21d0a41d0.tar.xz
EVP_MD_CTX_new for libressl
-rw-r--r--src/protocol/internal/ssh_diffie-hellman.h3
1 files changed, 2 insertions, 1 deletions
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 <openssl/sha.h>
#include <openssl/evp.h>
-#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