summaryrefslogtreecommitdiffstats
path: root/crypto/ocsp/ocsp.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-12-13 18:21:51 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-12-13 18:21:51 +0000
commit36f554d43c51796aa0395e6cf087bb3c4ebb730c (patch)
tree444f2358cbc9650a6591df19e29b7922043b4c60 /crypto/ocsp/ocsp.h
parent8d28d5f81b81f68a69db1c67e24bcfc092614346 (diff)
Replace the old style OCSP ASN1 module.
Diffstat (limited to 'crypto/ocsp/ocsp.h')
-rw-r--r--crypto/ocsp/ocsp.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/crypto/ocsp/ocsp.h b/crypto/ocsp/ocsp.h
index 4899a1ae49..4807205a84 100644
--- a/crypto/ocsp/ocsp.h
+++ b/crypto/ocsp/ocsp.h
@@ -177,11 +177,11 @@ typedef struct ocsp_response_st
* byName [1] Name,
* byKey [2] KeyHash }
*/
-#define V_OCSP_RESPID_NAME 1
-#define V_OCSP_RESPID_KEY 2
+#define V_OCSP_RESPID_NAME 0
+#define V_OCSP_RESPID_KEY 1
typedef struct ocsp_responder_id_st
{
- int tag;
+ int type;
union {
X509_NAME* byName;
ASN1_OCTET_STRING *byKey;
@@ -211,10 +211,12 @@ typedef struct ocsp_revoked_info_st
#define V_OCSP_CERTSTATUS_UNKNOWN 2
typedef struct ocsp_cert_status_st
{
- int tag;
- /* good [0] IMPLICIT NULL */
- OCSP_REVOKEDINFO *revoked;
- /* unknown [2] OCSP_UNKNOWNINFO *unknown, which is NULL */
+ int type;
+ union {
+ ASN1_NULL *good;
+ OCSP_REVOKEDINFO *revoked;
+ ASN1_NULL *unknown;
+ } value;
} OCSP_CERTSTATUS;
/* SingleResponse ::= SEQUENCE {