commit:     71ce9988d2ada07fa18ba2b845a4c126cb06d884
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 24 05:23:43 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Aug 24 05:24:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71ce9988

net-mail/courier-imap: openssl gendh is no more valid

Closes: https://bugs.gentoo.org/956634
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../{courier-imap-5.2.11.ebuild => courier-imap-5.2.11-r1.ebuild}  | 0
 net-mail/courier-imap/files/mkimapdcert                            | 7 -------
 net-mail/courier-imap/files/mkpop3dcert                            | 5 -----
 3 files changed, 12 deletions(-)

diff --git a/net-mail/courier-imap/courier-imap-5.2.11.ebuild 
b/net-mail/courier-imap/courier-imap-5.2.11-r1.ebuild
similarity index 100%
rename from net-mail/courier-imap/courier-imap-5.2.11.ebuild
rename to net-mail/courier-imap/courier-imap-5.2.11-r1.ebuild

diff --git a/net-mail/courier-imap/files/mkimapdcert 
b/net-mail/courier-imap/files/mkimapdcert
index 1261e12c9021..3c03c4e332f6 100644
--- a/net-mail/courier-imap/files/mkimapdcert
+++ b/net-mail/courier-imap/files/mkimapdcert
@@ -1,7 +1,5 @@
 #! /bin/sh
 #
-# mkimapdcert,v 1.1 2001/01/02 03:54:25 drobbins Exp
-#
 # Copyright 2000 Double Precision, Inc.  See COPYING for
 # distribution information.
 #
@@ -13,7 +11,6 @@ test -x /usr/bin/openssl || exit 0
 
 prefix="/usr"
 pemfile="/etc/courier-imap/imapd.pem"
-randfile="/etc/courier-imap/imapd.rand"
 
 if test -f $pemfile
 then
@@ -27,13 +24,9 @@ chown root $pemfile
 
 cleanup() {
        rm -f $pemfile
-       rm -f $randfile
        exit 1
 }
 
-dd if=/dev/urandom of=$randfile count=1 2>/dev/null
 /usr/bin/openssl req -new -x509 -days 365 -nodes \
        -config /etc/courier-imap/imapd.cnf -out $pemfile -keyout $pemfile || 
cleanup
-/usr/bin/openssl gendh -rand $randfile 512 >> $pemfile || cleanup
 /usr/bin/openssl x509 -subject -dates -fingerprint -noout -in $pemfile || 
cleanup
-rm -f $randfile

diff --git a/net-mail/courier-imap/files/mkpop3dcert 
b/net-mail/courier-imap/files/mkpop3dcert
index 6a55e99f9c8e..3b8a41f77613 100644
--- a/net-mail/courier-imap/files/mkpop3dcert
+++ b/net-mail/courier-imap/files/mkpop3dcert
@@ -13,7 +13,6 @@ test -x /usr/bin/openssl || exit 0
 
 prefix="/usr"
 pemfile="/etc/courier-imap/pop3d.pem"
-randfile="/etc/courier-imap/pop3d.rand"
 
 if test -f $pemfile
 then
@@ -27,13 +26,9 @@ chown root $pemfile
 
 cleanup() {
        rm -f $pemfile
-       rm -f $randfile
        exit 1
 }
 
-dd if=/dev/urandom of=$randfile count=1 2>/dev/null
 /usr/bin/openssl req -new -x509 -days 365 -nodes \
        -config /etc/courier-imap/pop3d.cnf -out $pemfile -keyout $pemfile || 
cleanup
-/usr/bin/openssl gendh -rand $randfile 512 >> $pemfile || cleanup
 /usr/bin/openssl x509 -subject -dates -fingerprint -noout -in $pemfile || 
cleanup
-rm -f $randfile

Reply via email to