summaryrefslogtreecommitdiffstats
path: root/apps/req.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-11-20 22:45:06 +0000
committerDr. Stephen Henson <steve@openssl.org>2003-11-20 22:45:06 +0000
commita8287a90ead0b3d266f2555885790edc7cbd7cbd (patch)
tree8a89e234850a25dba3632bfaba220c90198d79ed /apps/req.c
parentad5f0ed509932281a1e2c32a70fbf8354b02da33 (diff)
Give CRLDP its standard name.
Max req -x509 use V1 if extensions section absent.
Diffstat (limited to 'apps/req.c')
-rw-r--r--apps/req.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/req.c b/apps/req.c
index bbef942860..79217c9082 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -907,7 +907,7 @@ loop:
if ((x509ss=X509_new()) == NULL) goto end;
/* Set version to V3 */
- if(!X509_set_version(x509ss, 2)) goto end;
+ if(extensions && !X509_set_version(x509ss, 2)) goto end;
if (serial)
{
if (!X509_set_serialNumber(x509ss, serial)) goto end;