Skip to content

Commit

Permalink
fix build with openssh 1.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
vitlav committed May 30, 2018
1 parent 2fd27cb commit d97f0ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common/sha1.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
*/
#include <openssl/evp.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;

void sha1_starts (sha1_context *ctx);
Expand Down
5 changes: 5 additions & 0 deletions common/sha256.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@

#include <openssl/evp.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;

void sha256_starts (sha256_context *ctx);
Expand Down

0 comments on commit d97f0ac

Please sign in to comment.