]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_engine_dh.c: Fix indent args so the code
authorJoe Orton <jorton@apache.org>
Thu, 4 Aug 2011 08:04:20 +0000 (08:04 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 4 Aug 2011 08:04:20 +0000 (08:04 +0000)
  regeneration modifies the OpenSSL output correctly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1153773 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_engine_dh.c

index 91d2df472d9988c822977314e7a249aae743d0e8..0239924b37f6a8ca806300fcaac46014676865e2 100644 (file)
@@ -175,12 +175,14 @@ close(FP);
 $dhinfo =~ s|^|** |mg;
 $dhinfo = "\n\/\*\n$dhinfo\*\/\n\n";
 
+my $indent_args = "-i4 -npsl -di0 -br -nce -d0 -cli0 -npcs -nfc1";
+
 #   generate C source from DH params
 my $dhsource = '';
-open(FP, "openssl dh -noout -C -in dh512.pem | indent | expand |") || die;
+open(FP, "openssl dh -noout -C -in dh512.pem | indent $indent_args | 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 dh1024.pem | indent $indent_args | expand |") || die;
 $dhsource .= $_ while (<FP>);
 close(FP);
 $dhsource =~ s|(DH\s+\*get_dh)(\d+)[^}]*\n}|static $1$2(void)