FreeBSD Bugzilla – Attachment 157602 Details for
Bug 200756
[patch] www/apache22: Logjam DH params workaround for Apache 2.2.x due to lack of "SSLOpenSSLConfCmd" directive
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch deliver without curling.
patch-modules__ssl__ssl_engine_dh.c.in (text/plain), 1.81 KB, created by
florian.heigl
on 2015-06-10 08:17:51 UTC
(
hide
)
Description:
patch deliver without curling.
Filename:
MIME Type:
Creator:
florian.heigl
Created:
2015-06-10 08:17:51 UTC
Size:
1.81 KB
patch
obsolete
>--- modules/ssl/ssl_engine_dh.c 2006-07-12 03:38:44.000000000 +0000 >+++ modules/ssl/ssl_engine_dh.c 2015-05-20 15:25:17.610098218 +0000 >@@ -104,8 +104,8 @@ > >- if (nKeyLen == 512) >- dh = get_dh512(); >- else if (nKeyLen == 1024) >- dh = get_dh1024(); >+ if (nKeyLen == 2048) >+ dh = get_dh2048(); >+ else if (nKeyLen == 3072) >+ dh = get_dh3072(); > else >- dh = get_dh1024(); >+ dh = get_dh3072(); > return dh; >@@ -153,3 +153,3 @@ > # generate the DH parameters >-print "1. Generate 512 and 1024 bit Diffie-Hellman parameters (p, g)\n"; >+print "1. Generate 2048 and 3072 bit Diffie-Hellman parameters (p, g)\n"; > my $rand = ''; >@@ -163,4 +163,4 @@ > $rand = "-rand $rand" if ($rand ne ''); >-system("openssl gendh $rand -out dh512.pem 512"); >-system("openssl gendh $rand -out dh1024.pem 1024"); >+system("openssl gendh $rand -out dh2048.pem 2048"); >+system("openssl gendh $rand -out dh3072.pem 3072"); > >@@ -168,6 +168,6 @@ > my $dhinfo = ''; >-open(FP, "openssl dh -noout -text -in dh512.pem |") || die; >+open(FP, "openssl dh -noout -text -in dh2048.pem |") || die; > $dhinfo .= $_ while (<FP>); > close(FP); >-open(FP, "openssl dh -noout -text -in dh1024.pem |") || die; >+open(FP, "openssl dh -noout -text -in dh3072.pem |") || die; > $dhinfo .= $_ while (<FP>); >@@ -179,6 +179,6 @@ > my $dhsource = ''; >-open(FP, "openssl dh -noout -C -in dh512.pem | indent | expand |") || die; >+open(FP, "openssl dh -noout -C -in dh2048.pem | indent | expand |") || die; > $dhsource .= $_ while (<FP>); > close(FP); >-open(FP, "openssl dh -noout -C -in dh1024.pem | indent | expand |") || die; >+open(FP, "openssl dh -noout -C -in dh3072.pem | indent | expand |") || die; > $dhsource .= $_ while (<FP>); >@@ -205,4 +205,4 @@ > # cleanup >-unlink("dh512.pem"); >-unlink("dh1024.pem"); >+unlink("dh2048.pem"); >+unlink("dh3072.pem");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 200756
: 157602