Skip to content

Commit ab797fb

Browse files
authored
Fix typedef redefinition for struct env_md_ctx_st to unbreak with LibreSSL (#636)
The underlying struct was renamed, in LibreSSL 3.8.2: openbsd/src@7d242c1 Follow-up to #550. Signed-off-by: Klemens Nanni <[email protected]>
1 parent 148aee8 commit ab797fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto/Digest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
#define URI_ECDSA_SHA384 "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384"
5858
#define URI_ECDSA_SHA512 "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512"
5959

60-
#ifdef LIBRESSL_VERSION_NUMBER
60+
#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3080200fL
6161
using EVP_MD_CTX = struct env_md_ctx_st;
6262
#else
6363
using EVP_MD_CTX = struct evp_md_ctx_st;

0 commit comments

Comments
 (0)