diff options
Diffstat (limited to 'epan/dissectors/packet-wtls.c')
-rw-r--r-- | epan/dissectors/packet-wtls.c | 152 |
1 files changed, 76 insertions, 76 deletions
diff --git a/epan/dissectors/packet-wtls.c b/epan/dissectors/packet-wtls.c index 3907edbdc7..f558621f63 100644 --- a/epan/dissectors/packet-wtls.c +++ b/epan/dissectors/packet-wtls.c @@ -39,86 +39,86 @@ void proto_register_wtls(void); void proto_reg_handoff_wtls(void); /* File scoped variables for the protocol and registered fields */ -static int proto_wtls = HF_EMPTY; +static int proto_wtls = -1; /* These fields used by fixed part of header */ -static int hf_wtls_record = HF_EMPTY; -static int hf_wtls_record_type = HF_EMPTY; -static int hf_wtls_record_length = HF_EMPTY; -static int hf_wtls_record_sequence = HF_EMPTY; -static int hf_wtls_record_ciphered = HF_EMPTY; -static int hf_wtls_hands = HF_EMPTY; -static int hf_wtls_hands_type = HF_EMPTY; -static int hf_wtls_hands_length = HF_EMPTY; -static int hf_wtls_hands_cli_hello = HF_EMPTY; -static int hf_wtls_hands_cli_hello_version = HF_EMPTY; -static int hf_wtls_hands_cli_hello_gmt = HF_EMPTY; -static int hf_wtls_hands_cli_hello_random = HF_EMPTY; -static int hf_wtls_hands_cli_hello_session = HF_EMPTY; -static int hf_wtls_hands_cli_hello_session_str = HF_EMPTY; -static int hf_wtls_hands_cli_hello_cli_key_id = HF_EMPTY; -static int hf_wtls_hands_cli_hello_cli_key_len = HF_EMPTY; -static int hf_wtls_hands_cli_hello_trust_key_id = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_exchange = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_exchange_suite = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_parameter_index = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_parameter_set = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_identifier_type = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_identifier_charset = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_identifier_size = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_identifier = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_identifier_str = HF_EMPTY; -static int hf_wtls_hands_cli_hello_cipher_suite = HF_EMPTY; -static int hf_wtls_hands_cli_hello_cipher_suite_item = HF_EMPTY; -static int hf_wtls_hands_cli_hello_compression_methods = HF_EMPTY; -static int hf_wtls_hands_cli_hello_compression = HF_EMPTY; -static int hf_wtls_hands_cli_hello_sequence_mode = HF_EMPTY; -static int hf_wtls_hands_cli_hello_key_refresh = HF_EMPTY; -static int hf_wtls_hands_serv_hello = HF_EMPTY; -static int hf_wtls_hands_serv_hello_version = HF_EMPTY; -static int hf_wtls_hands_serv_hello_gmt = HF_EMPTY; -static int hf_wtls_hands_serv_hello_random = HF_EMPTY; -static int hf_wtls_hands_serv_hello_session = HF_EMPTY; -static int hf_wtls_hands_serv_hello_session_str = HF_EMPTY; -static int hf_wtls_hands_serv_hello_cli_key_id = HF_EMPTY; -static int hf_wtls_hands_serv_hello_cipher_suite_item = HF_EMPTY; -static int hf_wtls_hands_serv_hello_cipher_bulk = HF_EMPTY; -static int hf_wtls_hands_serv_hello_cipher_mac = HF_EMPTY; -static int hf_wtls_hands_serv_hello_compression = HF_EMPTY; -static int hf_wtls_hands_serv_hello_sequence_mode = HF_EMPTY; -static int hf_wtls_hands_serv_hello_key_refresh = HF_EMPTY; -static int hf_wtls_hands_certificates = HF_EMPTY; -static int hf_wtls_hands_certificate = HF_EMPTY; -static int hf_wtls_hands_certificate_type = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_version = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_signature_type = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_issuer_type = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_issuer_charset = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_issuer_size = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_issuer_name = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_valid_not_before = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_valid_not_after = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_subject_type = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_subject_charset = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_subject_size = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_subject_name = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_public_key_type = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_key_parameter_index = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_key_parameter_set = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_rsa_exponent = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_rsa_modules = HF_EMPTY; -static int hf_wtls_hands_certificate_wtls_signature = HF_EMPTY; -static int hf_wtls_alert = HF_EMPTY; -static int hf_wtls_alert_level = HF_EMPTY; -static int hf_wtls_alert_description = HF_EMPTY; +static int hf_wtls_record = -1; +static int hf_wtls_record_type = -1; +static int hf_wtls_record_length = -1; +static int hf_wtls_record_sequence = -1; +static int hf_wtls_record_ciphered = -1; +static int hf_wtls_hands = -1; +static int hf_wtls_hands_type = -1; +static int hf_wtls_hands_length = -1; +static int hf_wtls_hands_cli_hello = -1; +static int hf_wtls_hands_cli_hello_version = -1; +static int hf_wtls_hands_cli_hello_gmt = -1; +static int hf_wtls_hands_cli_hello_random = -1; +static int hf_wtls_hands_cli_hello_session = -1; +static int hf_wtls_hands_cli_hello_session_str = -1; +static int hf_wtls_hands_cli_hello_cli_key_id = -1; +static int hf_wtls_hands_cli_hello_cli_key_len = -1; +static int hf_wtls_hands_cli_hello_trust_key_id = -1; +static int hf_wtls_hands_cli_hello_key_exchange = -1; +static int hf_wtls_hands_cli_hello_key_exchange_suite = -1; +static int hf_wtls_hands_cli_hello_key_parameter_index = -1; +static int hf_wtls_hands_cli_hello_key_parameter_set = -1; +static int hf_wtls_hands_cli_hello_key_identifier_type = -1; +static int hf_wtls_hands_cli_hello_key_identifier_charset = -1; +static int hf_wtls_hands_cli_hello_key_identifier_size = -1; +static int hf_wtls_hands_cli_hello_key_identifier = -1; +static int hf_wtls_hands_cli_hello_key_identifier_str = -1; +static int hf_wtls_hands_cli_hello_cipher_suite = -1; +static int hf_wtls_hands_cli_hello_cipher_suite_item = -1; +static int hf_wtls_hands_cli_hello_compression_methods = -1; +static int hf_wtls_hands_cli_hello_compression = -1; +static int hf_wtls_hands_cli_hello_sequence_mode = -1; +static int hf_wtls_hands_cli_hello_key_refresh = -1; +static int hf_wtls_hands_serv_hello = -1; +static int hf_wtls_hands_serv_hello_version = -1; +static int hf_wtls_hands_serv_hello_gmt = -1; +static int hf_wtls_hands_serv_hello_random = -1; +static int hf_wtls_hands_serv_hello_session = -1; +static int hf_wtls_hands_serv_hello_session_str = -1; +static int hf_wtls_hands_serv_hello_cli_key_id = -1; +static int hf_wtls_hands_serv_hello_cipher_suite_item = -1; +static int hf_wtls_hands_serv_hello_cipher_bulk = -1; +static int hf_wtls_hands_serv_hello_cipher_mac = -1; +static int hf_wtls_hands_serv_hello_compression = -1; +static int hf_wtls_hands_serv_hello_sequence_mode = -1; +static int hf_wtls_hands_serv_hello_key_refresh = -1; +static int hf_wtls_hands_certificates = -1; +static int hf_wtls_hands_certificate = -1; +static int hf_wtls_hands_certificate_type = -1; +static int hf_wtls_hands_certificate_wtls_version = -1; +static int hf_wtls_hands_certificate_wtls_signature_type = -1; +static int hf_wtls_hands_certificate_wtls_issuer_type = -1; +static int hf_wtls_hands_certificate_wtls_issuer_charset = -1; +static int hf_wtls_hands_certificate_wtls_issuer_size = -1; +static int hf_wtls_hands_certificate_wtls_issuer_name = -1; +static int hf_wtls_hands_certificate_wtls_valid_not_before = -1; +static int hf_wtls_hands_certificate_wtls_valid_not_after = -1; +static int hf_wtls_hands_certificate_wtls_subject_type = -1; +static int hf_wtls_hands_certificate_wtls_subject_charset = -1; +static int hf_wtls_hands_certificate_wtls_subject_size = -1; +static int hf_wtls_hands_certificate_wtls_subject_name = -1; +static int hf_wtls_hands_certificate_wtls_public_key_type = -1; +static int hf_wtls_hands_certificate_wtls_key_parameter_index = -1; +static int hf_wtls_hands_certificate_wtls_key_parameter_set = -1; +static int hf_wtls_hands_certificate_wtls_rsa_exponent = -1; +static int hf_wtls_hands_certificate_wtls_rsa_modules = -1; +static int hf_wtls_hands_certificate_wtls_signature = -1; +static int hf_wtls_alert = -1; +static int hf_wtls_alert_level = -1; +static int hf_wtls_alert_description = -1; /* Initialize the subtree pointers */ -static gint ett_wtls = ETT_EMPTY; -static gint ett_wtls_rec = ETT_EMPTY; -static gint ett_wtls_msg_type = ETT_EMPTY; -static gint ett_wtls_msg_type_item = ETT_EMPTY; -static gint ett_wtls_msg_type_item_sub = ETT_EMPTY; -static gint ett_wtls_msg_type_item_sub_sub = ETT_EMPTY; +static gint ett_wtls = -1; +static gint ett_wtls_rec = -1; +static gint ett_wtls_msg_type = -1; +static gint ett_wtls_msg_type_item = -1; +static gint ett_wtls_msg_type_item_sub = -1; +static gint ett_wtls_msg_type_item_sub_sub = -1; static const value_string wtls_vals_record_type[] = { { 1, "change_cipher_data" }, |