Skip to content

Commit

Permalink
Allow compiling with LibreSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Skuta committed Dec 21, 2017
1 parent 9c24f24 commit ee7f061
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/crypto_openssl.c
Expand Up @@ -128,7 +128,7 @@ IMPLEMENT_ASN1_FUNCTIONS(RecipientInfo)
IMPLEMENT_ASN1_FUNCTIONS(SignatureData)
IMPLEMENT_ASN1_FUNCTIONS(CryptoData)

#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
/* Openssl Version < 1.1 */

#define OBJ_get0_data(o) ((o)->data)
Expand Down Expand Up @@ -233,7 +233,7 @@ struct Digest {
JCR *jcr;
crypto_digest_t type;

#if OPENSSL_VERSION_NUMBER < 0x10100000L
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
/* Openssl Version < 1.1 */
private:
EVP_MD_CTX ctx;
Expand Down

0 comments on commit ee7f061

Please sign in to comment.