1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
4 /* ../../tools/asn2wrs.py -b -p ocsp -c ./ocsp.cnf -s ./packet-ocsp-template -D . -O ../../epan/dissectors OCSP.asn */
6 /* Input file: packet-ocsp-template.c */
8 #line 1 "../../asn1/ocsp/packet-ocsp-template.c"
10 * Routines for Online Certificate Status Protocol (RFC2560) packet dissection
11 * Ronnie Sahlberg 2004
15 * Wireshark - Network traffic analyzer
16 * By Gerald Combs <gerald@wireshark.org>
17 * Copyright 1998 Gerald Combs
19 * This program is free software; you can redistribute it and/or
20 * modify it under the terms of the GNU General Public License
21 * as published by the Free Software Foundation; either version 2
22 * of the License, or (at your option) any later version.
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 * GNU General Public License for more details.
29 * You should have received a copy of the GNU General Public License
30 * along with this program; if not, write to the Free Software
31 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
37 #include <epan/packet.h>
41 #include "packet-ber.h"
42 #include "packet-ocsp.h"
43 #include "packet-x509af.h"
44 #include "packet-x509ce.h"
45 #include "packet-pkix1implicit.h"
46 #include "packet-pkix1explicit.h"
48 #define PNAME "Online Certificate Status Protocol"
52 /* Initialize the protocol and registered fields */
54 static int hf_ocsp_responseType_id
= -1;
56 /*--- Included file: packet-ocsp-hf.c ---*/
57 #line 1 "../../asn1/ocsp/packet-ocsp-hf.c"
58 static int hf_ocsp_BasicOCSPResponse_PDU
= -1; /* BasicOCSPResponse */
59 static int hf_ocsp_ArchiveCutoff_PDU
= -1; /* ArchiveCutoff */
60 static int hf_ocsp_AcceptableResponses_PDU
= -1; /* AcceptableResponses */
61 static int hf_ocsp_ServiceLocator_PDU
= -1; /* ServiceLocator */
62 static int hf_ocsp_CrlID_PDU
= -1; /* CrlID */
63 static int hf_ocsp_ReOcspNonce_PDU
= -1; /* ReOcspNonce */
64 static int hf_ocsp_NULL_PDU
= -1; /* NULL */
65 static int hf_ocsp_tbsRequest
= -1; /* TBSRequest */
66 static int hf_ocsp_optionalSignature
= -1; /* Signature */
67 static int hf_ocsp_version
= -1; /* Version */
68 static int hf_ocsp_requestorName
= -1; /* GeneralName */
69 static int hf_ocsp_requestList
= -1; /* SEQUENCE_OF_Request */
70 static int hf_ocsp_requestList_item
= -1; /* Request */
71 static int hf_ocsp_requestExtensions
= -1; /* Extensions */
72 static int hf_ocsp_signatureAlgorithm
= -1; /* AlgorithmIdentifier */
73 static int hf_ocsp_signature
= -1; /* BIT_STRING */
74 static int hf_ocsp_certs
= -1; /* SEQUENCE_OF_Certificate */
75 static int hf_ocsp_certs_item
= -1; /* Certificate */
76 static int hf_ocsp_reqCert
= -1; /* CertID */
77 static int hf_ocsp_singleRequestExtensions
= -1; /* Extensions */
78 static int hf_ocsp_hashAlgorithm
= -1; /* AlgorithmIdentifier */
79 static int hf_ocsp_issuerNameHash
= -1; /* OCTET_STRING */
80 static int hf_ocsp_issuerKeyHash
= -1; /* OCTET_STRING */
81 static int hf_ocsp_serialNumber
= -1; /* CertificateSerialNumber */
82 static int hf_ocsp_responseStatus
= -1; /* OCSPResponseStatus */
83 static int hf_ocsp_responseBytes
= -1; /* ResponseBytes */
84 static int hf_ocsp_responseType
= -1; /* T_responseType */
85 static int hf_ocsp_response
= -1; /* T_response */
86 static int hf_ocsp_tbsResponseData
= -1; /* ResponseData */
87 static int hf_ocsp_responderID
= -1; /* ResponderID */
88 static int hf_ocsp_producedAt
= -1; /* GeneralizedTime */
89 static int hf_ocsp_responses
= -1; /* SEQUENCE_OF_SingleResponse */
90 static int hf_ocsp_responses_item
= -1; /* SingleResponse */
91 static int hf_ocsp_responseExtensions
= -1; /* Extensions */
92 static int hf_ocsp_byName
= -1; /* Name */
93 static int hf_ocsp_byKey
= -1; /* KeyHash */
94 static int hf_ocsp_certID
= -1; /* CertID */
95 static int hf_ocsp_certStatus
= -1; /* CertStatus */
96 static int hf_ocsp_thisUpdate
= -1; /* GeneralizedTime */
97 static int hf_ocsp_nextUpdate
= -1; /* GeneralizedTime */
98 static int hf_ocsp_singleExtensions
= -1; /* Extensions */
99 static int hf_ocsp_good
= -1; /* NULL */
100 static int hf_ocsp_revoked
= -1; /* RevokedInfo */
101 static int hf_ocsp_unknown
= -1; /* UnknownInfo */
102 static int hf_ocsp_revocationTime
= -1; /* GeneralizedTime */
103 static int hf_ocsp_revocationReason
= -1; /* CRLReason */
104 static int hf_ocsp_AcceptableResponses_item
= -1; /* OBJECT_IDENTIFIER */
105 static int hf_ocsp_issuer
= -1; /* Name */
106 static int hf_ocsp_locator
= -1; /* AuthorityInfoAccessSyntax */
107 static int hf_ocsp_crlUrl
= -1; /* IA5String */
108 static int hf_ocsp_crlNum
= -1; /* INTEGER */
109 static int hf_ocsp_crlTime
= -1; /* GeneralizedTime */
111 /*--- End of included file: packet-ocsp-hf.c ---*/
112 #line 48 "../../asn1/ocsp/packet-ocsp-template.c"
114 /* Initialize the subtree pointers */
115 static gint ett_ocsp
= -1;
117 /*--- Included file: packet-ocsp-ett.c ---*/
118 #line 1 "../../asn1/ocsp/packet-ocsp-ett.c"
119 static gint ett_ocsp_OCSPRequest
= -1;
120 static gint ett_ocsp_TBSRequest
= -1;
121 static gint ett_ocsp_SEQUENCE_OF_Request
= -1;
122 static gint ett_ocsp_Signature
= -1;
123 static gint ett_ocsp_SEQUENCE_OF_Certificate
= -1;
124 static gint ett_ocsp_Request
= -1;
125 static gint ett_ocsp_CertID
= -1;
126 static gint ett_ocsp_OCSPResponse
= -1;
127 static gint ett_ocsp_ResponseBytes
= -1;
128 static gint ett_ocsp_BasicOCSPResponse
= -1;
129 static gint ett_ocsp_ResponseData
= -1;
130 static gint ett_ocsp_SEQUENCE_OF_SingleResponse
= -1;
131 static gint ett_ocsp_ResponderID
= -1;
132 static gint ett_ocsp_SingleResponse
= -1;
133 static gint ett_ocsp_CertStatus
= -1;
134 static gint ett_ocsp_RevokedInfo
= -1;
135 static gint ett_ocsp_AcceptableResponses
= -1;
136 static gint ett_ocsp_ServiceLocator
= -1;
137 static gint ett_ocsp_CrlID
= -1;
139 /*--- End of included file: packet-ocsp-ett.c ---*/
140 #line 52 "../../asn1/ocsp/packet-ocsp-template.c"
142 static const char *responseType_id
;
146 /*--- Included file: packet-ocsp-fn.c ---*/
147 #line 1 "../../asn1/ocsp/packet-ocsp-fn.c"
149 static const value_string ocsp_Version_vals
[] = {
156 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_
) {
157 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
166 dissect_ocsp_OCTET_STRING(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
167 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
174 static const ber_sequence_t CertID_sequence
[] = {
175 { &hf_ocsp_hashAlgorithm
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509af_AlgorithmIdentifier
},
176 { &hf_ocsp_issuerNameHash
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_OCTET_STRING
},
177 { &hf_ocsp_issuerKeyHash
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_OCTET_STRING
},
178 { &hf_ocsp_serialNumber
, BER_CLASS_UNI
, BER_UNI_TAG_INTEGER
, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_CertificateSerialNumber
},
179 { NULL
, 0, 0, 0, NULL
}
183 dissect_ocsp_CertID(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
184 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
185 CertID_sequence
, hf_index
, ett_ocsp_CertID
);
191 static const ber_sequence_t Request_sequence
[] = {
192 { &hf_ocsp_reqCert
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_CertID
},
193 { &hf_ocsp_singleRequestExtensions
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_pkix1explicit_Extensions
},
194 { NULL
, 0, 0, 0, NULL
}
198 dissect_ocsp_Request(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
199 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
200 Request_sequence
, hf_index
, ett_ocsp_Request
);
206 static const ber_sequence_t SEQUENCE_OF_Request_sequence_of
[1] = {
207 { &hf_ocsp_requestList_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_Request
},
211 dissect_ocsp_SEQUENCE_OF_Request(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
212 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
213 SEQUENCE_OF_Request_sequence_of
, hf_index
, ett_ocsp_SEQUENCE_OF_Request
);
219 static const ber_sequence_t TBSRequest_sequence
[] = {
220 { &hf_ocsp_version
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_ocsp_Version
},
221 { &hf_ocsp_requestorName
, BER_CLASS_CON
, 1, BER_FLAGS_OPTIONAL
, dissect_pkix1explicit_GeneralName
},
222 { &hf_ocsp_requestList
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_SEQUENCE_OF_Request
},
223 { &hf_ocsp_requestExtensions
, BER_CLASS_CON
, 2, BER_FLAGS_OPTIONAL
, dissect_pkix1explicit_Extensions
},
224 { NULL
, 0, 0, 0, NULL
}
228 dissect_ocsp_TBSRequest(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
229 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
230 TBSRequest_sequence
, hf_index
, ett_ocsp_TBSRequest
);
238 dissect_ocsp_BIT_STRING(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
239 offset
= dissect_ber_bitstring(implicit_tag
, actx
, tree
, tvb
, offset
,
247 static const ber_sequence_t SEQUENCE_OF_Certificate_sequence_of
[1] = {
248 { &hf_ocsp_certs_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509af_Certificate
},
252 dissect_ocsp_SEQUENCE_OF_Certificate(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
253 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
254 SEQUENCE_OF_Certificate_sequence_of
, hf_index
, ett_ocsp_SEQUENCE_OF_Certificate
);
260 static const ber_sequence_t Signature_sequence
[] = {
261 { &hf_ocsp_signatureAlgorithm
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509af_AlgorithmIdentifier
},
262 { &hf_ocsp_signature
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_BIT_STRING
},
263 { &hf_ocsp_certs
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_ocsp_SEQUENCE_OF_Certificate
},
264 { NULL
, 0, 0, 0, NULL
}
268 dissect_ocsp_Signature(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
269 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
270 Signature_sequence
, hf_index
, ett_ocsp_Signature
);
276 static const ber_sequence_t OCSPRequest_sequence
[] = {
277 { &hf_ocsp_tbsRequest
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_TBSRequest
},
278 { &hf_ocsp_optionalSignature
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_ocsp_Signature
},
279 { NULL
, 0, 0, 0, NULL
}
283 dissect_ocsp_OCSPRequest(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
284 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
285 OCSPRequest_sequence
, hf_index
, ett_ocsp_OCSPRequest
);
291 static const value_string ocsp_OCSPResponseStatus_vals
[] = {
293 { 1, "malformedRequest" },
294 { 2, "internalError" },
296 { 5, "sigRequired" },
297 { 6, "unauthorized" },
303 dissect_ocsp_OCSPResponseStatus(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
304 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
313 dissect_ocsp_T_responseType(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
314 offset
= dissect_ber_object_identifier_str(implicit_tag
, actx
, tree
, tvb
, offset
, hf_ocsp_responseType_id
, &responseType_id
);
322 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_
) {
323 #line 44 "../../asn1/ocsp/ocsp.cnf"
328 /* skip past the T and L */
329 offset
= dissect_ber_identifier(actx
->pinfo
, tree
, tvb
, offset
, &appclass
, &pc
, &tag
);
330 offset
= dissect_ber_length(actx
->pinfo
, tree
, tvb
, offset
, &len
, &ind
);
331 offset
=call_ber_oid_callback(responseType_id
, tvb
, offset
, actx
->pinfo
, tree
, NULL
);
339 static const ber_sequence_t ResponseBytes_sequence
[] = {
340 { &hf_ocsp_responseType
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_T_responseType
},
341 { &hf_ocsp_response
, BER_CLASS_UNI
, BER_UNI_TAG_OCTETSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_T_response
},
342 { NULL
, 0, 0, 0, NULL
}
346 dissect_ocsp_ResponseBytes(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
347 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
348 ResponseBytes_sequence
, hf_index
, ett_ocsp_ResponseBytes
);
354 static const ber_sequence_t OCSPResponse_sequence
[] = {
355 { &hf_ocsp_responseStatus
, BER_CLASS_UNI
, BER_UNI_TAG_ENUMERATED
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_OCSPResponseStatus
},
356 { &hf_ocsp_responseBytes
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_ocsp_ResponseBytes
},
357 { NULL
, 0, 0, 0, NULL
}
361 dissect_ocsp_OCSPResponse(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
362 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
363 OCSPResponse_sequence
, hf_index
, ett_ocsp_OCSPResponse
);
371 dissect_ocsp_KeyHash(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
372 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
379 static const value_string ocsp_ResponderID_vals
[] = {
385 static const ber_choice_t ResponderID_choice
[] = {
386 { 1, &hf_ocsp_byName
, BER_CLASS_CON
, 1, 0, dissect_pkix1explicit_Name
},
387 { 2, &hf_ocsp_byKey
, BER_CLASS_CON
, 2, 0, dissect_ocsp_KeyHash
},
388 { 0, NULL
, 0, 0, 0, NULL
}
392 dissect_ocsp_ResponderID(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
393 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
394 ResponderID_choice
, hf_index
, ett_ocsp_ResponderID
,
403 dissect_ocsp_GeneralizedTime(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
404 offset
= dissect_ber_GeneralizedTime(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
);
412 dissect_ocsp_NULL(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
413 offset
= dissect_ber_null(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
);
419 static const ber_sequence_t RevokedInfo_sequence
[] = {
420 { &hf_ocsp_revocationTime
, BER_CLASS_UNI
, BER_UNI_TAG_GeneralizedTime
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_GeneralizedTime
},
421 { &hf_ocsp_revocationReason
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_x509ce_CRLReason
},
422 { NULL
, 0, 0, 0, NULL
}
426 dissect_ocsp_RevokedInfo(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
427 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
428 RevokedInfo_sequence
, hf_index
, ett_ocsp_RevokedInfo
);
436 dissect_ocsp_UnknownInfo(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
437 offset
= dissect_ber_null(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
);
443 static const value_string ocsp_CertStatus_vals
[] = {
450 static const ber_choice_t CertStatus_choice
[] = {
451 { 0, &hf_ocsp_good
, BER_CLASS_CON
, 0, BER_FLAGS_IMPLTAG
, dissect_ocsp_NULL
},
452 { 1, &hf_ocsp_revoked
, BER_CLASS_CON
, 1, BER_FLAGS_IMPLTAG
, dissect_ocsp_RevokedInfo
},
453 { 2, &hf_ocsp_unknown
, BER_CLASS_CON
, 2, BER_FLAGS_IMPLTAG
, dissect_ocsp_UnknownInfo
},
454 { 0, NULL
, 0, 0, 0, NULL
}
458 dissect_ocsp_CertStatus(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
459 offset
= dissect_ber_choice(actx
, tree
, tvb
, offset
,
460 CertStatus_choice
, hf_index
, ett_ocsp_CertStatus
,
467 static const ber_sequence_t SingleResponse_sequence
[] = {
468 { &hf_ocsp_certID
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_CertID
},
469 { &hf_ocsp_certStatus
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_ocsp_CertStatus
},
470 { &hf_ocsp_thisUpdate
, BER_CLASS_UNI
, BER_UNI_TAG_GeneralizedTime
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_GeneralizedTime
},
471 { &hf_ocsp_nextUpdate
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_ocsp_GeneralizedTime
},
472 { &hf_ocsp_singleExtensions
, BER_CLASS_CON
, 1, BER_FLAGS_OPTIONAL
, dissect_pkix1explicit_Extensions
},
473 { NULL
, 0, 0, 0, NULL
}
477 dissect_ocsp_SingleResponse(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
478 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
479 SingleResponse_sequence
, hf_index
, ett_ocsp_SingleResponse
);
485 static const ber_sequence_t SEQUENCE_OF_SingleResponse_sequence_of
[1] = {
486 { &hf_ocsp_responses_item
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_SingleResponse
},
490 dissect_ocsp_SEQUENCE_OF_SingleResponse(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
491 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
492 SEQUENCE_OF_SingleResponse_sequence_of
, hf_index
, ett_ocsp_SEQUENCE_OF_SingleResponse
);
498 static const ber_sequence_t ResponseData_sequence
[] = {
499 { &hf_ocsp_version
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_ocsp_Version
},
500 { &hf_ocsp_responderID
, BER_CLASS_ANY
/*choice*/, -1/*choice*/, BER_FLAGS_NOOWNTAG
|BER_FLAGS_NOTCHKTAG
, dissect_ocsp_ResponderID
},
501 { &hf_ocsp_producedAt
, BER_CLASS_UNI
, BER_UNI_TAG_GeneralizedTime
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_GeneralizedTime
},
502 { &hf_ocsp_responses
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_SEQUENCE_OF_SingleResponse
},
503 { &hf_ocsp_responseExtensions
, BER_CLASS_CON
, 1, BER_FLAGS_OPTIONAL
, dissect_pkix1explicit_Extensions
},
504 { NULL
, 0, 0, 0, NULL
}
508 dissect_ocsp_ResponseData(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
509 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
510 ResponseData_sequence
, hf_index
, ett_ocsp_ResponseData
);
516 static const ber_sequence_t BasicOCSPResponse_sequence
[] = {
517 { &hf_ocsp_tbsResponseData
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_ResponseData
},
518 { &hf_ocsp_signatureAlgorithm
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_x509af_AlgorithmIdentifier
},
519 { &hf_ocsp_signature
, BER_CLASS_UNI
, BER_UNI_TAG_BITSTRING
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_BIT_STRING
},
520 { &hf_ocsp_certs
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_ocsp_SEQUENCE_OF_Certificate
},
521 { NULL
, 0, 0, 0, NULL
}
525 dissect_ocsp_BasicOCSPResponse(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
526 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
527 BasicOCSPResponse_sequence
, hf_index
, ett_ocsp_BasicOCSPResponse
);
535 dissect_ocsp_ArchiveCutoff(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
536 offset
= dissect_ber_GeneralizedTime(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
);
544 dissect_ocsp_OBJECT_IDENTIFIER(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
545 offset
= dissect_ber_object_identifier(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
, NULL
);
551 static const ber_sequence_t AcceptableResponses_sequence_of
[1] = {
552 { &hf_ocsp_AcceptableResponses_item
, BER_CLASS_UNI
, BER_UNI_TAG_OID
, BER_FLAGS_NOOWNTAG
, dissect_ocsp_OBJECT_IDENTIFIER
},
556 dissect_ocsp_AcceptableResponses(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
557 offset
= dissect_ber_sequence_of(implicit_tag
, actx
, tree
, tvb
, offset
,
558 AcceptableResponses_sequence_of
, hf_index
, ett_ocsp_AcceptableResponses
);
564 static const ber_sequence_t ServiceLocator_sequence
[] = {
565 { &hf_ocsp_issuer
, BER_CLASS_ANY
, -1, BER_FLAGS_NOOWNTAG
, dissect_pkix1explicit_Name
},
566 { &hf_ocsp_locator
, BER_CLASS_UNI
, BER_UNI_TAG_SEQUENCE
, BER_FLAGS_NOOWNTAG
, dissect_pkix1implicit_AuthorityInfoAccessSyntax
},
567 { NULL
, 0, 0, 0, NULL
}
571 dissect_ocsp_ServiceLocator(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
572 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
573 ServiceLocator_sequence
, hf_index
, ett_ocsp_ServiceLocator
);
581 dissect_ocsp_IA5String(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
582 offset
= dissect_ber_restricted_string(implicit_tag
, BER_UNI_TAG_IA5String
,
583 actx
, tree
, tvb
, offset
, hf_index
,
592 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_
) {
593 offset
= dissect_ber_integer(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
600 static const ber_sequence_t CrlID_sequence
[] = {
601 { &hf_ocsp_crlUrl
, BER_CLASS_CON
, 0, BER_FLAGS_OPTIONAL
, dissect_ocsp_IA5String
},
602 { &hf_ocsp_crlNum
, BER_CLASS_CON
, 1, BER_FLAGS_OPTIONAL
, dissect_ocsp_INTEGER
},
603 { &hf_ocsp_crlTime
, BER_CLASS_CON
, 2, BER_FLAGS_OPTIONAL
, dissect_ocsp_GeneralizedTime
},
604 { NULL
, 0, 0, 0, NULL
}
608 dissect_ocsp_CrlID(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
609 offset
= dissect_ber_sequence(implicit_tag
, actx
, tree
, tvb
, offset
,
610 CrlID_sequence
, hf_index
, ett_ocsp_CrlID
);
618 dissect_ocsp_ReOcspNonce(gboolean implicit_tag _U_
, tvbuff_t
*tvb _U_
, int offset _U_
, asn1_ctx_t
*actx _U_
, proto_tree
*tree _U_
, int hf_index _U_
) {
619 offset
= dissect_ber_octet_string(implicit_tag
, actx
, tree
, tvb
, offset
, hf_index
,
627 static void dissect_BasicOCSPResponse_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
629 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
630 dissect_ocsp_BasicOCSPResponse(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ocsp_BasicOCSPResponse_PDU
);
632 static void dissect_ArchiveCutoff_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
634 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
635 dissect_ocsp_ArchiveCutoff(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ocsp_ArchiveCutoff_PDU
);
637 static void dissect_AcceptableResponses_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
639 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
640 dissect_ocsp_AcceptableResponses(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ocsp_AcceptableResponses_PDU
);
642 static void dissect_ServiceLocator_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
644 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
645 dissect_ocsp_ServiceLocator(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ocsp_ServiceLocator_PDU
);
647 static void dissect_CrlID_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
649 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
650 dissect_ocsp_CrlID(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ocsp_CrlID_PDU
);
652 static void dissect_ReOcspNonce_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
654 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
655 dissect_ocsp_ReOcspNonce(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ocsp_ReOcspNonce_PDU
);
657 static void dissect_NULL_PDU(tvbuff_t
*tvb _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
) {
659 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
660 dissect_ocsp_NULL(FALSE
, tvb
, 0, &asn1_ctx
, tree
, hf_ocsp_NULL_PDU
);
664 /*--- End of included file: packet-ocsp-fn.c ---*/
665 #line 57 "../../asn1/ocsp/packet-ocsp-template.c"
669 dissect_ocsp_request(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*parent_tree
, void *data _U_
)
671 proto_item
*item
=NULL
;
672 proto_tree
*tree
=NULL
;
674 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
676 col_set_str(pinfo
->cinfo
, COL_PROTOCOL
, "OCSP");
678 col_set_str(pinfo
->cinfo
, COL_INFO
, "Request");
682 item
=proto_tree_add_item(parent_tree
, proto_ocsp
, tvb
, 0, -1, ENC_NA
);
683 tree
= proto_item_add_subtree(item
, ett_ocsp
);
686 return dissect_ocsp_OCSPRequest(FALSE
, tvb
, 0, &asn1_ctx
, tree
, -1);
691 dissect_ocsp_response(tvbuff_t
*tvb
, packet_info
*pinfo
, proto_tree
*parent_tree
, void *data _U_
)
693 proto_item
*item
=NULL
;
694 proto_tree
*tree
=NULL
;
696 asn1_ctx_init(&asn1_ctx
, ASN1_ENC_BER
, TRUE
, pinfo
);
698 col_set_str(pinfo
->cinfo
, COL_PROTOCOL
, "OCSP");
700 col_set_str(pinfo
->cinfo
, COL_INFO
, "Response");
704 item
=proto_tree_add_item(parent_tree
, proto_ocsp
, tvb
, 0, -1, ENC_NA
);
705 tree
= proto_item_add_subtree(item
, ett_ocsp
);
708 return dissect_ocsp_OCSPResponse(FALSE
, tvb
, 0, &asn1_ctx
, tree
, -1);
711 /*--- proto_register_ocsp ----------------------------------------------*/
712 void proto_register_ocsp(void) {
715 static hf_register_info hf
[] = {
716 { &hf_ocsp_responseType_id
,
717 { "ResponseType Id", "x509af.responseType.id",
718 FT_STRING
, BASE_NONE
, NULL
, 0,
721 /*--- Included file: packet-ocsp-hfarr.c ---*/
722 #line 1 "../../asn1/ocsp/packet-ocsp-hfarr.c"
723 { &hf_ocsp_BasicOCSPResponse_PDU
,
724 { "BasicOCSPResponse", "ocsp.BasicOCSPResponse_element",
725 FT_NONE
, BASE_NONE
, NULL
, 0,
727 { &hf_ocsp_ArchiveCutoff_PDU
,
728 { "ArchiveCutoff", "ocsp.ArchiveCutoff",
729 FT_STRING
, BASE_NONE
, NULL
, 0,
731 { &hf_ocsp_AcceptableResponses_PDU
,
732 { "AcceptableResponses", "ocsp.AcceptableResponses",
733 FT_UINT32
, BASE_DEC
, NULL
, 0,
735 { &hf_ocsp_ServiceLocator_PDU
,
736 { "ServiceLocator", "ocsp.ServiceLocator_element",
737 FT_NONE
, BASE_NONE
, NULL
, 0,
739 { &hf_ocsp_CrlID_PDU
,
740 { "CrlID", "ocsp.CrlID_element",
741 FT_NONE
, BASE_NONE
, NULL
, 0,
743 { &hf_ocsp_ReOcspNonce_PDU
,
744 { "ReOcspNonce", "ocsp.ReOcspNonce",
745 FT_BYTES
, BASE_NONE
, NULL
, 0,
748 { "NULL", "ocsp.NULL_element",
749 FT_NONE
, BASE_NONE
, NULL
, 0,
751 { &hf_ocsp_tbsRequest
,
752 { "tbsRequest", "ocsp.tbsRequest_element",
753 FT_NONE
, BASE_NONE
, NULL
, 0,
755 { &hf_ocsp_optionalSignature
,
756 { "optionalSignature", "ocsp.optionalSignature_element",
757 FT_NONE
, BASE_NONE
, NULL
, 0,
758 "Signature", HFILL
}},
760 { "version", "ocsp.version",
761 FT_INT32
, BASE_DEC
, VALS(pkix1explicit_Version_vals
), 0,
763 { &hf_ocsp_requestorName
,
764 { "requestorName", "ocsp.requestorName",
765 FT_UINT32
, BASE_DEC
, VALS(x509ce_GeneralName_vals
), 0,
766 "GeneralName", HFILL
}},
767 { &hf_ocsp_requestList
,
768 { "requestList", "ocsp.requestList",
769 FT_UINT32
, BASE_DEC
, NULL
, 0,
770 "SEQUENCE_OF_Request", HFILL
}},
771 { &hf_ocsp_requestList_item
,
772 { "Request", "ocsp.Request_element",
773 FT_NONE
, BASE_NONE
, NULL
, 0,
775 { &hf_ocsp_requestExtensions
,
776 { "requestExtensions", "ocsp.requestExtensions",
777 FT_UINT32
, BASE_DEC
, NULL
, 0,
778 "Extensions", HFILL
}},
779 { &hf_ocsp_signatureAlgorithm
,
780 { "signatureAlgorithm", "ocsp.signatureAlgorithm_element",
781 FT_NONE
, BASE_NONE
, NULL
, 0,
782 "AlgorithmIdentifier", HFILL
}},
783 { &hf_ocsp_signature
,
784 { "signature", "ocsp.signature",
785 FT_BYTES
, BASE_NONE
, NULL
, 0,
786 "BIT_STRING", HFILL
}},
788 { "certs", "ocsp.certs",
789 FT_UINT32
, BASE_DEC
, NULL
, 0,
790 "SEQUENCE_OF_Certificate", HFILL
}},
791 { &hf_ocsp_certs_item
,
792 { "Certificate", "ocsp.Certificate_element",
793 FT_NONE
, BASE_NONE
, NULL
, 0,
796 { "reqCert", "ocsp.reqCert_element",
797 FT_NONE
, BASE_NONE
, NULL
, 0,
799 { &hf_ocsp_singleRequestExtensions
,
800 { "singleRequestExtensions", "ocsp.singleRequestExtensions",
801 FT_UINT32
, BASE_DEC
, NULL
, 0,
802 "Extensions", HFILL
}},
803 { &hf_ocsp_hashAlgorithm
,
804 { "hashAlgorithm", "ocsp.hashAlgorithm_element",
805 FT_NONE
, BASE_NONE
, NULL
, 0,
806 "AlgorithmIdentifier", HFILL
}},
807 { &hf_ocsp_issuerNameHash
,
808 { "issuerNameHash", "ocsp.issuerNameHash",
809 FT_BYTES
, BASE_NONE
, NULL
, 0,
810 "OCTET_STRING", HFILL
}},
811 { &hf_ocsp_issuerKeyHash
,
812 { "issuerKeyHash", "ocsp.issuerKeyHash",
813 FT_BYTES
, BASE_NONE
, NULL
, 0,
814 "OCTET_STRING", HFILL
}},
815 { &hf_ocsp_serialNumber
,
816 { "serialNumber", "ocsp.serialNumber",
817 FT_UINT64
, BASE_DEC
, NULL
, 0,
818 "CertificateSerialNumber", HFILL
}},
819 { &hf_ocsp_responseStatus
,
820 { "responseStatus", "ocsp.responseStatus",
821 FT_UINT32
, BASE_DEC
, VALS(ocsp_OCSPResponseStatus_vals
), 0,
822 "OCSPResponseStatus", HFILL
}},
823 { &hf_ocsp_responseBytes
,
824 { "responseBytes", "ocsp.responseBytes_element",
825 FT_NONE
, BASE_NONE
, NULL
, 0,
827 { &hf_ocsp_responseType
,
828 { "responseType", "ocsp.responseType",
829 FT_OID
, BASE_NONE
, NULL
, 0,
832 { "response", "ocsp.response",
833 FT_BYTES
, BASE_NONE
, NULL
, 0,
835 { &hf_ocsp_tbsResponseData
,
836 { "tbsResponseData", "ocsp.tbsResponseData_element",
837 FT_NONE
, BASE_NONE
, NULL
, 0,
838 "ResponseData", HFILL
}},
839 { &hf_ocsp_responderID
,
840 { "responderID", "ocsp.responderID",
841 FT_UINT32
, BASE_DEC
, VALS(ocsp_ResponderID_vals
), 0,
843 { &hf_ocsp_producedAt
,
844 { "producedAt", "ocsp.producedAt",
845 FT_STRING
, BASE_NONE
, NULL
, 0,
846 "GeneralizedTime", HFILL
}},
847 { &hf_ocsp_responses
,
848 { "responses", "ocsp.responses",
849 FT_UINT32
, BASE_DEC
, NULL
, 0,
850 "SEQUENCE_OF_SingleResponse", HFILL
}},
851 { &hf_ocsp_responses_item
,
852 { "SingleResponse", "ocsp.SingleResponse_element",
853 FT_NONE
, BASE_NONE
, NULL
, 0,
855 { &hf_ocsp_responseExtensions
,
856 { "responseExtensions", "ocsp.responseExtensions",
857 FT_UINT32
, BASE_DEC
, NULL
, 0,
858 "Extensions", HFILL
}},
860 { "byName", "ocsp.byName",
861 FT_UINT32
, BASE_DEC
, NULL
, 0,
864 { "byKey", "ocsp.byKey",
865 FT_BYTES
, BASE_NONE
, NULL
, 0,
868 { "certID", "ocsp.certID_element",
869 FT_NONE
, BASE_NONE
, NULL
, 0,
871 { &hf_ocsp_certStatus
,
872 { "certStatus", "ocsp.certStatus",
873 FT_UINT32
, BASE_DEC
, VALS(ocsp_CertStatus_vals
), 0,
875 { &hf_ocsp_thisUpdate
,
876 { "thisUpdate", "ocsp.thisUpdate",
877 FT_STRING
, BASE_NONE
, NULL
, 0,
878 "GeneralizedTime", HFILL
}},
879 { &hf_ocsp_nextUpdate
,
880 { "nextUpdate", "ocsp.nextUpdate",
881 FT_STRING
, BASE_NONE
, NULL
, 0,
882 "GeneralizedTime", HFILL
}},
883 { &hf_ocsp_singleExtensions
,
884 { "singleExtensions", "ocsp.singleExtensions",
885 FT_UINT32
, BASE_DEC
, NULL
, 0,
886 "Extensions", HFILL
}},
888 { "good", "ocsp.good_element",
889 FT_NONE
, BASE_NONE
, NULL
, 0,
892 { "revoked", "ocsp.revoked_element",
893 FT_NONE
, BASE_NONE
, NULL
, 0,
894 "RevokedInfo", HFILL
}},
896 { "unknown", "ocsp.unknown_element",
897 FT_NONE
, BASE_NONE
, NULL
, 0,
898 "UnknownInfo", HFILL
}},
899 { &hf_ocsp_revocationTime
,
900 { "revocationTime", "ocsp.revocationTime",
901 FT_STRING
, BASE_NONE
, NULL
, 0,
902 "GeneralizedTime", HFILL
}},
903 { &hf_ocsp_revocationReason
,
904 { "revocationReason", "ocsp.revocationReason",
905 FT_UINT32
, BASE_DEC
, VALS(x509ce_CRLReason_vals
), 0,
906 "CRLReason", HFILL
}},
907 { &hf_ocsp_AcceptableResponses_item
,
908 { "AcceptableResponses item", "ocsp.AcceptableResponses_item",
909 FT_OID
, BASE_NONE
, NULL
, 0,
910 "OBJECT_IDENTIFIER", HFILL
}},
912 { "issuer", "ocsp.issuer",
913 FT_UINT32
, BASE_DEC
, NULL
, 0,
916 { "locator", "ocsp.locator",
917 FT_UINT32
, BASE_DEC
, NULL
, 0,
918 "AuthorityInfoAccessSyntax", HFILL
}},
920 { "crlUrl", "ocsp.crlUrl",
921 FT_STRING
, BASE_NONE
, NULL
, 0,
922 "IA5String", HFILL
}},
924 { "crlNum", "ocsp.crlNum",
925 FT_INT32
, BASE_DEC
, NULL
, 0,
928 { "crlTime", "ocsp.crlTime",
929 FT_STRING
, BASE_NONE
, NULL
, 0,
930 "GeneralizedTime", HFILL
}},
932 /*--- End of included file: packet-ocsp-hfarr.c ---*/
933 #line 112 "../../asn1/ocsp/packet-ocsp-template.c"
936 /* List of subtrees */
937 static gint
*ett
[] = {
940 /*--- Included file: packet-ocsp-ettarr.c ---*/
941 #line 1 "../../asn1/ocsp/packet-ocsp-ettarr.c"
942 &ett_ocsp_OCSPRequest
,
943 &ett_ocsp_TBSRequest
,
944 &ett_ocsp_SEQUENCE_OF_Request
,
946 &ett_ocsp_SEQUENCE_OF_Certificate
,
949 &ett_ocsp_OCSPResponse
,
950 &ett_ocsp_ResponseBytes
,
951 &ett_ocsp_BasicOCSPResponse
,
952 &ett_ocsp_ResponseData
,
953 &ett_ocsp_SEQUENCE_OF_SingleResponse
,
954 &ett_ocsp_ResponderID
,
955 &ett_ocsp_SingleResponse
,
956 &ett_ocsp_CertStatus
,
957 &ett_ocsp_RevokedInfo
,
958 &ett_ocsp_AcceptableResponses
,
959 &ett_ocsp_ServiceLocator
,
962 /*--- End of included file: packet-ocsp-ettarr.c ---*/
963 #line 118 "../../asn1/ocsp/packet-ocsp-template.c"
966 /* Register protocol */
967 proto_ocsp
= proto_register_protocol(PNAME
, PSNAME
, PFNAME
);
969 /* Register fields and subtrees */
970 proto_register_field_array(proto_ocsp
, hf
, array_length(hf
));
971 proto_register_subtree_array(ett
, array_length(ett
));
975 /*--- proto_reg_handoff_ocsp -------------------------------------------*/
976 void proto_reg_handoff_ocsp(void) {
977 dissector_handle_t ocsp_request_handle
;
978 dissector_handle_t ocsp_response_handle
;
980 ocsp_request_handle
= new_create_dissector_handle(dissect_ocsp_request
, proto_ocsp
);
981 ocsp_response_handle
= new_create_dissector_handle(dissect_ocsp_response
, proto_ocsp
);
983 dissector_add_string("media_type", "application/ocsp-request", ocsp_request_handle
);
984 dissector_add_string("media_type", "application/ocsp-response", ocsp_response_handle
);
987 /*--- Included file: packet-ocsp-dis-tab.c ---*/
988 #line 1 "../../asn1/ocsp/packet-ocsp-dis-tab.c"
989 register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.1", dissect_BasicOCSPResponse_PDU
, proto_ocsp
, "id-pkix-ocsp-basic");
990 register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.2", dissect_ReOcspNonce_PDU
, proto_ocsp
, "id-pkix-ocsp-nonce");
991 register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.3", dissect_CrlID_PDU
, proto_ocsp
, "id-pkix-ocsp-crl");
992 register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.4", dissect_AcceptableResponses_PDU
, proto_ocsp
, "id-pkix-ocsp-response");
993 register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.5", dissect_NULL_PDU
, proto_ocsp
, "id-pkix-ocsp-nocheck");
994 register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.6", dissect_ArchiveCutoff_PDU
, proto_ocsp
, "id-pkix-ocsp-archive-cutoff");
995 register_ber_oid_dissector("1.3.6.1.5.5.7.48.1.7", dissect_ServiceLocator_PDU
, proto_ocsp
, "id-pkix-ocsp-service-locator");
998 /*--- End of included file: packet-ocsp-dis-tab.c ---*/
999 #line 141 "../../asn1/ocsp/packet-ocsp-template.c"