diff options
Diffstat (limited to 'epan/dissectors/packet-h235.c')
-rw-r--r-- | epan/dissectors/packet-h235.c | 307 |
1 files changed, 154 insertions, 153 deletions
diff --git a/epan/dissectors/packet-h235.c b/epan/dissectors/packet-h235.c index f7bfe171..4c467e38 100644 --- a/epan/dissectors/packet-h235.c +++ b/epan/dissectors/packet-h235.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-h235.c */ -/* asn2wrs.py -L -p h235 -c ./h235.cnf -s ./packet-h235-template -D . -O ../.. H235-SECURITY-MESSAGES.asn H235-SRTP.asn */ +/* asn2wrs.py -q -L -p h235 -c ./h235.cnf -s ./packet-h235-template -D . -O ../.. H235-SECURITY-MESSAGES.asn H235-SRTP.asn */ /* packet-h235.c * Routines for H.235 packet dissection @@ -19,6 +19,7 @@ #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> +#include <wsutil/array.h> #include "packet-per.h" #include "packet-h235.h" @@ -40,142 +41,142 @@ void proto_register_h235(void); void proto_reg_handoff_h235(void); /* Initialize the protocol and registered fields */ -static int proto_h235 = -1; -static int hf_h235_SrtpCryptoCapability_PDU = -1; /* SrtpCryptoCapability */ -static int hf_h235_nonStandardIdentifier = -1; /* OBJECT_IDENTIFIER */ -static int hf_h235_data = -1; /* OCTET_STRING */ -static int hf_h235_halfkey = -1; /* BIT_STRING_SIZE_0_2048 */ -static int hf_h235_modSize = -1; /* BIT_STRING_SIZE_0_2048 */ -static int hf_h235_generator = -1; /* BIT_STRING_SIZE_0_2048 */ -static int hf_h235_x = -1; /* BIT_STRING_SIZE_0_511 */ -static int hf_h235_y = -1; /* BIT_STRING_SIZE_0_511 */ -static int hf_h235_eckasdhp = -1; /* T_eckasdhp */ -static int hf_h235_public_key = -1; /* ECpoint */ -static int hf_h235_modulus = -1; /* BIT_STRING_SIZE_0_511 */ -static int hf_h235_base = -1; /* ECpoint */ -static int hf_h235_weierstrassA = -1; /* BIT_STRING_SIZE_0_511 */ -static int hf_h235_weierstrassB = -1; /* BIT_STRING_SIZE_0_511 */ -static int hf_h235_eckasdh2 = -1; /* T_eckasdh2 */ -static int hf_h235_fieldSize = -1; /* BIT_STRING_SIZE_0_511 */ -static int hf_h235_type = -1; /* OBJECT_IDENTIFIER */ -static int hf_h235_certificatedata = -1; /* OCTET_STRING */ -static int hf_h235_default = -1; /* NULL */ -static int hf_h235_radius = -1; /* NULL */ -static int hf_h235_dhExch = -1; /* NULL */ -static int hf_h235_pwdSymEnc = -1; /* NULL */ -static int hf_h235_pwdHash = -1; /* NULL */ -static int hf_h235_certSign = -1; /* NULL */ -static int hf_h235_ipsec = -1; /* NULL */ -static int hf_h235_tls = -1; /* NULL */ -static int hf_h235_nonStandard = -1; /* NonStandardParameter */ -static int hf_h235_authenticationBES = -1; /* AuthenticationBES */ -static int hf_h235_keyExch = -1; /* OBJECT_IDENTIFIER */ -static int hf_h235_tokenOID = -1; /* OBJECT_IDENTIFIER */ -static int hf_h235_timeStamp = -1; /* TimeStamp */ -static int hf_h235_password = -1; /* Password */ -static int hf_h235_dhkey = -1; /* DHset */ -static int hf_h235_challenge = -1; /* ChallengeString */ -static int hf_h235_random = -1; /* RandomVal */ -static int hf_h235_certificate = -1; /* TypedCertificate */ -static int hf_h235_generalID = -1; /* Identifier */ -static int hf_h235_eckasdhkey = -1; /* ECKASDH */ -static int hf_h235_sendersID = -1; /* Identifier */ -static int hf_h235_h235Key = -1; /* H235Key */ -static int hf_h235_profileInfo = -1; /* SEQUENCE_OF_ProfileElement */ -static int hf_h235_profileInfo_item = -1; /* ProfileElement */ -static int hf_h235_elementID = -1; /* INTEGER_0_255 */ -static int hf_h235_paramS = -1; /* Params */ -static int hf_h235_element = -1; /* Element */ -static int hf_h235_octets = -1; /* OCTET_STRING */ -static int hf_h235_integer = -1; /* INTEGER */ -static int hf_h235_bits = -1; /* BIT_STRING */ -static int hf_h235_name = -1; /* BMPString */ -static int hf_h235_flag = -1; /* BOOLEAN */ -static int hf_h235_toBeSigned = -1; /* ToBeSigned */ -static int hf_h235_algorithmOID = -1; /* OBJECT_IDENTIFIER */ -static int hf_h235_signaturedata = -1; /* BIT_STRING */ -static int hf_h235_encryptedData = -1; /* OCTET_STRING */ -static int hf_h235_hash = -1; /* BIT_STRING */ -static int hf_h235_ranInt = -1; /* INTEGER */ -static int hf_h235_iv8 = -1; /* IV8 */ -static int hf_h235_iv16 = -1; /* IV16 */ -static int hf_h235_iv = -1; /* OCTET_STRING */ -static int hf_h235_clearSalt = -1; /* OCTET_STRING */ -static int hf_h235_cryptoEncryptedToken = -1; /* T_cryptoEncryptedToken */ -static int hf_h235_encryptedToken = -1; /* ENCRYPTED */ -static int hf_h235_cryptoSignedToken = -1; /* T_cryptoSignedToken */ -static int hf_h235_signedToken = -1; /* SIGNED */ -static int hf_h235_cryptoHashedToken = -1; /* T_cryptoHashedToken */ -static int hf_h235_hashedVals = -1; /* ClearToken */ -static int hf_h235_hashedToken = -1; /* HASHED */ -static int hf_h235_cryptoPwdEncr = -1; /* ENCRYPTED */ -static int hf_h235_secureChannel = -1; /* KeyMaterial */ -static int hf_h235_sharedSecret = -1; /* ENCRYPTED */ -static int hf_h235_certProtectedKey = -1; /* SIGNED */ -static int hf_h235_secureSharedSecret = -1; /* V3KeySyncMaterial */ -static int hf_h235_encryptedSessionKey = -1; /* OCTET_STRING */ -static int hf_h235_encryptedSaltingKey = -1; /* OCTET_STRING */ -static int hf_h235_clearSaltingKey = -1; /* OCTET_STRING */ -static int hf_h235_paramSsalt = -1; /* Params */ -static int hf_h235_keyDerivationOID = -1; /* OBJECT_IDENTIFIER */ -static int hf_h235_genericKeyMaterial = -1; /* OCTET_STRING */ -static int hf_h235_SrtpCryptoCapability_item = -1; /* SrtpCryptoInfo */ -static int hf_h235_cryptoSuite = -1; /* OBJECT_IDENTIFIER */ -static int hf_h235_sessionParams = -1; /* SrtpSessionParameters */ -static int hf_h235_allowMKI = -1; /* BOOLEAN */ -static int hf_h235_SrtpKeys_item = -1; /* SrtpKeyParameters */ -static int hf_h235_masterKey = -1; /* OCTET_STRING */ -static int hf_h235_masterSalt = -1; /* OCTET_STRING */ -static int hf_h235_lifetime = -1; /* T_lifetime */ -static int hf_h235_powerOfTwo = -1; /* INTEGER */ -static int hf_h235_specific = -1; /* INTEGER */ -static int hf_h235_mki = -1; /* T_mki */ -static int hf_h235_length = -1; /* INTEGER_1_128 */ -static int hf_h235_value = -1; /* OCTET_STRING */ -static int hf_h235_kdr = -1; /* INTEGER_0_24 */ -static int hf_h235_unencryptedSrtp = -1; /* BOOLEAN */ -static int hf_h235_unencryptedSrtcp = -1; /* BOOLEAN */ -static int hf_h235_unauthenticatedSrtp = -1; /* BOOLEAN */ -static int hf_h235_fecOrder = -1; /* FecOrder */ -static int hf_h235_windowSizeHint = -1; /* INTEGER_64_65535 */ -static int hf_h235_newParameter = -1; /* SEQUENCE_OF_GenericData */ -static int hf_h235_newParameter_item = -1; /* GenericData */ -static int hf_h235_fecBeforeSrtp = -1; /* NULL */ -static int hf_h235_fecAfterSrtp = -1; /* NULL */ +static int proto_h235; +static int hf_h235_SrtpCryptoCapability_PDU; /* SrtpCryptoCapability */ +static int hf_h235_nonStandardIdentifier; /* OBJECT_IDENTIFIER */ +static int hf_h235_data; /* OCTET_STRING */ +static int hf_h235_halfkey; /* BIT_STRING_SIZE_0_2048 */ +static int hf_h235_modSize; /* BIT_STRING_SIZE_0_2048 */ +static int hf_h235_generator; /* BIT_STRING_SIZE_0_2048 */ +static int hf_h235_x; /* BIT_STRING_SIZE_0_511 */ +static int hf_h235_y; /* BIT_STRING_SIZE_0_511 */ +static int hf_h235_eckasdhp; /* T_eckasdhp */ +static int hf_h235_public_key; /* ECpoint */ +static int hf_h235_modulus; /* BIT_STRING_SIZE_0_511 */ +static int hf_h235_base; /* ECpoint */ +static int hf_h235_weierstrassA; /* BIT_STRING_SIZE_0_511 */ +static int hf_h235_weierstrassB; /* BIT_STRING_SIZE_0_511 */ +static int hf_h235_eckasdh2; /* T_eckasdh2 */ +static int hf_h235_fieldSize; /* BIT_STRING_SIZE_0_511 */ +static int hf_h235_type; /* OBJECT_IDENTIFIER */ +static int hf_h235_certificatedata; /* OCTET_STRING */ +static int hf_h235_default; /* NULL */ +static int hf_h235_radius; /* NULL */ +static int hf_h235_dhExch; /* NULL */ +static int hf_h235_pwdSymEnc; /* NULL */ +static int hf_h235_pwdHash; /* NULL */ +static int hf_h235_certSign; /* NULL */ +static int hf_h235_ipsec; /* NULL */ +static int hf_h235_tls; /* NULL */ +static int hf_h235_nonStandard; /* NonStandardParameter */ +static int hf_h235_authenticationBES; /* AuthenticationBES */ +static int hf_h235_keyExch; /* OBJECT_IDENTIFIER */ +static int hf_h235_tokenOID; /* OBJECT_IDENTIFIER */ +static int hf_h235_timeStamp; /* TimeStamp */ +static int hf_h235_password; /* Password */ +static int hf_h235_dhkey; /* DHset */ +static int hf_h235_challenge; /* ChallengeString */ +static int hf_h235_random; /* RandomVal */ +static int hf_h235_certificate; /* TypedCertificate */ +static int hf_h235_generalID; /* Identifier */ +static int hf_h235_eckasdhkey; /* ECKASDH */ +static int hf_h235_sendersID; /* Identifier */ +static int hf_h235_h235Key; /* H235Key */ +static int hf_h235_profileInfo; /* SEQUENCE_OF_ProfileElement */ +static int hf_h235_profileInfo_item; /* ProfileElement */ +static int hf_h235_elementID; /* INTEGER_0_255 */ +static int hf_h235_paramS; /* Params */ +static int hf_h235_element; /* Element */ +static int hf_h235_octets; /* OCTET_STRING */ +static int hf_h235_integer; /* INTEGER */ +static int hf_h235_bits; /* BIT_STRING */ +static int hf_h235_name; /* BMPString */ +static int hf_h235_flag; /* BOOLEAN */ +static int hf_h235_toBeSigned; /* ToBeSigned */ +static int hf_h235_algorithmOID; /* OBJECT_IDENTIFIER */ +static int hf_h235_signaturedata; /* BIT_STRING */ +static int hf_h235_encryptedData; /* OCTET_STRING */ +static int hf_h235_hash; /* BIT_STRING */ +static int hf_h235_ranInt; /* INTEGER */ +static int hf_h235_iv8; /* IV8 */ +static int hf_h235_iv16; /* IV16 */ +static int hf_h235_iv; /* OCTET_STRING */ +static int hf_h235_clearSalt; /* OCTET_STRING */ +static int hf_h235_cryptoEncryptedToken; /* T_cryptoEncryptedToken */ +static int hf_h235_encryptedToken; /* ENCRYPTED */ +static int hf_h235_cryptoSignedToken; /* T_cryptoSignedToken */ +static int hf_h235_signedToken; /* SIGNED */ +static int hf_h235_cryptoHashedToken; /* T_cryptoHashedToken */ +static int hf_h235_hashedVals; /* ClearToken */ +static int hf_h235_hashedToken; /* HASHED */ +static int hf_h235_cryptoPwdEncr; /* ENCRYPTED */ +static int hf_h235_secureChannel; /* KeyMaterial */ +static int hf_h235_sharedSecret; /* ENCRYPTED */ +static int hf_h235_certProtectedKey; /* SIGNED */ +static int hf_h235_secureSharedSecret; /* V3KeySyncMaterial */ +static int hf_h235_encryptedSessionKey; /* OCTET_STRING */ +static int hf_h235_encryptedSaltingKey; /* OCTET_STRING */ +static int hf_h235_clearSaltingKey; /* OCTET_STRING */ +static int hf_h235_paramSsalt; /* Params */ +static int hf_h235_keyDerivationOID; /* OBJECT_IDENTIFIER */ +static int hf_h235_genericKeyMaterial; /* OCTET_STRING */ +static int hf_h235_SrtpCryptoCapability_item; /* SrtpCryptoInfo */ +static int hf_h235_cryptoSuite; /* OBJECT_IDENTIFIER */ +static int hf_h235_sessionParams; /* SrtpSessionParameters */ +static int hf_h235_allowMKI; /* BOOLEAN */ +static int hf_h235_SrtpKeys_item; /* SrtpKeyParameters */ +static int hf_h235_masterKey; /* OCTET_STRING */ +static int hf_h235_masterSalt; /* OCTET_STRING */ +static int hf_h235_lifetime; /* T_lifetime */ +static int hf_h235_powerOfTwo; /* INTEGER */ +static int hf_h235_specific; /* INTEGER */ +static int hf_h235_mki; /* T_mki */ +static int hf_h235_length; /* INTEGER_1_128 */ +static int hf_h235_value; /* OCTET_STRING */ +static int hf_h235_kdr; /* INTEGER_0_24 */ +static int hf_h235_unencryptedSrtp; /* BOOLEAN */ +static int hf_h235_unencryptedSrtcp; /* BOOLEAN */ +static int hf_h235_unauthenticatedSrtp; /* BOOLEAN */ +static int hf_h235_fecOrder; /* FecOrder */ +static int hf_h235_windowSizeHint; /* INTEGER_64_65535 */ +static int hf_h235_newParameter; /* SEQUENCE_OF_GenericData */ +static int hf_h235_newParameter_item; /* GenericData */ +static int hf_h235_fecBeforeSrtp; /* NULL */ +static int hf_h235_fecAfterSrtp; /* NULL */ /* Initialize the subtree pointers */ -static gint ett_h235_NonStandardParameter = -1; -static gint ett_h235_DHset = -1; -static gint ett_h235_ECpoint = -1; -static gint ett_h235_ECKASDH = -1; -static gint ett_h235_T_eckasdhp = -1; -static gint ett_h235_T_eckasdh2 = -1; -static gint ett_h235_TypedCertificate = -1; -static gint ett_h235_AuthenticationBES = -1; -static gint ett_h235_AuthenticationMechanism = -1; -static gint ett_h235_ClearToken = -1; -static gint ett_h235_SEQUENCE_OF_ProfileElement = -1; -static gint ett_h235_ProfileElement = -1; -static gint ett_h235_Element = -1; -static gint ett_h235_SIGNED = -1; -static gint ett_h235_ENCRYPTED = -1; -static gint ett_h235_HASHED = -1; -static gint ett_h235_Params = -1; -static gint ett_h235_CryptoToken = -1; -static gint ett_h235_T_cryptoEncryptedToken = -1; -static gint ett_h235_T_cryptoSignedToken = -1; -static gint ett_h235_T_cryptoHashedToken = -1; -static gint ett_h235_H235Key = -1; -static gint ett_h235_V3KeySyncMaterial = -1; -static gint ett_h235_SrtpCryptoCapability = -1; -static gint ett_h235_SrtpCryptoInfo = -1; -static gint ett_h235_SrtpKeys = -1; -static gint ett_h235_SrtpKeyParameters = -1; -static gint ett_h235_T_lifetime = -1; -static gint ett_h235_T_mki = -1; -static gint ett_h235_SrtpSessionParameters = -1; -static gint ett_h235_SEQUENCE_OF_GenericData = -1; -static gint ett_h235_FecOrder = -1; +static int ett_h235_NonStandardParameter; +static int ett_h235_DHset; +static int ett_h235_ECpoint; +static int ett_h235_ECKASDH; +static int ett_h235_T_eckasdhp; +static int ett_h235_T_eckasdh2; +static int ett_h235_TypedCertificate; +static int ett_h235_AuthenticationBES; +static int ett_h235_AuthenticationMechanism; +static int ett_h235_ClearToken; +static int ett_h235_SEQUENCE_OF_ProfileElement; +static int ett_h235_ProfileElement; +static int ett_h235_Element; +static int ett_h235_SIGNED; +static int ett_h235_ENCRYPTED; +static int ett_h235_HASHED; +static int ett_h235_Params; +static int ett_h235_CryptoToken; +static int ett_h235_T_cryptoEncryptedToken; +static int ett_h235_T_cryptoSignedToken; +static int ett_h235_T_cryptoHashedToken; +static int ett_h235_H235Key; +static int ett_h235_V3KeySyncMaterial; +static int ett_h235_SrtpCryptoCapability; +static int ett_h235_SrtpCryptoInfo; +static int ett_h235_SrtpKeys; +static int ett_h235_SrtpKeyParameters; +static int ett_h235_T_lifetime; +static int ett_h235_T_mki; +static int ett_h235_SrtpSessionParameters; +static int ett_h235_SEQUENCE_OF_GenericData; +static int ett_h235_FecOrder; static int @@ -189,7 +190,7 @@ dissect_xxx_ToBeSigned(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree * static int dissect_h235_ChallengeString(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - 8, 128, FALSE, NULL); + 8, 128, false, NULL); return offset; } @@ -199,7 +200,7 @@ dissect_h235_ChallengeString(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx int dissect_h235_TimeStamp(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 1U, 4294967295U, NULL, FALSE); + 1U, 4294967295U, NULL, false); return offset; } @@ -218,7 +219,7 @@ dissect_h235_RandomVal(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, static int dissect_h235_Password(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_BMPString(tvb, offset, actx, tree, hf_index, - 1, 128, FALSE); + 1, 128, false); return offset; } @@ -228,7 +229,7 @@ dissect_h235_Password(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p static int dissect_h235_Identifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_BMPString(tvb, offset, actx, tree, hf_index, - 1, 128, FALSE); + 1, 128, false); return offset; } @@ -238,7 +239,7 @@ dissect_h235_Identifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, static int dissect_h235_KeyMaterial(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index, - 1, 2048, FALSE, NULL, 0, NULL, NULL); + 1, 2048, false, NULL, 0, NULL, NULL); return offset; } @@ -257,7 +258,7 @@ dissect_h235_OBJECT_IDENTIFIER(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *ac static int dissect_h235_OCTET_STRING(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - NO_BOUND, NO_BOUND, FALSE, NULL); + NO_BOUND, NO_BOUND, false, NULL); return offset; } @@ -282,7 +283,7 @@ dissect_h235_NonStandardParameter(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t static int dissect_h235_BIT_STRING_SIZE_0_2048(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index, - 0, 2048, FALSE, NULL, 0, NULL, NULL); + 0, 2048, false, NULL, 0, NULL, NULL); return offset; } @@ -308,7 +309,7 @@ dissect_h235_DHset(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, prot static int dissect_h235_BIT_STRING_SIZE_0_511(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index, - 0, 511, FALSE, NULL, 0, NULL, NULL); + 0, 511, false, NULL, 0, NULL, NULL); return offset; } @@ -482,7 +483,7 @@ dissect_h235_INTEGER(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, pr static int dissect_h235_IV8(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - 8, 8, FALSE, NULL); + 8, 8, false, NULL); return offset; } @@ -492,7 +493,7 @@ dissect_h235_IV8(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_ static int dissect_h235_IV16(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, - 16, 16, FALSE, NULL); + 16, 16, false, NULL); return offset; } @@ -539,7 +540,7 @@ dissect_h235_ENCRYPTED(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, static int dissect_h235_BIT_STRING(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_bit_string(tvb, offset, actx, tree, hf_index, - NO_BOUND, NO_BOUND, FALSE, NULL, 0, NULL, NULL); + NO_BOUND, NO_BOUND, false, NULL, 0, NULL, NULL); return offset; } @@ -617,7 +618,7 @@ dissect_h235_H235Key(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, pr static int dissect_h235_INTEGER_0_255(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 0U, 255U, NULL, FALSE); + 0U, 255U, NULL, false); return offset; } @@ -627,7 +628,7 @@ dissect_h235_INTEGER_0_255(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _ static int dissect_h235_BMPString(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_BMPString(tvb, offset, actx, tree, hf_index, - NO_BOUND, NO_BOUND, FALSE); + NO_BOUND, NO_BOUND, false); return offset; } @@ -826,7 +827,7 @@ dissect_h235_CryptoToken(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_ static int dissect_h235_INTEGER_0_24(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 0U, 24U, NULL, FALSE); + 0U, 24U, NULL, false); return offset; } @@ -851,7 +852,7 @@ dissect_h235_FecOrder(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p static int dissect_h235_INTEGER_64_65535(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 64U, 65535U, NULL, FALSE); + 64U, 65535U, NULL, false); return offset; } @@ -945,7 +946,7 @@ dissect_h235_T_lifetime(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, static int dissect_h235_INTEGER_1_128(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, - 1U, 128U, NULL, FALSE); + 1U, 128U, NULL, false); return offset; } @@ -1000,7 +1001,7 @@ dissect_h235_SrtpKeys(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, p static int dissect_SrtpCryptoCapability_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_PER, TRUE, pinfo); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_PER, true, pinfo); offset = dissect_h235_SrtpCryptoCapability(tvb, offset, &asn1_ctx, tree, hf_h235_SrtpCryptoCapability_PDU); offset += 7; offset >>= 3; return offset; @@ -1420,7 +1421,7 @@ void proto_register_h235(void) { }; /* List of subtrees */ - static gint *ett[] = { + static int *ett[] = { &ett_h235_NonStandardParameter, &ett_h235_DHset, &ett_h235_ECpoint, |