DVCS (see RFC 3029) was missing among the possible purposes.
authorRichard Levitte <levitte@openssl.org>
Wed, 29 Jan 2003 15:06:35 +0000 (15:06 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 29 Jan 2003 15:06:35 +0000 (15:06 +0000)
Notified privately to me by Peter Sylvester <Peter.Sylvester@EdelWeb.fr>,
one of the authors of said RFC

crypto/x509v3/v3_purp.c
crypto/x509v3/x509v3.h

index b739e4fd837cf41093298c1116bfbf7e2afdd87b..4d145f71fd036f420d719b9d6e4a23d42a3f4507 100644 (file)
@@ -378,6 +378,10 @@ static void x509v3_cache_extensions(X509 *x)
                                case NID_time_stamp:
                                x->ex_xkusage |= XKU_TIMESTAMP;
                                break;
+
+                               case NID_dvcs:
+                               x->ex_xkusage |= XKU_DVCS;
+                               break;
                        }
                }
                sk_ASN1_OBJECT_pop_free(extusage, ASN1_OBJECT_free);
index e1334b47177b0436ec89f1438a2b471befdfec61..b4dd52a95121f10afe12498eca89b3fa43a1182a 100644 (file)
@@ -351,6 +351,7 @@ DECLARE_ASN1_SET_OF(POLICYINFO)
 #define XKU_SGC                        0x10
 #define XKU_OCSP_SIGN          0x20
 #define XKU_TIMESTAMP          0x40
+#define XKU_DVCS               0x80
 
 #define X509_PURPOSE_DYNAMIC   0x1
 #define X509_PURPOSE_DYNAMIC_NAME      0x2