diff options
Diffstat (limited to 'epan/dissectors/packet-tcg-cp-oids.c')
-rw-r--r-- | epan/dissectors/packet-tcg-cp-oids.c | 203 |
1 files changed, 102 insertions, 101 deletions
diff --git a/epan/dissectors/packet-tcg-cp-oids.c b/epan/dissectors/packet-tcg-cp-oids.c index 6c6eda07..43f2f155 100644 --- a/epan/dissectors/packet-tcg-cp-oids.c +++ b/epan/dissectors/packet-tcg-cp-oids.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-tcg-cp-oids.c */ -/* asn2wrs.py -b -L -p tcg-cp-oids -c ./tcg-cp-oids.cnf -s ./packet-tcg-cp-oids-template -D . -O ../.. tcg-cp-oids.asn */ +/* asn2wrs.py -b -q -L -p tcg-cp-oids -c ./tcg-cp-oids.cnf -s ./packet-tcg-cp-oids-template -D . -O ../.. tcg-cp-oids.asn */ /* packet-tcg-cp-oids.c * @@ -17,6 +17,7 @@ #include <epan/packet.h> #include <epan/oids.h> #include <epan/asn1.h> +#include <wsutil/array.h> #include "packet-tcg-cp-oids.h" #include "packet-ber.h" @@ -31,79 +32,79 @@ void proto_register_tcg_cp_oids(void); void proto_reg_handoff_tcg_cp_oids(void); /* Initialize the protocol and registered fields */ -static int proto_tcg_cp_oids = -1; -static int hf_tcg_cp_oids_TPMSpecification_PDU = -1; /* TPMSpecification */ -static int hf_tcg_cp_oids_TCGPlatformSpecification_PDU = -1; /* TCGPlatformSpecification */ -static int hf_tcg_cp_oids_TCPASpecVersion_PDU = -1; /* TCPASpecVersion */ -static int hf_tcg_cp_oids_TPMSecurityAssertions_PDU = -1; /* TPMSecurityAssertions */ -static int hf_tcg_cp_oids_TBBSecurityAssertions_PDU = -1; /* TBBSecurityAssertions */ -static int hf_tcg_cp_oids_ProtectionProfile_PDU = -1; /* ProtectionProfile */ -static int hf_tcg_cp_oids_SecurityTarget_PDU = -1; /* SecurityTarget */ -static int hf_tcg_cp_oids_TCGRelevantCredentials_PDU = -1; /* TCGRelevantCredentials */ -static int hf_tcg_cp_oids_TCGRelevantManifests_PDU = -1; /* TCGRelevantManifests */ -static int hf_tcg_cp_oids_VirtualPlatformAttestationServiceURI_PDU = -1; /* VirtualPlatformAttestationServiceURI */ -static int hf_tcg_cp_oids_MigrationControllerAttestationServiceURI_PDU = -1; /* MigrationControllerAttestationServiceURI */ -static int hf_tcg_cp_oids_MigrationControllerRegistrationServiceURI_PDU = -1; /* MigrationControllerRegistrationServiceURI */ -static int hf_tcg_cp_oids_VirtualPlatformBackupServiceURI_PDU = -1; /* VirtualPlatformBackupServiceURI */ -static int hf_tcg_cp_oids_family = -1; /* UTF8String */ -static int hf_tcg_cp_oids_tpm_specification_level = -1; /* INTEGER */ -static int hf_tcg_cp_oids_revision = -1; /* INTEGER */ -static int hf_tcg_cp_oids_majorVersion = -1; /* INTEGER */ -static int hf_tcg_cp_oids_minorVersion = -1; /* INTEGER */ -static int hf_tcg_cp_oids_tcg_specification_vesion = -1; /* TCGSpecificationVersion */ -static int hf_tcg_cp_oids_platformClass = -1; /* OCTET_STRING */ -static int hf_tcg_cp_oids_major = -1; /* INTEGER */ -static int hf_tcg_cp_oids_minor = -1; /* INTEGER */ -static int hf_tcg_cp_oids_security_assertions_version = -1; /* Version */ -static int hf_tcg_cp_oids_fieldUpgradable = -1; /* BOOLEAN */ -static int hf_tcg_cp_oids_ekGenerationType = -1; /* EKGenerationType */ -static int hf_tcg_cp_oids_ekGenerationLocation = -1; /* EKGenerationLocation */ -static int hf_tcg_cp_oids_ekCertificateGenerationLocation = -1; /* EKCertificateGenerationLocation */ -static int hf_tcg_cp_oids_ccInfo = -1; /* CommonCriteriaMeasures */ -static int hf_tcg_cp_oids_fipsLevel = -1; /* FIPSLevel */ -static int hf_tcg_cp_oids_iso9000Certified = -1; /* BOOLEAN */ -static int hf_tcg_cp_oids_iso9000Uri = -1; /* IA5String */ -static int hf_tcg_cp_oids_rtmType = -1; /* MeasurementRootType */ -static int hf_tcg_cp_oids_cc_measures_version_string = -1; /* IA5String */ -static int hf_tcg_cp_oids_assurancelevel = -1; /* EvaluationAssuranceLevel */ -static int hf_tcg_cp_oids_evaluationStatus = -1; /* EvaluationStatus */ -static int hf_tcg_cp_oids_plus = -1; /* BOOLEAN */ -static int hf_tcg_cp_oids_strengthOfFunction = -1; /* StrengthOfFunction */ -static int hf_tcg_cp_oids_profileOid = -1; /* OBJECT_IDENTIFIER */ -static int hf_tcg_cp_oids_profileUri = -1; /* URIReference */ -static int hf_tcg_cp_oids_targetOid = -1; /* OBJECT_IDENTIFIER */ -static int hf_tcg_cp_oids_targetUri = -1; /* URIReference */ -static int hf_tcg_cp_oids_uniformResourceIdentifier = -1; /* IA5String */ -static int hf_tcg_cp_oids_hashAlgorithm = -1; /* AlgorithmIdentifier */ -static int hf_tcg_cp_oids_uri_reference_hashvalue = -1; /* BIT_STRING */ -static int hf_tcg_cp_oids_fips_level_version_string = -1; /* IA5String */ -static int hf_tcg_cp_oids_fips_security_level = -1; /* SecurityLevel */ -static int hf_tcg_cp_oids_hashAlg = -1; /* AlgorithmIdentifier */ -static int hf_tcg_cp_oids_hash_alg_and_value_hashvalue = -1; /* OCTET_STRING */ -static int hf_tcg_cp_oids_documentURI = -1; /* IA5String */ -static int hf_tcg_cp_oids_documentAccessInfo = -1; /* OBJECT_IDENTIFIER */ -static int hf_tcg_cp_oids_documentHashInfo = -1; /* HashAlgAndValue */ -static int hf_tcg_cp_oids_TCGRelevantCredentials_item = -1; /* HashedSubjectInfoURI */ -static int hf_tcg_cp_oids_TCGRelevantManifests_item = -1; /* HashedSubjectInfoURI */ -static int hf_tcg_cp_oids_restoreAllowed = -1; /* BOOLEAN */ -static int hf_tcg_cp_oids_backupServiceURI = -1; /* IA5String */ -static int hf_tcg_cp_oids_UTF8String_PDU = -1; +static int proto_tcg_cp_oids; +static int hf_tcg_cp_oids_TPMSpecification_PDU; /* TPMSpecification */ +static int hf_tcg_cp_oids_TCGPlatformSpecification_PDU; /* TCGPlatformSpecification */ +static int hf_tcg_cp_oids_TCPASpecVersion_PDU; /* TCPASpecVersion */ +static int hf_tcg_cp_oids_TPMSecurityAssertions_PDU; /* TPMSecurityAssertions */ +static int hf_tcg_cp_oids_TBBSecurityAssertions_PDU; /* TBBSecurityAssertions */ +static int hf_tcg_cp_oids_ProtectionProfile_PDU; /* ProtectionProfile */ +static int hf_tcg_cp_oids_SecurityTarget_PDU; /* SecurityTarget */ +static int hf_tcg_cp_oids_TCGRelevantCredentials_PDU; /* TCGRelevantCredentials */ +static int hf_tcg_cp_oids_TCGRelevantManifests_PDU; /* TCGRelevantManifests */ +static int hf_tcg_cp_oids_VirtualPlatformAttestationServiceURI_PDU; /* VirtualPlatformAttestationServiceURI */ +static int hf_tcg_cp_oids_MigrationControllerAttestationServiceURI_PDU; /* MigrationControllerAttestationServiceURI */ +static int hf_tcg_cp_oids_MigrationControllerRegistrationServiceURI_PDU; /* MigrationControllerRegistrationServiceURI */ +static int hf_tcg_cp_oids_VirtualPlatformBackupServiceURI_PDU; /* VirtualPlatformBackupServiceURI */ +static int hf_tcg_cp_oids_family; /* UTF8String */ +static int hf_tcg_cp_oids_tpm_specification_level; /* INTEGER */ +static int hf_tcg_cp_oids_revision; /* INTEGER */ +static int hf_tcg_cp_oids_majorVersion; /* INTEGER */ +static int hf_tcg_cp_oids_minorVersion; /* INTEGER */ +static int hf_tcg_cp_oids_tcg_specification_vesion; /* TCGSpecificationVersion */ +static int hf_tcg_cp_oids_platformClass; /* OCTET_STRING */ +static int hf_tcg_cp_oids_major; /* INTEGER */ +static int hf_tcg_cp_oids_minor; /* INTEGER */ +static int hf_tcg_cp_oids_security_assertions_version; /* Version */ +static int hf_tcg_cp_oids_fieldUpgradable; /* BOOLEAN */ +static int hf_tcg_cp_oids_ekGenerationType; /* EKGenerationType */ +static int hf_tcg_cp_oids_ekGenerationLocation; /* EKGenerationLocation */ +static int hf_tcg_cp_oids_ekCertificateGenerationLocation; /* EKCertificateGenerationLocation */ +static int hf_tcg_cp_oids_ccInfo; /* CommonCriteriaMeasures */ +static int hf_tcg_cp_oids_fipsLevel; /* FIPSLevel */ +static int hf_tcg_cp_oids_iso9000Certified; /* BOOLEAN */ +static int hf_tcg_cp_oids_iso9000Uri; /* IA5String */ +static int hf_tcg_cp_oids_rtmType; /* MeasurementRootType */ +static int hf_tcg_cp_oids_cc_measures_version_string; /* IA5String */ +static int hf_tcg_cp_oids_assurancelevel; /* EvaluationAssuranceLevel */ +static int hf_tcg_cp_oids_evaluationStatus; /* EvaluationStatus */ +static int hf_tcg_cp_oids_plus; /* BOOLEAN */ +static int hf_tcg_cp_oids_strengthOfFunction; /* StrengthOfFunction */ +static int hf_tcg_cp_oids_profileOid; /* OBJECT_IDENTIFIER */ +static int hf_tcg_cp_oids_profileUri; /* URIReference */ +static int hf_tcg_cp_oids_targetOid; /* OBJECT_IDENTIFIER */ +static int hf_tcg_cp_oids_targetUri; /* URIReference */ +static int hf_tcg_cp_oids_uniformResourceIdentifier; /* IA5String */ +static int hf_tcg_cp_oids_hashAlgorithm; /* AlgorithmIdentifier */ +static int hf_tcg_cp_oids_uri_reference_hashvalue; /* BIT_STRING */ +static int hf_tcg_cp_oids_fips_level_version_string; /* IA5String */ +static int hf_tcg_cp_oids_fips_security_level; /* SecurityLevel */ +static int hf_tcg_cp_oids_hashAlg; /* AlgorithmIdentifier */ +static int hf_tcg_cp_oids_hash_alg_and_value_hashvalue; /* OCTET_STRING */ +static int hf_tcg_cp_oids_documentURI; /* IA5String */ +static int hf_tcg_cp_oids_documentAccessInfo; /* OBJECT_IDENTIFIER */ +static int hf_tcg_cp_oids_documentHashInfo; /* HashAlgAndValue */ +static int hf_tcg_cp_oids_TCGRelevantCredentials_item; /* HashedSubjectInfoURI */ +static int hf_tcg_cp_oids_TCGRelevantManifests_item; /* HashedSubjectInfoURI */ +static int hf_tcg_cp_oids_restoreAllowed; /* BOOLEAN */ +static int hf_tcg_cp_oids_backupServiceURI; /* IA5String */ +static int hf_tcg_cp_oids_UTF8String_PDU; /* Initialize the subtree pointers */ -static gint ett_tcg_cp_oids_TPMSpecification = -1; -static gint ett_tcg_cp_oids_TCGSpecificationVersion = -1; -static gint ett_tcg_cp_oids_TCGPlatformSpecification = -1; -static gint ett_tcg_cp_oids_TCPASpecVersion = -1; -static gint ett_tcg_cp_oids_TPMSecurityAssertions = -1; -static gint ett_tcg_cp_oids_TBBSecurityAssertions = -1; -static gint ett_tcg_cp_oids_CommonCriteriaMeasures = -1; -static gint ett_tcg_cp_oids_URIReference = -1; -static gint ett_tcg_cp_oids_FIPSLevel = -1; -static gint ett_tcg_cp_oids_HashAlgAndValue = -1; -static gint ett_tcg_cp_oids_HashedSubjectInfoURI = -1; -static gint ett_tcg_cp_oids_TCGRelevantCredentials = -1; -static gint ett_tcg_cp_oids_TCGRelevantManifests = -1; -static gint ett_tcg_cp_oids_VirtualPlatformBackupServiceURI = -1; +static int ett_tcg_cp_oids_TPMSpecification; +static int ett_tcg_cp_oids_TCGSpecificationVersion; +static int ett_tcg_cp_oids_TCGPlatformSpecification; +static int ett_tcg_cp_oids_TCPASpecVersion; +static int ett_tcg_cp_oids_TPMSecurityAssertions; +static int ett_tcg_cp_oids_TBBSecurityAssertions; +static int ett_tcg_cp_oids_CommonCriteriaMeasures; +static int ett_tcg_cp_oids_URIReference; +static int ett_tcg_cp_oids_FIPSLevel; +static int ett_tcg_cp_oids_HashAlgAndValue; +static int ett_tcg_cp_oids_HashedSubjectInfoURI; +static int ett_tcg_cp_oids_TCGRelevantCredentials; +static int ett_tcg_cp_oids_TCGRelevantManifests; +static int ett_tcg_cp_oids_VirtualPlatformBackupServiceURI; static int @@ -615,92 +616,92 @@ dissect_tcg_cp_oids_VirtualPlatformBackupServiceURI(bool implicit_tag _U_, tvbuf static int dissect_TPMSpecification_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_tcg_cp_oids_TPMSpecification(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TPMSpecification_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_TPMSpecification(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TPMSpecification_PDU); return offset; } static int dissect_TCGPlatformSpecification_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_tcg_cp_oids_TCGPlatformSpecification(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TCGPlatformSpecification_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_TCGPlatformSpecification(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TCGPlatformSpecification_PDU); return offset; } static int dissect_TCPASpecVersion_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_tcg_cp_oids_TCPASpecVersion(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TCPASpecVersion_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_TCPASpecVersion(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TCPASpecVersion_PDU); return offset; } static int dissect_TPMSecurityAssertions_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_tcg_cp_oids_TPMSecurityAssertions(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TPMSecurityAssertions_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_TPMSecurityAssertions(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TPMSecurityAssertions_PDU); return offset; } static int dissect_TBBSecurityAssertions_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_tcg_cp_oids_TBBSecurityAssertions(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TBBSecurityAssertions_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_TBBSecurityAssertions(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TBBSecurityAssertions_PDU); return offset; } static int dissect_ProtectionProfile_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_tcg_cp_oids_ProtectionProfile(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_ProtectionProfile_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_ProtectionProfile(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_ProtectionProfile_PDU); return offset; } static int dissect_SecurityTarget_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_tcg_cp_oids_SecurityTarget(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_SecurityTarget_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_SecurityTarget(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_SecurityTarget_PDU); return offset; } static int dissect_TCGRelevantCredentials_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_tcg_cp_oids_TCGRelevantCredentials(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TCGRelevantCredentials_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_TCGRelevantCredentials(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TCGRelevantCredentials_PDU); return offset; } static int dissect_TCGRelevantManifests_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_tcg_cp_oids_TCGRelevantManifests(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TCGRelevantManifests_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_TCGRelevantManifests(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_TCGRelevantManifests_PDU); return offset; } static int dissect_VirtualPlatformAttestationServiceURI_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_tcg_cp_oids_VirtualPlatformAttestationServiceURI(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_VirtualPlatformAttestationServiceURI_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_VirtualPlatformAttestationServiceURI(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_VirtualPlatformAttestationServiceURI_PDU); return offset; } static int dissect_MigrationControllerAttestationServiceURI_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_tcg_cp_oids_MigrationControllerAttestationServiceURI(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_MigrationControllerAttestationServiceURI_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_MigrationControllerAttestationServiceURI(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_MigrationControllerAttestationServiceURI_PDU); return offset; } static int dissect_MigrationControllerRegistrationServiceURI_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_tcg_cp_oids_MigrationControllerRegistrationServiceURI(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_MigrationControllerRegistrationServiceURI_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_MigrationControllerRegistrationServiceURI(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_MigrationControllerRegistrationServiceURI_PDU); return offset; } static int dissect_VirtualPlatformBackupServiceURI_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_tcg_cp_oids_VirtualPlatformBackupServiceURI(FALSE, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_VirtualPlatformBackupServiceURI_PDU); + asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo); + offset = dissect_tcg_cp_oids_VirtualPlatformBackupServiceURI(false, tvb, offset, &asn1_ctx, tree, hf_tcg_cp_oids_VirtualPlatformBackupServiceURI_PDU); return offset; } @@ -938,7 +939,7 @@ void proto_register_tcg_cp_oids(void) { }; /* List of subtrees */ - static gint *ett[] = { + static int *ett[] = { &ett_tcg_cp_oids_TPMSpecification, &ett_tcg_cp_oids_TCGSpecificationVersion, &ett_tcg_cp_oids_TCGPlatformSpecification, @@ -968,8 +969,8 @@ static int dissect_tcg_cp_oids_UTF8String_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) { int offset = 0; asn1_ctx_t actx; - asn1_ctx_init(&actx, ASN1_ENC_BER, TRUE, pinfo); - offset = dissect_ber_restricted_string(FALSE, BER_UNI_TAG_UTF8String, &actx, tree, tvb, offset, hf_tcg_cp_oids_UTF8String_PDU, NULL); + asn1_ctx_init(&actx, ASN1_ENC_BER, true, pinfo); + offset = dissect_ber_restricted_string(false, BER_UNI_TAG_UTF8String, &actx, tree, tvb, offset, hf_tcg_cp_oids_UTF8String_PDU, NULL); return offset; } |