Skip to content

Commit

Permalink
mail/cyrus-imapd38: Fix build against libreSSL.
Browse files Browse the repository at this point in the history
PR:		277997
Reported by:	David Marec <david@lapinbilly.eu>
  • Loading branch information
Hajimu UMEMOTO authored and Hajimu UMEMOTO committed Mar 28, 2024
1 parent 46f72f8 commit e305190
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mail/cyrus-imapd38/files/patch-imap__tls.c
@@ -0,0 +1,14 @@
--- imap/tls.c.orig 2024-03-13 02:47:44 UTC
+++ imap/tls.c
@@ -257,7 +257,11 @@ static DH *get_dh1024(void)
dh = DH_new();
if (!dh) return NULL;

+#if defined(LIBRESSL_VERSION_NUMBER)
+ p = BN_get_rfc2409_prime_1024(NULL);
+#else
p = get_rfc2409_prime_1024(NULL);
+#endif
BN_dec2bn(&g, "2");

if (DH_set0_pqg(dh, p, NULL, g))

0 comments on commit e305190

Please sign in to comment.