[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Richard Levitte
levitte at openssl.org
Mon Dec 4 09:28:54 UTC 2017
The branch OpenSSL_1_1_0-stable has been updated
via d25cb36b6213d9058e9acdb24a84331b93111125 (commit)
from e6f38fb817d831ed093f7d7140325783b5556d8f (commit)
- Log -----------------------------------------------------------------
commit d25cb36b6213d9058e9acdb24a84331b93111125
Author: Markus Sauermann <openssl at sauermann-consulting.de>
Date: Sun Dec 3 13:23:21 2017 +0100
Adjusted Argument Indices
CLA: trivial
Reviewed-by: Rich Salz <rsalz at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4835)
(cherry picked from commit 1e2804f25c80136c33f3508adb54b24106b6b6f6)
-----------------------------------------------------------------------
Summary of changes:
apps/CA.pl.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/apps/CA.pl.in b/apps/CA.pl.in
index 3187e47..7277eec 100644
--- a/apps/CA.pl.in
+++ b/apps/CA.pl.in
@@ -145,7 +145,7 @@ if ($WHAT eq '-newcert' ) {
print "CA certificate is in ${CATOP}/$CACERT\n" if $RET == 0;
}
} elsif ($WHAT eq '-pkcs12' ) {
- my $cname = $ARGV[1];
+ my $cname = $ARGV[0];
$cname = "My Certificate" unless defined $cname;
$RET = run("$PKCS12 -in $NEWCERT -inkey $NEWKEY"
. " -certfile ${CATOP}/$CACERT"
@@ -178,12 +178,12 @@ if ($WHAT eq '-newcert' ) {
$RET = run("$CA -gencrl -out ${CATOP}/crl/$CACRL");
print "Generated CRL is in ${CATOP}/crl/$CACRL\n" if $RET == 0;
} elsif ($WHAT eq '-revoke' ) {
- my $cname = $ARGV[1];
+ my $cname = $ARGV[0];
if (!defined $cname) {
print "Certificate filename is required; reason optional.\n";
exit 1;
}
- my $reason = $ARGV[2];
+ my $reason = $ARGV[1];
$reason = " -crl_reason $reason"
if defined $reason && crl_reason_ok($reason);
$RET = run("$CA -revoke \"$cname\"" . $reason);
More information about the openssl-commits
mailing list