Skip to content

Commit

Permalink
libressl>3.5 has X509_REVOKED_get0_serialNumber
Browse files Browse the repository at this point in the history
Patch from tassilo.

Change-Id: I3d7f66201f006e5b22a3faf56d64d399d7340e38
  • Loading branch information
grke committed Nov 3, 2022
1 parent e161ac3 commit 426922b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/ca.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ int ca_x509_verify_crl(struct conf **confs,
revoked=(X509_REVOKED *)
sk_X509_REVOKED_value(X509_CRL_get_REVOKED(crl), i);
if(!ASN1_INTEGER_cmp(
#if OPENSSL_VERSION_NUMBER < 0x1010000fL || defined(LIBRESSL_VERSION_NUMBER)
#if OPENSSL_VERSION_NUMBER < 0x1010000fL || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x30500000L)
revoked->serialNumber,
#else
X509_REVOKED_get0_serialNumber(revoked),
Expand Down

0 comments on commit 426922b

Please sign in to comment.