Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Fix build issue with LibreSSL
Browse files Browse the repository at this point in the history
LibreSSL defines OPENSSL_VERSION_NUMBER as 0x20000000L though being forked from 1.0.1f
LibreSSL defines LIBRESSL_VERSION_NUMBER
  • Loading branch information
Sp1l authored Feb 11, 2017
1 parent 864e225 commit 727544f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/log/cert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ using util::StatusOr;
using util::error::Code;


#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(OPENSSL_IS_BORINGSSL)
#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(OPENSSL_IS_BORINGSSL) || defined(LIBRESSL_VERSION_NUMBER)
// Backport from 1.0.2-beta3.
static int i2d_re_X509_tbs(X509* x, unsigned char** pp) {

This comment has been minimized.

Copy link
@donnakids2018

donnakids2018 May 15, 2018

Donna E Santiago

x->cert_info->enc.modified = 1;
return i2d_X509_CINF(x->cert_info, pp);
}
#endif

#if OPENSSL_VERSION_NUMBER < 0x10002000L
#if OPENSSL_VERSION_NUMBER < 0x10002000L || defined(LIBRESSL_VERSION_NUMBER)
static int X509_get_signature_nid(const X509* x) {
return OBJ_obj2nid(x->sig_alg->algorithm);
}
Expand Down

0 comments on commit 727544f

Please sign in to comment.