diff options
Diffstat (limited to 'epan/dissectors/packet-pkixqualified.c')
-rw-r--r-- | epan/dissectors/packet-pkixqualified.c | 95 |
1 files changed, 48 insertions, 47 deletions
diff --git a/epan/dissectors/packet-pkixqualified.c b/epan/dissectors/packet-pkixqualified.c index b85d39ef..e9e725aa 100644 --- a/epan/dissectors/packet-pkixqualified.c +++ b/epan/dissectors/packet-pkixqualified.c @@ -1,7 +1,7 @@ /* Do not modify this file. Changes will be overwritten. */ /* Generated automatically by the ASN.1 to Wireshark dissector compiler */ /* packet-pkixqualified.c */ -/* asn2wrs.py -b -L -p pkixqualified -c ./pkixqualified.cnf -s ./packet-pkixqualified-template -D . -O ../.. PKIXqualified.asn PKIXServiceNameSAN88.asn PKIXServiceNameSAN93.asn */ +/* asn2wrs.py -b -q -L -p pkixqualified -c ./pkixqualified.cnf -s ./packet-pkixqualified-template -D . -O ../.. PKIXqualified.asn PKIXServiceNameSAN88.asn PKIXServiceNameSAN93.asn */ /* packet-pkixqualified.c * Routines for RFC3739 PKIXqualified packet dissection @@ -18,6 +18,7 @@ #include <epan/packet.h> #include <epan/asn1.h> +#include <wsutil/array.h> #include "packet-ber.h" #include "packet-pkixqualified.h" @@ -34,37 +35,37 @@ void proto_reg_handoff_pkixqualified(void); /* Initialize the protocol and registered fields */ -static int proto_pkixqualified = -1; -static int hf_pkixqualified_Generalizedtime_PDU = -1; /* Generalizedtime */ -static int hf_pkixqualified_Directorystring_PDU = -1; /* Directorystring */ -static int hf_pkixqualified_Printablestring_PDU = -1; /* Printablestring */ -static int hf_pkixqualified_BiometricSyntax_PDU = -1; /* BiometricSyntax */ -static int hf_pkixqualified_QCStatements_PDU = -1; /* QCStatements */ -static int hf_pkixqualified_SemanticsInformation_PDU = -1; /* SemanticsInformation */ -static int hf_pkixqualified_XmppAddr_PDU = -1; /* XmppAddr */ -static int hf_pkixqualified_SRVName_PDU = -1; /* SRVName */ -static int hf_pkixqualified_BiometricSyntax_item = -1; /* BiometricData */ -static int hf_pkixqualified_typeOfBiometricData = -1; /* TypeOfBiometricData */ -static int hf_pkixqualified_hashAlgorithm = -1; /* AlgorithmIdentifier */ -static int hf_pkixqualified_biometricDataHash = -1; /* OCTET_STRING */ -static int hf_pkixqualified_sourceDataUri = -1; /* IA5String */ -static int hf_pkixqualified_predefinedBiometricType = -1; /* PredefinedBiometricType */ -static int hf_pkixqualified_biometricDataOid = -1; /* OBJECT_IDENTIFIER */ -static int hf_pkixqualified_QCStatements_item = -1; /* QCStatement */ -static int hf_pkixqualified_statementId = -1; /* T_statementId */ -static int hf_pkixqualified_statementInfo = -1; /* T_statementInfo */ -static int hf_pkixqualified_semanticsIdentifier = -1; /* OBJECT_IDENTIFIER */ -static int hf_pkixqualified_nameRegistrationAuthorities = -1; /* NameRegistrationAuthorities */ -static int hf_pkixqualified_NameRegistrationAuthorities_item = -1; /* GeneralName */ +static int proto_pkixqualified; +static int hf_pkixqualified_Generalizedtime_PDU; /* Generalizedtime */ +static int hf_pkixqualified_Directorystring_PDU; /* Directorystring */ +static int hf_pkixqualified_Printablestring_PDU; /* Printablestring */ +static int hf_pkixqualified_BiometricSyntax_PDU; /* BiometricSyntax */ +static int hf_pkixqualified_QCStatements_PDU; /* QCStatements */ +static int hf_pkixqualified_SemanticsInformation_PDU; /* SemanticsInformation */ +static int hf_pkixqualified_XmppAddr_PDU; /* XmppAddr */ +static int hf_pkixqualified_SRVName_PDU; /* SRVName */ +static int hf_pkixqualified_BiometricSyntax_item; /* BiometricData */ +static int hf_pkixqualified_typeOfBiometricData; /* TypeOfBiometricData */ +static int hf_pkixqualified_hashAlgorithm; /* AlgorithmIdentifier */ +static int hf_pkixqualified_biometricDataHash; /* OCTET_STRING */ +static int hf_pkixqualified_sourceDataUri; /* IA5String */ +static int hf_pkixqualified_predefinedBiometricType; /* PredefinedBiometricType */ +static int hf_pkixqualified_biometricDataOid; /* OBJECT_IDENTIFIER */ +static int hf_pkixqualified_QCStatements_item; /* QCStatement */ +static int hf_pkixqualified_statementId; /* T_statementId */ +static int hf_pkixqualified_statementInfo; /* T_statementInfo */ +static int hf_pkixqualified_semanticsIdentifier; /* OBJECT_IDENTIFIER */ +static int hf_pkixqualified_nameRegistrationAuthorities; /* NameRegistrationAuthorities */ +static int hf_pkixqualified_NameRegistrationAuthorities_item; /* GeneralName */ /* Initialize the subtree pointers */ -static gint ett_pkixqualified_BiometricSyntax = -1; -static gint ett_pkixqualified_BiometricData = -1; -static gint ett_pkixqualified_TypeOfBiometricData = -1; -static gint ett_pkixqualified_QCStatements = -1; -static gint ett_pkixqualified_QCStatement = -1; -static gint ett_pkixqualified_SemanticsInformation = -1; -static gint ett_pkixqualified_NameRegistrationAuthorities = -1; +static int ett_pkixqualified_BiometricSyntax; +static int ett_pkixqualified_BiometricData; +static int ett_pkixqualified_TypeOfBiometricData; +static int ett_pkixqualified_QCStatements; +static int ett_pkixqualified_QCStatement; +static int ett_pkixqualified_SemanticsInformation; +static int ett_pkixqualified_NameRegistrationAuthorities; static const char *object_identifier_id; @@ -299,57 +300,57 @@ dissect_pkixqualified_SRVName(bool implicit_tag _U_, tvbuff_t *tvb _U_, int offs static int dissect_Generalizedtime_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; - asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_pkixqualified_Generalizedtime(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_Generalizedtime_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_pkixqualified_Generalizedtime(false, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_Generalizedtime_PDU); return offset; } static int dissect_Directorystring_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; - asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_pkixqualified_Directorystring(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_Directorystring_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_pkixqualified_Directorystring(false, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_Directorystring_PDU); return offset; } static int dissect_Printablestring_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; - asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_pkixqualified_Printablestring(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_Printablestring_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_pkixqualified_Printablestring(false, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_Printablestring_PDU); return offset; } static int dissect_BiometricSyntax_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; - asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_pkixqualified_BiometricSyntax(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_BiometricSyntax_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_pkixqualified_BiometricSyntax(false, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_BiometricSyntax_PDU); return offset; } static int dissect_QCStatements_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; - asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_pkixqualified_QCStatements(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_QCStatements_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_pkixqualified_QCStatements(false, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_QCStatements_PDU); return offset; } static int dissect_SemanticsInformation_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; - asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_pkixqualified_SemanticsInformation(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_SemanticsInformation_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_pkixqualified_SemanticsInformation(false, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_SemanticsInformation_PDU); return offset; } static int dissect_XmppAddr_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; - asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_pkixqualified_XmppAddr(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_XmppAddr_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_pkixqualified_XmppAddr(false, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_XmppAddr_PDU); return offset; } static int dissect_SRVName_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t asn1_ctx; - asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_pkixqualified_SRVName(FALSE, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_SRVName_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_pkixqualified_SRVName(false, tvb, offset, &asn1_ctx, tree, hf_pkixqualified_SRVName_PDU); return offset; } @@ -447,7 +448,7 @@ void proto_register_pkixqualified(void) { }; /* List of subtrees */ - static gint *ett[] = { + static int *ett[] = { &ett_pkixqualified_BiometricSyntax, &ett_pkixqualified_BiometricData, &ett_pkixqualified_TypeOfBiometricData, |