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

The underlying struct was renamed, in LibreSSL 3.8.2:
openbsd/src@7d242c1

Follow-up to open-eid#550.

Signed-off-by: Klemens Nanni <[email protected]>
  • Loading branch information
klemensn committed Nov 12, 2024
1 parent 23055e4 commit c725b9a
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 @@ -56,7 +56,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 c725b9a

Please sign in to comment.