Give CRLDP its standard name.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 20 Nov 2003 22:45:06 +0000 (22:45 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 20 Nov 2003 22:45:06 +0000 (22:45 +0000)
Max req -x509 use V1 if extensions section absent.

apps/req.c
crypto/x509v3/v3_crld.c

index bbef942..79217c9 100644 (file)
@@ -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;
index 894a8b9..f90829c 100644 (file)
@@ -156,7 +156,7 @@ ASN1_SEQUENCE(DIST_POINT) = {
 IMPLEMENT_ASN1_FUNCTIONS(DIST_POINT)
 
 ASN1_ITEM_TEMPLATE(CRL_DIST_POINTS) = 
-       ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, DIST_POINT, DIST_POINT)
+       ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, CRLDistributionPoints, DIST_POINT)
 ASN1_ITEM_TEMPLATE_END(CRL_DIST_POINTS)
 
 IMPLEMENT_ASN1_FUNCTIONS(CRL_DIST_POINTS)