aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/x509sat/packet-x509sat-template.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-07-22 13:11:13 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-07-22 13:11:13 +0000
commit744387f3cae9a381c87a23efab49a10b8ba7fce4 (patch)
treeded7036769863998b233702ebf6d1312e36c0c69 /asn1/x509sat/packet-x509sat-template.c
parentf42a958398daccf62c08ee0836b68fda1c33998b (diff)
add the countryname attribute
svn path=/trunk/; revision=11470
Diffstat (limited to 'asn1/x509sat/packet-x509sat-template.c')
-rw-r--r--asn1/x509sat/packet-x509sat-template.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/asn1/x509sat/packet-x509sat-template.c b/asn1/x509sat/packet-x509sat-template.c
index e0abc07264..8722808daf 100644
--- a/asn1/x509sat/packet-x509sat-template.c
+++ b/asn1/x509sat/packet-x509sat-template.c
@@ -43,6 +43,7 @@
/* Initialize the protocol and registered fields */
int proto_x509sat = -1;
+int hf_x509sat_countryName = -1;
#include "packet-x509sat-hf.c"
/* Initialize the subtree pointers */
@@ -51,11 +52,21 @@ int proto_x509sat = -1;
#include "packet-x509sat-fn.c"
+static void
+dissect_x509sat_countryName_callback(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+{
+ dissect_x509sat_CountryName(FALSE, tvb, 0, pinfo, tree, hf_x509sat_countryName);
+}
+
/*--- proto_register_x509sat ----------------------------------------------*/
void proto_register_x509sat(void) {
/* List of fields */
static hf_register_info hf[] = {
+ { &hf_x509sat_countryName,
+ { "countryName", "x509sat.countryName",
+ FT_STRING, BASE_NONE, NULL, 0,
+ "Country Name", HFILL }},
#include "packet-x509sat-hfarr.c"
};
@@ -76,5 +87,9 @@ void proto_register_x509sat(void) {
/*--- proto_reg_handoff_x509sat -------------------------------------------*/
void proto_reg_handoff_x509sat(void) {
+ dissector_handle_t dissector_handle;
+
+ dissector_handle=create_dissector_handle(dissect_x509sat_countryName_callback, proto_x509sat);
+ dissector_add_string("ber.oid", "2.5.4.6", dissector_handle);
}