make the dissector use the nice #.REGISTER directive
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Oct 2004 14:02:02 +0000 (14:02 +0000)
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 26 Oct 2004 14:02:02 +0000 (14:02 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12395 f5534014-38df-0310-8fa8-9805f1628bb7

asn1/ns-cert-exts/ns_cert_exts.cnf
asn1/ns-cert-exts/packet-ns_cert_exts-template.c

index c3a227657d275274ba989065183ba5790f1a9fc4..a3958aeb9121ee13341a792fbca23ec110d7dad5 100644 (file)
@@ -7,15 +7,15 @@
 
 #.EXPORTS
 
-#.PDU
-BaseUrl
-CaPolicyUrl
-CaRevocationUrl
-CertRenewalUrl
-CertType
-Comment
-RevocationUrl
-SslServerName
+#.REGISTER
+CertType        B "2.16.840.1.113730.1.1"  "ns-cert-exts.cert_type"
+BaseUrl         B "2.16.840.1.113730.1.2"  "ns-cert-exts.base_url"
+RevocationUrl   B "2.16.840.1.113730.1.3"  "ns-cert-exts.revocation-url"
+CaRevocationUrl B "2.16.840.1.113730.1.4"  "ns-cert-exts.ca-revocation-url"
+CertRenewalUrl  B "2.16.840.1.113730.1.7"  "ns-cert-exts.cert-renewal-url"
+CaPolicyUrl     B "2.16.840.1.113730.1.8"  "ns-cert-exts.ca-policy-url"
+SslServerName   B "2.16.840.1.113730.1.12" "ns-cert-exts.ssl-server-name"
+Comment         B "2.16.840.1.113730.1.13" "ns-cert-exts.comment"
 
 #.NO_EMIT
 
index f937c2a6d066f616acc136d2fd7831e0cdf6829d..44d3b733164041abc0c020990dc1e8a452d42ecf 100644 (file)
@@ -74,13 +74,6 @@ void proto_register_ns_cert_exts(void) {
 
 /*--- proto_reg_handoff_ns_cert_exts ---------------------------------------*/
 void proto_reg_handoff_ns_cert_exts(void) {
-       register_ber_oid_dissector("2.16.840.1.113730.1.1", dissect_CertType_PDU, proto_ns_cert_exts, "ns-cert-exts.cert_type");
-       register_ber_oid_dissector("2.16.840.1.113730.1.2", dissect_BaseUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.base_url");
-       register_ber_oid_dissector("2.16.840.1.113730.1.3", dissect_RevocationUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.revocation-url");
-       register_ber_oid_dissector("2.16.840.1.113730.1.4", dissect_CaRevocationUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.ca-revocation-url");
-       register_ber_oid_dissector("2.16.840.1.113730.1.7", dissect_CertRenewalUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.cert-renewal-url");
-       register_ber_oid_dissector("2.16.840.1.113730.1.8", dissect_CaPolicyUrl_PDU, proto_ns_cert_exts, "ns-cert-exts.ca-policy-url");
-       register_ber_oid_dissector("2.16.840.1.113730.1.12", dissect_SslServerName_PDU, proto_ns_cert_exts, "ns-cert-exts.ssl-server-name");
-       register_ber_oid_dissector("2.16.840.1.113730.1.13", dissect_Comment_PDU, proto_ns_cert_exts, "ns-cert-exts.comment");
+#include "packet-ns_cert_exts-dis-tab.c"
 }