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 13:39:29 +0200
commit9964536eb70eec7fe06f5893e59c35cc49baa242 (patch)
tree71b142e39a0372e1d24b47abffb2556fd9fab819
parent66359d7c9f6a7d3d35255f10467d6b0a85ac4ef8 (diff)
downloadgnutls-9964536eb70eec7fe06f5893e59c35cc49baa242.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"},