aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ocsp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-10-30 20:12:00 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-10-30 20:12:00 +0000
commit5d6abb0d137fbc6c0aaaa3b29a37c3a42cca7be2 (patch)
tree437bec770cb81b35e67e5db03c51b67a4ad02f0f /epan/dissectors/packet-ocsp.c
parent34fdd680efb76f318e48f3d20c4005b9dc2d0451 (diff)
Add id-pkix-ocsp-nocheck.
Fixes bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3015 svn path=/trunk/; revision=26631
Diffstat (limited to 'epan/dissectors/packet-ocsp.c')
-rw-r--r--epan/dissectors/packet-ocsp.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ocsp.c b/epan/dissectors/packet-ocsp.c
index 25f105b0fe..c66ceb7d8e 100644
--- a/epan/dissectors/packet-ocsp.c
+++ b/epan/dissectors/packet-ocsp.c
@@ -64,6 +64,7 @@ static int hf_ocsp_ArchiveCutoff_PDU = -1; /* ArchiveCutoff */
static int hf_ocsp_AcceptableResponses_PDU = -1; /* AcceptableResponses */
static int hf_ocsp_ServiceLocator_PDU = -1; /* ServiceLocator */
static int hf_ocsp_CrlID_PDU = -1; /* CrlID */
+static int hf_ocsp_NULL_PDU = -1; /* NULL */
static int hf_ocsp_tbsRequest = -1; /* TBSRequest */
static int hf_ocsp_optionalSignature = -1; /* Signature */
static int hf_ocsp_version = -1; /* Version */
@@ -157,7 +158,7 @@ static const value_string ocsp_Version_vals[] = {
static int
dissect_ocsp_Version(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ NULL);
return offset;
}
@@ -322,7 +323,7 @@ dissect_ocsp_T_responseType(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int of
static int
dissect_ocsp_T_response(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
-#line 36 "ocsp.cnf"
+#line 37 "ocsp.cnf"
gint8 class;
gboolean pc, ind;
gint32 tag;
@@ -593,7 +594,7 @@ dissect_ocsp_IA5String(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset
static int
dissect_ocsp_INTEGER(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ NULL);
return offset;
}
@@ -641,6 +642,11 @@ static void dissect_CrlID_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_t
asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
dissect_ocsp_CrlID(FALSE, tvb, 0, &asn1_ctx, tree, hf_ocsp_CrlID_PDU);
}
+static void dissect_NULL_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) {
+ asn1_ctx_t asn1_ctx;
+ asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo);
+ dissect_ocsp_NULL(FALSE, tvb, 0, &asn1_ctx, tree, hf_ocsp_NULL_PDU);
+}
/*--- End of included file: packet-ocsp-fn.c ---*/
@@ -732,6 +738,10 @@ void proto_register_ocsp(void) {
{ "CrlID", "ocsp.CrlID",
FT_NONE, BASE_NONE, NULL, 0,
"ocsp.CrlID", HFILL }},
+ { &hf_ocsp_NULL_PDU,
+ { "NULL", "ocsp.NULL",
+ FT_NONE, BASE_NONE, NULL, 0,
+ "ocsp.NULL", HFILL }},
{ &hf_ocsp_tbsRequest,
{ "tbsRequest", "ocsp.tbsRequest",
FT_NONE, BASE_NONE, NULL, 0,
@@ -973,6 +983,7 @@ void proto_reg_handoff_ocsp(void) {
register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.1", dissect_BasicOCSPResponse_PDU, proto_ocsp, "id-pkix-ocsp-basic");
register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.3", dissect_CrlID_PDU, proto_ocsp, "id-pkix-ocsp-crl");
register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.4", dissect_AcceptableResponses_PDU, proto_ocsp, "id-pkix-ocsp-response");
+ register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.5", dissect_NULL_PDU, proto_ocsp, "id-pkix-ocsp-nocheck");
register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.6", dissect_ArchiveCutoff_PDU, proto_ocsp, "id-pkix-ocsp-archive-cutoff");
register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.7", dissect_ServiceLocator_PDU, proto_ocsp, "id-pkix-ocsp-service-locator");