Skip to content

Commit

Permalink
Fix typedef redefinition for struct env_md_ctx_st to unbreak with Lib…
Browse files Browse the repository at this point in the history
…reSSL (#636)

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>
  • Loading branch information
klemensn authored Dec 2, 2024
1 parent 148aee8 commit ab797fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/Digest.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#define URI_ECDSA_SHA384 "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha384"
#define URI_ECDSA_SHA512 "http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512"

#ifdef LIBRESSL_VERSION_NUMBER
#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3080200fL
using EVP_MD_CTX = struct env_md_ctx_st;
#else
using EVP_MD_CTX = struct evp_md_ctx_st;
Expand Down

0 comments on commit ab797fb

Please sign in to comment.