summarylogtreecommitdiffstats
path: root/fix-ocsp-test.patch
blob: 8e22b8ad22f6fb7fb0a87ef087c31b3519a95472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From f7ce0134742f496a20aaf53ac4c6b77ea6ae1d7d Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@redhat.com>
Date: Fri, 8 Apr 2016 13:36:44 +0200
Subject: [PATCH] pkix.asn: corrected byKey definition

OCSP is defined in an EXPLICIT tags module, and as such
we must tag explicitly all of its tags.
---
 lib/pkix.asn        | 2 +-
 lib/pkix_asn1_tab.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/pkix.asn b/lib/pkix.asn
index aa0c574..9657bde 100644
--- a/lib/pkix.asn
+++ b/lib/pkix.asn
@@ -620,7 +620,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 60dba18..cc26868 100644
--- a/lib/pkix_asn1_tab.c
+++ b/lib/pkix_asn1_tab.c
@@ -467,7 +467,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"},
--
libgit2 0.24.0