diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-29 12:10:18 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-12-29 12:10:18 +0000 |
commit | 1a99e62a65d376a97346430a9f54e9a7a8005a1e (patch) | |
tree | 25bf68695c8ca18cbcc253139eec889cd3a13a69 /lib | |
parent | 34561b4f0546a8de113fabd802c2d2a292999640 (diff) | |
download | gnutls-1a99e62a65d376a97346430a9f54e9a7a8005a1e.tar.gz |
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pkix.asn | 4 | ||||
-rw-r--r-- | lib/pkix_asn1_tab.c | 4 | ||||
-rw-r--r-- | lib/x509/extensions.c | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/lib/pkix.asn b/lib/pkix.asn index 2e81cee619..c43743b90b 100644 --- a/lib/pkix.asn +++ b/lib/pkix.asn @@ -200,8 +200,8 @@ DistributionPoint ::= SEQUENCE { -- This does not work since it does not tag elements. DistributionPointName ::= SEQUENCE { - fullName [0] GeneralNames --- nameRelativeToCRLIssuer [1] RelativeDistinguishedName + fullName [0] GeneralNames OPTIONAL, + nameRelativeToCRLIssuer [1] RelativeDistinguishedName OPTIONAL } ReasonFlags ::= BIT STRING { diff --git a/lib/pkix_asn1_tab.c b/lib/pkix_asn1_tab.c index 12bb3dff7b..d47aa460ae 100644 --- a/lib/pkix_asn1_tab.c +++ b/lib/pkix_asn1_tab.c @@ -182,8 +182,10 @@ const ASN1_ARRAY_TYPE pkix_asn1_tab[]={ {"cRLIssuer",536895490,"GeneralNames"}, {0,4104,"2"}, {"DistributionPointName",1610612741,0}, - {"fullName",536879106,"GeneralNames"}, + {"fullName",1610637314,"GeneralNames"}, {0,4104,"0"}, + {"nameRelativeToCRLIssuer",536895490,"RelativeDistinguishedName"}, + {0,4104,"1"}, {"ReasonFlags",1610874886,0}, {"unused",1073741825,"0"}, {"keyCompromise",1073741825,"1"}, diff --git a/lib/x509/extensions.c b/lib/x509/extensions.c index 498f4a5d2b..fc6e07a2df 100644 --- a/lib/x509/extensions.c +++ b/lib/x509/extensions.c @@ -687,6 +687,8 @@ int _gnutls_x509_ext_gen_crl_dist_points(gnutls_x509_subject_alt_name type, } #endif + asn1_write_value( ext, "?LAST.distributionPoint.nameRelativeToCRLIssuer", NULL, 0); + result = write_new_general_name(ext, "?LAST.distributionPoint.fullName", type, data_string); if (result < 0) { gnutls_assert(); |