Unverified Commit 155e39dc authored by vysheng's avatar vysheng Committed by GitHub

Merge pull request #15 from vitlav/master

fix build with openssh 1.0.x
parents 2fd27cb0 fcb804cb
......@@ -18,6 +18,12 @@
2016 Nikolai Durov
*/
#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;
......
......@@ -21,6 +21,12 @@
#pragma once
#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;
......
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