Skip to content

Commit 41cbe45

Browse files
committed
Fix typedef redefinition for struct env_md_ctx_st to unbreak with LibreSSL
The underlying struct was renamed, in LibreSSL 3.8.2: openbsd/src@7d242c1 Follow-up to #550. Signed-off-by: Klemens Nanni <kn@openbsd.org>
1 parent db756a7 commit 41cbe45

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
@@ -56,7 +56,7 @@
5656
#define URI_ECDSA_SHA384 "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384"
5757
#define URI_ECDSA_SHA512 "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512"
5858

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

0 commit comments

Comments
 (0)