openbsd-ports/security/xca/patches/patch-lib_openssl_compat_h
tb 9c458d98c4 security/xca: unbreak after libcrypto bump
The last update brought compat implementations for EVP_Digest{Sign,Verify}
which break the build after these functions were added to libcrypto.

ok sthen
2021-05-12 12:34:46 +00:00

16 lines
525 B
Plaintext

$OpenBSD: patch-lib_openssl_compat_h,v 1.3 2021/05/12 12:34:47 tb Exp $
Index: lib/openssl_compat.h
--- lib/openssl_compat.h.orig
+++ lib/openssl_compat.h
@@ -120,7 +120,8 @@ static inline void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX
#endif
-#if OPENSSL_VERSION_NUMBER < 0x10101000L || defined LIBRESSL_VERSION_NUMBER
+#if OPENSSL_VERSION_NUMBER < 0x10101000L || \
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x3040000fL)
static inline int
EVP_DigestSign(EVP_MD_CTX *ctx, unsigned char *sigret,