Commit fcb804cb authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix build with openssh 1.0.x

parent 2fd27cb0
...@@ -18,6 +18,12 @@ ...@@ -18,6 +18,12 @@
2016 Nikolai Durov 2016 Nikolai Durov
*/ */
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER < 0x10100000
#define EVP_MD_CTX_new EVP_MD_CTX_create
#define EVP_MD_CTX_free EVP_MD_CTX_destroy
#endif
typedef EVP_MD_CTX sha1_context; typedef EVP_MD_CTX sha1_context;
......
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
#pragma once #pragma once
#include <openssl/evp.h> #include <openssl/evp.h>
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER < 0x10100000
#define EVP_MD_CTX_new EVP_MD_CTX_create
#define EVP_MD_CTX_free EVP_MD_CTX_destroy
#endif
typedef EVP_MD_CTX sha256_context; typedef EVP_MD_CTX sha256_context;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment