summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-04-08 13:36:44 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-04-08 15:18:41 +0200
commit77b725f908a1b324fe2a966e90bd61c7de854950 (patch)
treef5c9c32c8211e614be1926382f1df6c381fb84bd
parent04663c178fac57edb712c7e83f386c492d0b5cbb (diff)
downloadgnutls-77b725f908a1b324fe2a966e90bd61c7de854950.tar.gz
pkix.asn: corrected byKey definition
OCSP is defined in an EXPLICIT tags module, and as such we must tag explicitly all of its tags.
-rw-r--r--lib/pkix.asn2
-rw-r--r--lib/pkix_asn1_tab.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/pkix.asn b/lib/pkix.asn
index 05e3b23041..a5b53cd7b2 100644
--- a/lib/pkix.asn
+++ b/lib/pkix.asn
@@ -641,7 +641,7 @@ ResponseData ::= SEQUENCE {
ResponderID ::= CHOICE {
-- Changed to work with the libtasn1 parser.
byName [1] EXPLICIT RDNSequence, --Name
- byKey [2] OCTET STRING --SHA-1 hash of responder's public key
+ byKey [2] EXPLICIT OCTET STRING --SHA-1 hash of responder's public key
}
SingleResponse ::= SEQUENCE {
diff --git a/lib/pkix_asn1_tab.c b/lib/pkix_asn1_tab.c
index 5380cc00f6..7c5ba12630 100644
--- a/lib/pkix_asn1_tab.c
+++ b/lib/pkix_asn1_tab.c
@@ -489,7 +489,7 @@ const asn1_static_node pkix_asn1_tab[] = {
{ "byName", 1610620930, "RDNSequence"},
{ NULL, 2056, "1"},
{ "byKey", 536879111, NULL },
- { NULL, 4104, "2"},
+ { NULL, 2056, "2"},
{ "SingleResponse", 1610612741, NULL },
{ "certID", 1073741826, "CertID"},
{ "certStatus", 1073741826, "CertStatus"},