Skip to content

Commit

Permalink
mail/datovka: Fix build with openssl3
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Aug 7, 2023
1 parent ebc2ad8 commit e1cfb4d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
8 changes: 1 addition & 7 deletions mail/datovka/Makefile
Expand Up @@ -19,10 +19,4 @@ USE_GL= gl
USE_QT= buildtools core gui network printsupport sql svg websockets \
widgets

.include <bsd.port.pre.mk>

.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
CXXFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L
.endif

.include <bsd.port.post.mk>
.include <bsd.port.mk>
12 changes: 12 additions & 0 deletions mail/datovka/files/patch-src_crypto_crypto.c
@@ -0,0 +1,12 @@
--- src/crypto/crypto.c.orig 2023-08-07 16:26:04 UTC
+++ src/crypto/crypto.c
@@ -312,7 +312,9 @@ int crypto_init(void)
OpenSSL_add_all_algorithms();

ERR_load_crypto_strings();
+#if OPENSSL_VERSION_NUMBER < 0x30000000L
ERR_load_CMS_strings();
+#endif
//ERR_free_strings();

if (NULL != ca_certs) {

0 comments on commit e1cfb4d

Please sign in to comment.