12#ifndef __PACKET_TLS_UTILS_H__
13#define __PACKET_TLS_UTILS_H__
27#include <gnutls/x509.h>
28#include <gnutls/pkcs12.h>
32#define SSL_CIPHER_CTX gcry_cipher_hd_t
33#define SSL_DECRYPT_DEBUG
38 SSL_ID_CHG_CIPHER_SPEC = 0x14,
40 SSL_ID_HANDSHAKE = 0x16,
41 SSL_ID_APP_DATA = 0x17,
42 SSL_ID_HEARTBEAT = 0x18,
43 SSL_ID_TLS12_CID = 0x19,
44 SSL_ID_DTLS13_ACK = 0x1A,
48 SSL_HND_HELLO_REQUEST = 0,
49 SSL_HND_CLIENT_HELLO = 1,
50 SSL_HND_SERVER_HELLO = 2,
51 SSL_HND_HELLO_VERIFY_REQUEST = 3,
52 SSL_HND_NEWSESSION_TICKET = 4,
53 SSL_HND_END_OF_EARLY_DATA = 5,
54 SSL_HND_HELLO_RETRY_REQUEST = 6,
55 SSL_HND_ENCRYPTED_EXTENSIONS = 8,
56 SSL_HND_CERTIFICATE = 11,
57 SSL_HND_SERVER_KEY_EXCHG = 12,
58 SSL_HND_CERT_REQUEST = 13,
59 SSL_HND_SVR_HELLO_DONE = 14,
60 SSL_HND_CERT_VERIFY = 15,
61 SSL_HND_CLIENT_KEY_EXCHG = 16,
62 SSL_HND_FINISHED = 20,
63 SSL_HND_CERT_URL = 21,
64 SSL_HND_CERT_STATUS = 22,
65 SSL_HND_SUPPLEMENTAL_DATA = 23,
66 SSL_HND_KEY_UPDATE = 24,
67 SSL_HND_COMPRESSED_CERTIFICATE = 25,
70 SSL_HND_ENCRYPTED_EXTS = 67,
71 SSL_HND_MESSAGE_HASH = 254
74#define SSL2_HND_ERROR 0x00
75#define SSL2_HND_CLIENT_HELLO 0x01
76#define SSL2_HND_CLIENT_MASTER_KEY 0x02
77#define SSL2_HND_CLIENT_FINISHED 0x03
78#define SSL2_HND_SERVER_HELLO 0x04
79#define SSL2_HND_SERVER_VERIFY 0x05
80#define SSL2_HND_SERVER_FINISHED 0x06
81#define SSL2_HND_REQUEST_CERTIFICATE 0x07
82#define SSL2_HND_CLIENT_CERTIFICATE 0x08
84#define SSL_HND_HELLO_EXT_SERVER_NAME 0
85#define SSL_HND_HELLO_EXT_MAX_FRAGMENT_LENGTH 1
86#define SSL_HND_HELLO_EXT_CLIENT_CERTIFICATE_URL 2
87#define SSL_HND_HELLO_EXT_TRUSTED_CA_KEYS 3
88#define SSL_HND_HELLO_EXT_TRUNCATED_HMAC 4
89#define SSL_HND_HELLO_EXT_STATUS_REQUEST 5
90#define SSL_HND_HELLO_EXT_USER_MAPPING 6
91#define SSL_HND_HELLO_EXT_CLIENT_AUTHZ 7
92#define SSL_HND_HELLO_EXT_SERVER_AUTHZ 8
93#define SSL_HND_HELLO_EXT_CERT_TYPE 9
94#define SSL_HND_HELLO_EXT_SUPPORTED_GROUPS 10
95#define SSL_HND_HELLO_EXT_EC_POINT_FORMATS 11
96#define SSL_HND_HELLO_EXT_SRP 12
97#define SSL_HND_HELLO_EXT_SIGNATURE_ALGORITHMS 13
98#define SSL_HND_HELLO_EXT_USE_SRTP 14
99#define SSL_HND_HELLO_EXT_HEARTBEAT 15
100#define SSL_HND_HELLO_EXT_ALPN 16
101#define SSL_HND_HELLO_EXT_STATUS_REQUEST_V2 17
102#define SSL_HND_HELLO_EXT_SIGNED_CERTIFICATE_TIMESTAMP 18
103#define SSL_HND_HELLO_EXT_CLIENT_CERT_TYPE 19
104#define SSL_HND_HELLO_EXT_SERVER_CERT_TYPE 20
105#define SSL_HND_HELLO_EXT_PADDING 21
106#define SSL_HND_HELLO_EXT_ENCRYPT_THEN_MAC 22
107#define SSL_HND_HELLO_EXT_EXTENDED_MASTER_SECRET 23
108#define SSL_HND_HELLO_EXT_TOKEN_BINDING 24
109#define SSL_HND_HELLO_EXT_CACHED_INFO 25
110#define SSL_HND_HELLO_EXT_COMPRESS_CERTIFICATE 27
111#define SSL_HND_HELLO_EXT_RECORD_SIZE_LIMIT 28
113#define SSL_HND_HELLO_EXT_DELEGATED_CREDENTIALS 34
114#define SSL_HND_HELLO_EXT_SESSION_TICKET_TLS 35
116#define SSL_HND_HELLO_EXT_KEY_SHARE_OLD 40
117#define SSL_HND_HELLO_EXT_PRE_SHARED_KEY 41
118#define SSL_HND_HELLO_EXT_EARLY_DATA 42
119#define SSL_HND_HELLO_EXT_SUPPORTED_VERSIONS 43
120#define SSL_HND_HELLO_EXT_COOKIE 44
121#define SSL_HND_HELLO_EXT_PSK_KEY_EXCHANGE_MODES 45
122#define SSL_HND_HELLO_EXT_TICKET_EARLY_DATA_INFO 46
123#define SSL_HND_HELLO_EXT_CERTIFICATE_AUTHORITIES 47
124#define SSL_HND_HELLO_EXT_OID_FILTERS 48
125#define SSL_HND_HELLO_EXT_POST_HANDSHAKE_AUTH 49
126#define SSL_HND_HELLO_EXT_SIGNATURE_ALGORITHMS_CERT 50
127#define SSL_HND_HELLO_EXT_KEY_SHARE 51
128#define SSL_HND_HELLO_EXT_TRANSPARENCY_INFO 52
129#define SSL_HND_HELLO_EXT_CONNECTION_ID_DEPRECATED 53
130#define SSL_HND_HELLO_EXT_CONNECTION_ID 54
131#define SSL_HND_HELLO_EXT_EXTERNAL_ID_HASH 55
132#define SSL_HND_HELLO_EXT_EXTERNAL_SESSION_ID 56
133#define SSL_HND_HELLO_EXT_QUIC_TRANSPORT_PARAMETERS_V1 57
134#define SSL_HND_HELLO_EXT_TICKET_REQUEST 58
135#define SSL_HND_HELLO_EXT_DNSSEC_CHAIN 59
136#define SSL_HND_HELLO_EXT_GREASE_0A0A 2570
137#define SSL_HND_HELLO_EXT_GREASE_1A1A 6682
138#define SSL_HND_HELLO_EXT_GREASE_2A2A 10794
139#define SSL_HND_HELLO_EXT_NPN 13172
140#define SSL_HND_HELLO_EXT_GREASE_3A3A 14906
141#define SSL_HND_HELLO_EXT_ALPS_OLD 17513
142#define SSL_HND_HELLO_EXT_ALPS 17613
143#define SSL_HND_HELLO_EXT_GREASE_4A4A 19018
144#define SSL_HND_HELLO_EXT_GREASE_5A5A 23130
145#define SSL_HND_HELLO_EXT_GREASE_6A6A 27242
146#define SSL_HND_HELLO_EXT_CHANNEL_ID_OLD 30031
147#define SSL_HND_HELLO_EXT_CHANNEL_ID 30032
148#define SSL_HND_HELLO_EXT_GREASE_7A7A 31354
149#define SSL_HND_HELLO_EXT_GREASE_8A8A 35466
150#define SSL_HND_HELLO_EXT_GREASE_9A9A 39578
151#define SSL_HND_HELLO_EXT_GREASE_AAAA 43690
152#define SSL_HND_HELLO_EXT_GREASE_BABA 47802
153#define SSL_HND_HELLO_EXT_GREASE_CACA 51914
154#define SSL_HND_HELLO_EXT_GREASE_DADA 56026
155#define SSL_HND_HELLO_EXT_GREASE_EAEA 60138
156#define SSL_HND_HELLO_EXT_GREASE_FAFA 64250
157#define SSL_HND_HELLO_EXT_ECH_OUTER_EXTENSIONS 64768
158#define SSL_HND_HELLO_EXT_ENCRYPTED_CLIENT_HELLO 65037
159#define SSL_HND_HELLO_EXT_RENEGOTIATION_INFO 65281
160#define SSL_HND_HELLO_EXT_QUIC_TRANSPORT_PARAMETERS 65445
161#define SSL_HND_HELLO_EXT_ENCRYPTED_SERVER_NAME 65486
163#define SSL_HND_CERT_URL_TYPE_INDIVIDUAL_CERT 1
164#define SSL_HND_CERT_URL_TYPE_PKIPATH 2
165#define SSL_HND_CERT_STATUS_TYPE_OCSP 1
166#define SSL_HND_CERT_STATUS_TYPE_OCSP_MULTI 2
167#define SSL_HND_CERT_TYPE_RAW_PUBLIC_KEY 2
170#define SSL_HND_QUIC_TP_ORIGINAL_DESTINATION_CONNECTION_ID 0x00
171#define SSL_HND_QUIC_TP_MAX_IDLE_TIMEOUT 0x01
172#define SSL_HND_QUIC_TP_STATELESS_RESET_TOKEN 0x02
173#define SSL_HND_QUIC_TP_MAX_UDP_PAYLOAD_SIZE 0x03
174#define SSL_HND_QUIC_TP_INITIAL_MAX_DATA 0x04
175#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAM_DATA_BIDI_LOCAL 0x05
176#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAM_DATA_BIDI_REMOTE 0x06
177#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAM_DATA_UNI 0x07
178#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAMS_BIDI 0x08
179#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAMS_UNI 0x09
180#define SSL_HND_QUIC_TP_ACK_DELAY_EXPONENT 0x0a
181#define SSL_HND_QUIC_TP_MAX_ACK_DELAY 0x0b
182#define SSL_HND_QUIC_TP_DISABLE_ACTIVE_MIGRATION 0x0c
183#define SSL_HND_QUIC_TP_PREFERRED_ADDRESS 0x0d
184#define SSL_HND_QUIC_TP_ACTIVE_CONNECTION_ID_LIMIT 0x0e
185#define SSL_HND_QUIC_TP_INITIAL_SOURCE_CONNECTION_ID 0x0f
186#define SSL_HND_QUIC_TP_RETRY_SOURCE_CONNECTION_ID 0x10
187#define SSL_HND_QUIC_TP_VERSION_INFORMATION 0x11
188#define SSL_HND_QUIC_TP_MAX_DATAGRAM_FRAME_SIZE 0x20
189#define SSL_HND_QUIC_TP_CIBIR_ENCODING 0x1000
190#define SSL_HND_QUIC_TP_LOSS_BITS 0x1057
191#define SSL_HND_QUIC_TP_GREASE_QUIC_BIT 0x2ab2
192#define SSL_HND_QUIC_TP_ENABLE_TIME_STAMP 0x7157
193#define SSL_HND_QUIC_TP_ENABLE_TIME_STAMP_V2 0x7158
194#define SSL_HND_QUIC_TP_MIN_ACK_DELAY_OLD 0xde1a
196#define SSL_HND_QUIC_TP_GOOGLE_USER_AGENT 0x3129
197#define SSL_HND_QUIC_TP_GOOGLE_KEY_UPDATE_NOT_YET_SUPPORTED 0x312B
198#define SSL_HND_QUIC_TP_GOOGLE_QUIC_VERSION 0x4752
199#define SSL_HND_QUIC_TP_GOOGLE_INITIAL_RTT 0x3127
200#define SSL_HND_QUIC_TP_GOOGLE_SUPPORT_HANDSHAKE_DONE 0x312A
201#define SSL_HND_QUIC_TP_GOOGLE_QUIC_PARAMS 0x4751
202#define SSL_HND_QUIC_TP_GOOGLE_CONNECTION_OPTIONS 0x3128
204#define SSL_HND_QUIC_TP_FACEBOOK_PARTIAL_RELIABILITY 0xFF00
205#define SSL_HND_QUIC_TP_VERSION_INFORMATION_DRAFT 0xff73db
206#define SSL_HND_QUIC_TP_MIN_ACK_DELAY_DRAFT_V1 0xFF03DE1A
207#define SSL_HND_QUIC_TP_MIN_ACK_DELAY_DRAFT05 0xff04de1a
208#define SSL_HND_QUIC_TP_MIN_ACK_DELAY 0xff04de1b
209#define SSL_HND_QUIC_TP_ENABLE_MULTIPATH_DRAFT04 0x0f739bbc1b666d04
210#define SSL_HND_QUIC_TP_ENABLE_MULTIPATH_DRAFT05 0x0f739bbc1b666d05
211#define SSL_HND_QUIC_TP_ENABLE_MULTIPATH 0x0f739bbc1b666d06
212#define SSL_HND_QUIC_TP_INITIAL_MAX_PATHS 0x0f739bbc1b666d07
213#define SSL_HND_QUIC_TP_INITIAL_MAX_PATH_ID_DRAFT09 0x0f739bbc1b666d09
214#define SSL_HND_QUIC_TP_INITIAL_MAX_PATH_ID_DRAFT11 0x0f739bbc1b666d11
215#define SSL_HND_QUIC_TP_INITIAL_MAX_PATH_ID_DRAFT12 0x0f739bbc1b666d0c
216#define SSL_HND_QUIC_TP_INITIAL_MAX_PATH_ID 0x0f739bbc1b666d0d
234extern const value_string ssl_31_key_exchange_algorithm[];
236extern const value_string ssl_31_client_certificate_type[];
237extern const value_string ssl_31_public_value_encoding[];
247extern const value_string ssl_extension_ec_point_formats[];
249extern const value_string tls_hello_ext_server_name_type_vs[];
250extern const value_string tls_hello_ext_max_fragment_length[];
252extern const value_string tls_hello_ext_trusted_ca_key_type[];
254extern const value_string compress_certificate_algorithm_vals[];
257extern const val64_string quic_enable_time_stamp_v2_vals[];
259extern const value_string tls_hello_ext_ech_clienthello_types[];
263extern const value_string token_binding_key_parameter_vals[];
271#define SSL_WRITE_KEY 1
273#define SSL_VER_UNKNOWN 0
274#define SSLV2_VERSION 0x0002
276#define SSLV3_VERSION 0x300
277#define TLSV1_VERSION 0x301
278#define TLCPV1_VERSION 0x101
279#define TLSV1DOT1_VERSION 0x302
280#define TLSV1DOT2_VERSION 0x303
281#define TLSV1DOT3_VERSION 0x304
282#define DTLSV1DOT0_VERSION 0xfeff
283#define DTLSV1DOT0_OPENSSL_VERSION 0x100
284#define DTLSV1DOT2_VERSION 0xfefd
285#define DTLSV1DOT3_VERSION 0xfefc
288static inline uint8_t extract_tls13_draft_version(uint32_t version) {
289 if ((version & 0xff00) == 0x7f00) {
290 return (uint8_t) version;
296#define SSL_CLIENT_RANDOM (1<<0)
297#define SSL_SERVER_RANDOM (1<<1)
298#define SSL_CIPHER (1<<2)
299#define SSL_HAVE_SESSION_KEY (1<<3)
300#define SSL_VERSION (1<<4)
301#define SSL_MASTER_SECRET (1<<5)
302#define SSL_PRE_MASTER_SECRET (1<<6)
303#define SSL_CLIENT_EXTENDED_MASTER_SECRET (1<<7)
304#define SSL_SERVER_EXTENDED_MASTER_SECRET (1<<8)
305#define SSL_NEW_SESSION_TICKET (1<<10)
306#define SSL_ENCRYPT_THEN_MAC (1<<11)
307#define SSL_SEEN_0RTT_APPDATA (1<<12)
308#define SSL_QUIC_RECORD_LAYER (1<<13)
310#define SSL_EXTENDED_MASTER_SECRET_MASK (SSL_CLIENT_EXTENDED_MASTER_SECRET|SSL_SERVER_EXTENDED_MASTER_SECRET)
324#define IMPLICIT_NONCE_LEN 4
325#define EXPLICIT_NONCE_LEN 8
326#define TLS13_AEAD_NONCE_LENGTH 12
331 TLS_SECRET_HANDSHAKE,
335#define SSL_DEBUG_USE_STDERR "-"
337#define SSLV2_MAX_SESSION_ID_LENGTH_IN_BYTES 16
340#define TLS_MAX_RECORD_LENGTH 0x4000
347 ssl_cipher_mode_t mode;
361 unsigned char _mac_key_or_write_iv[48];
364 SSL_CIPHER_CTX sn_evp;
367 uint64_t dtls13_epoch;
375#define KEX_DHE_DSS 0x10
376#define KEX_DHE_PSK 0x11
377#define KEX_DHE_RSA 0x12
378#define KEX_DH_ANON 0x13
379#define KEX_DH_DSS 0x14
380#define KEX_DH_RSA 0x15
381#define KEX_ECDHE_ECDSA 0x16
382#define KEX_ECDHE_PSK 0x17
383#define KEX_ECDHE_RSA 0x18
384#define KEX_ECDH_ANON 0x19
385#define KEX_ECDH_ECDSA 0x1a
386#define KEX_ECDH_RSA 0x1b
390#define KEX_RSA_PSK 0x1f
391#define KEX_SRP_SHA 0x20
392#define KEX_SRP_SHA_DSS 0x21
393#define KEX_SRP_SHA_RSA 0x22
394#define KEX_IS_DH(n) ((n) >= KEX_DHE_DSS && (n) <= KEX_ECDH_RSA)
395#define KEX_TLS13 0x23
396#define KEX_ECJPAKE 0x24
398#define KEX_ECDHE_SM2 0x25
399#define KEX_ECC_SM2 0x26
400#define KEX_IBSDH_SM9 0x27
401#define KEX_IBC_SM9 0x28
405#define ENC_START 0x30
412#define ENC_AES256 0x36
413#define ENC_CAMELLIA128 0x37
414#define ENC_CAMELLIA256 0x38
416#define ENC_CHACHA20 0x3A
424#define DIG_SHA256 0x42
425#define DIG_SHA384 0x43
474 unsigned char tls13_draft_version;
475 unsigned char _client_random[32];
476 int8_t client_cert_type;
477 int8_t server_cert_type;
478 uint32_t client_ccs_frame;
479 uint32_t server_ccs_frame;
480 uint32_t first_ch_ech_frame;
483 bool hrr_ech_declined;
484 unsigned char ech_confirmation[8];
485 unsigned char hrr_ech_confirmation[8];
486 unsigned char first_ech_auth_tag[16];
496 const char *alpn_name;
498 const char *client_alpn_name;
499 uint32_t last_nontls_frame;
500 bool is_session_resumed;
503 uint32_t client_hs_reassembly_id;
504 uint32_t server_hs_reassembly_id;
515 uint8_t client_cid_len;
516 bool client_cid_len_present;
517 uint8_t server_cid_len;
518 bool server_cid_len_present;
520 uint64_t dtls13_current_epoch[2];
521 uint64_t dtls13_next_seq_num[2];
525#define SSL_MASTER_SECRET_LENGTH 48
531 unsigned char _master_secret[SSL_MASTER_SECRET_LENGTH];
532 unsigned char _session_id[256];
533 unsigned char _client_random[32];
534 unsigned char _server_random[32];
543 unsigned char _server_data_for_iv[24];
545 unsigned char _client_data_for_iv[24];
554#if defined(HAVE_LIBGNUTLS)
555 struct cert_key_id *cert_key_id;
568 uint64_t sequence_number;
582 const char *keylog_filename;
590 GHashTable *pre_master;
595 GHashTable *tls13_client_early;
596 GHashTable *tls13_client_handshake;
597 GHashTable *tls13_server_handshake;
598 GHashTable *tls13_client_appdata;
599 GHashTable *tls13_server_appdata;
600 GHashTable *tls13_early_exporter;
601 GHashTable *tls13_exporter;
602 GHashTable *ech_secret;
603 GHashTable *ech_config;
611 GHashTable *used_crandom;
614int ssl_get_keyex_alg(
int cipher);
616void quic_transport_parameter_id_base_custom(
char *result, uint64_t parameter_id);
618bool ssldecrypt_uat_fld_ip_chk_cb(
void*,
const char*,
unsigned,
const void*,
const void*,
char** err);
619bool ssldecrypt_uat_fld_port_chk_cb(
void*,
const char*,
unsigned,
const void*,
const void*,
char** err);
620bool ssldecrypt_uat_fld_fileopen_chk_cb(
void*,
const char*,
unsigned,
const void*,
const void*,
char** err);
621bool ssldecrypt_uat_fld_password_chk_cb(
void*,
const char*,
unsigned,
const void*,
const void*,
char** err);
622char* ssl_association_info(
const char* dissector_table_name,
const char* table_protocol);
625void ssl_init_cid_list(
void);
628void ssl_cleanup_cid_list(
void);
653ssl_set_server(
SslSession *session,
address *addr, port_type ptype, uint32_t port);
675WS_DLL_PUBLIC uint32_t
687WS_DLL_PUBLIC uint32_t
692ssl_find_appdata_dissector(
const char *name);
700ssl_data_set(
StringInfo* buf,
const unsigned char* src,
unsigned len);
709ssl_cipher_setiv(SSL_CIPHER_CTX *cipher,
unsigned char* iv,
int iv_len);
715ssl_find_cipher(
int num);
731 uint32_t length,
tvbuff_t *tvb, uint32_t offset,
734 GHashTable *key_hash,
764 bool ignore_mac_failed,
765 const unsigned char *in, uint16_t inl,
const unsigned char *cid, uint8_t cidl,
783tls_add_packet_info(
int proto,
packet_info *pinfo, uint8_t curr_layer_num_ssl);
787ssl_add_record_info(
int proto,
packet_info *pinfo,
const unsigned char *data,
int data_len,
int record_id,
SslFlow *flow, ContentType type, uint8_t curr_layer_num_ssl, uint64_t record_seq);
807tls_get_master_key_map(
bool load_secrets);
815ssl_load_keyfile(
const char *ssl_keylog_filename, FILE **keylog_file,
839 bool is_from_server, TLSRecordType type);
843 bool is_from_server, TLSRecordType type);
849ssl_is_valid_content_type(uint8_t type);
852ssl_is_valid_handshake_type(uint8_t hs_type,
bool is_dtls);
855tls_scan_server_hello(
tvbuff_t *tvb, uint32_t offset, uint32_t offset_end,
856 uint16_t *server_version,
bool *is_hrr);
860 uint8_t content_type, uint8_t handshake_type,
861 bool is_dtls, uint16_t version);
869 int change_cipher_spec;
872 int hs_ext_alpn_list;
874 int hs_ext_alpn_str_len;
875 int hs_ext_cert_url_item;
876 int hs_ext_cert_url_padding;
877 int hs_ext_cert_url_sha1;
878 int hs_ext_cert_url_type;
879 int hs_ext_cert_url_url;
880 int hs_ext_cert_url_url_hash_list_len;
881 int hs_ext_cert_url_url_len;
882 int hs_ext_cert_status_type;
883 int hs_ext_cert_status_request_len;
884 int hs_ext_cert_status_responder_id_list_len;
885 int hs_ext_cert_status_request_extensions_len;
886 int hs_ext_cert_status_request_list_len;
887 int hs_ocsp_response_list_len;
888 int hs_ocsp_response_len;
889 int hs_ext_cert_type;
890 int hs_ext_cert_types;
891 int hs_ext_cert_types_len;
893 int hs_ext_ec_point_format;
894 int hs_ext_ec_point_formats;
895 int hs_ext_ec_point_formats_len;
897 int hs_ext_srp_username;
898 int hs_ext_supported_group;
899 int hs_ext_supported_groups;
900 int hs_ext_supported_groups_len;
901 int hs_ext_ech_outer_ext;
902 int hs_ext_ech_outer_ext_len;
904 int hs_ech_confirm_compute;
905 int hs_ext_heartbeat_mode;
908 int hs_ext_npn_str_len;
909 int hs_ext_reneg_info_len;
910 int hs_ext_reneg_info;
911 int hs_ext_key_share_client_length;
912 int hs_ext_key_share_group;
913 int hs_ext_key_share_key_exchange_length;
914 int hs_ext_key_share_key_exchange;
915 int hs_ext_key_share_selected_group;
916 int hs_ext_psk_identities_length;
917 int hs_ext_psk_identity_identity_length;
918 int hs_ext_psk_identity_identity;
919 int hs_ext_psk_identity_obfuscated_ticket_age;
920 int hs_ext_psk_binders_length;
921 int hs_ext_psk_binders;
922 int hs_ext_psk_binder;
923 int hs_ext_psk_binder_binder_length;
924 int hs_ext_psk_binder_binder;
925 int hs_ext_psk_identity_selected;
926 int hs_ext_session_ticket;
927 int hs_ext_supported_versions_len;
928 int hs_ext_supported_version;
929 int hs_ext_cookie_len;
931 int hs_ext_server_name;
932 int hs_ext_server_name_len;
933 int hs_ext_server_name_list_len;
934 int hs_ext_server_name_type;
935 int hs_ext_max_fragment_length;
936 int hs_ext_padding_data;
939 int hs_ext_connection_id_length;
940 int hs_ext_connection_id;
941 int hs_ext_trusted_ca_keys_len;
942 int hs_ext_trusted_ca_keys_list;
943 int hs_ext_trusted_ca_key;
944 int hs_ext_trusted_ca_key_type;
945 int hs_ext_trusted_ca_key_hash;
946 int hs_ext_trusted_ca_key_dname_len;
947 int hs_ext_trusted_ca_key_dname;
949 int hs_sig_hash_alg_len;
950 int hs_sig_hash_algs;
951 int hs_sig_hash_hash;
953 int hs_client_keyex_epms_len;
954 int hs_client_keyex_epms;
955 int hs_server_keyex_modulus_len;
956 int hs_server_keyex_exponent_len;
957 int hs_server_keyex_sig_len;
958 int hs_server_keyex_p_len;
959 int hs_server_keyex_g_len;
960 int hs_server_keyex_ys_len;
961 int hs_client_keyex_yc_len;
962 int hs_client_keyex_point_len;
963 int hs_server_keyex_point_len;
964 int hs_server_keyex_p;
965 int hs_server_keyex_g;
966 int hs_server_keyex_curve_type;
967 int hs_server_keyex_named_curve;
968 int hs_server_keyex_ys;
969 int hs_client_keyex_yc;
970 int hs_server_keyex_point;
971 int hs_client_keyex_point;
972 int hs_server_keyex_xs_len;
973 int hs_client_keyex_xc_len;
974 int hs_server_keyex_xs;
975 int hs_client_keyex_xc;
976 int hs_server_keyex_vs_len;
977 int hs_client_keyex_vc_len;
978 int hs_server_keyex_vs;
979 int hs_client_keyex_vc;
980 int hs_server_keyex_rs_len;
981 int hs_client_keyex_rc_len;
982 int hs_server_keyex_rs;
983 int hs_client_keyex_rc;
984 int hs_server_keyex_modulus;
985 int hs_server_keyex_exponent;
986 int hs_server_keyex_sig;
987 int hs_server_keyex_hint_len;
988 int hs_server_keyex_hint;
989 int hs_client_keyex_identity_len;
990 int hs_client_keyex_identity;
991 int hs_certificates_len;
993 int hs_certificate_len;
995 int hs_cert_types_count;
1000 int hs_dnames_truncated;
1005 int hs_random_bytes;
1007 int hs_session_id_len;
1008 int hs_client_version;
1009 int hs_server_version;
1010 int hs_cipher_suites_len;
1011 int hs_cipher_suites;
1012 int hs_cipher_suite;
1013 int hs_comp_methods_len;
1014 int hs_comp_methods;
1016 int hs_session_ticket_lifetime_hint;
1017 int hs_session_ticket_age_add;
1018 int hs_session_ticket_nonce_len;
1019 int hs_session_ticket_nonce;
1020 int hs_session_ticket_len;
1021 int hs_session_ticket;
1023 int hs_client_cert_vrfy_sig_len;
1024 int hs_client_cert_vrfy_sig;
1033 int hs_ext_psk_ke_modes_length;
1034 int hs_ext_psk_ke_mode;
1035 int hs_certificate_request_context_length;
1036 int hs_certificate_request_context;
1037 int hs_key_update_request_update;
1038 int sct_scts_length;
1040 int sct_sct_version;
1042 int sct_sct_timestamp;
1043 int sct_sct_extensions_length;
1044 int sct_sct_extensions;
1045 int sct_sct_signature;
1046 int sct_sct_signature_length;
1047 int hs_ext_max_early_data_size;
1048 int hs_ext_oid_filters_length;
1049 int hs_ext_oid_filters_oid_length;
1050 int hs_ext_oid_filters_oid;
1051 int hs_ext_oid_filters_values_length;
1052 int hs_cred_valid_time;
1054 int hs_cred_pubkey_len;
1055 int hs_cred_signature;
1056 int hs_cred_signature_len;
1059 int hs_ext_compress_certificate_algorithms_length;
1060 int hs_ext_compress_certificate_algorithm;
1061 int hs_ext_compress_certificate_uncompressed_length;
1062 int hs_ext_compress_certificate_compressed_certificate_message_length;
1063 int hs_ext_compress_certificate_compressed_certificate_message;
1066 int hs_ext_token_binding_version_major;
1067 int hs_ext_token_binding_version_minor;
1068 int hs_ext_token_binding_key_parameters;
1069 int hs_ext_token_binding_key_parameters_length;
1070 int hs_ext_token_binding_key_parameter;
1072 int hs_ext_record_size_limit;
1075 int hs_ext_quictp_len;
1076 int hs_ext_quictp_parameter;
1077 int hs_ext_quictp_parameter_type;
1078 int hs_ext_quictp_parameter_len;
1079 int hs_ext_quictp_parameter_len_old;
1080 int hs_ext_quictp_parameter_value;
1081 int hs_ext_quictp_parameter_original_destination_connection_id;
1082 int hs_ext_quictp_parameter_max_idle_timeout;
1083 int hs_ext_quictp_parameter_stateless_reset_token;
1084 int hs_ext_quictp_parameter_initial_max_data;
1085 int hs_ext_quictp_parameter_initial_max_stream_data_bidi_local;
1086 int hs_ext_quictp_parameter_initial_max_stream_data_bidi_remote;
1087 int hs_ext_quictp_parameter_initial_max_stream_data_uni;
1088 int hs_ext_quictp_parameter_initial_max_streams_bidi;
1089 int hs_ext_quictp_parameter_initial_max_streams_uni;
1090 int hs_ext_quictp_parameter_ack_delay_exponent;
1091 int hs_ext_quictp_parameter_max_ack_delay;
1092 int hs_ext_quictp_parameter_max_udp_payload_size;
1093 int hs_ext_quictp_parameter_pa_ipv4address;
1094 int hs_ext_quictp_parameter_pa_ipv6address;
1095 int hs_ext_quictp_parameter_pa_ipv4port;
1096 int hs_ext_quictp_parameter_pa_ipv6port;
1097 int hs_ext_quictp_parameter_pa_connectionid_length;
1098 int hs_ext_quictp_parameter_pa_connectionid;
1099 int hs_ext_quictp_parameter_pa_statelessresettoken;
1100 int hs_ext_quictp_parameter_active_connection_id_limit;
1101 int hs_ext_quictp_parameter_initial_source_connection_id;
1102 int hs_ext_quictp_parameter_retry_source_connection_id;
1103 int hs_ext_quictp_parameter_max_datagram_frame_size;
1104 int hs_ext_quictp_parameter_cibir_encoding_length;
1105 int hs_ext_quictp_parameter_cibir_encoding_offset;
1106 int hs_ext_quictp_parameter_loss_bits;
1107 int hs_ext_quictp_parameter_enable_time_stamp_v2;
1108 int hs_ext_quictp_parameter_min_ack_delay;
1109 int hs_ext_quictp_parameter_google_user_agent_id;
1110 int hs_ext_quictp_parameter_google_key_update_not_yet_supported;
1111 int hs_ext_quictp_parameter_google_quic_version;
1112 int hs_ext_quictp_parameter_google_initial_rtt;
1113 int hs_ext_quictp_parameter_google_support_handshake_done;
1114 int hs_ext_quictp_parameter_google_quic_params;
1115 int hs_ext_quictp_parameter_google_quic_params_unknown_field;
1116 int hs_ext_quictp_parameter_google_connection_options;
1117 int hs_ext_quictp_parameter_google_supported_versions_length;
1118 int hs_ext_quictp_parameter_google_supported_version;
1119 int hs_ext_quictp_parameter_facebook_partial_reliability;
1120 int hs_ext_quictp_parameter_chosen_version;
1121 int hs_ext_quictp_parameter_other_version;
1122 int hs_ext_quictp_parameter_enable_multipath;
1123 int hs_ext_quictp_parameter_initial_max_paths;
1124 int hs_ext_quictp_parameter_initial_max_path_id;
1127 int esni_record_digest_length;
1128 int esni_record_digest;
1129 int esni_encrypted_sni_length;
1130 int esni_encrypted_sni;
1133 int ech_echconfiglist_length;
1134 int ech_echconfiglist;
1136 int ech_echconfig_version;
1137 int ech_echconfig_length;
1138 int ech_echconfigcontents_maximum_name_length;
1139 int ech_echconfigcontents_public_name_length;
1140 int ech_echconfigcontents_public_name;
1141 int ech_echconfigcontents_extensions_length;
1142 int ech_echconfigcontents_extensions;
1143 int ech_hpke_keyconfig;
1144 int ech_hpke_keyconfig_config_id;
1145 int ech_hpke_keyconfig_kem_id;
1146 int ech_hpke_keyconfig_public_key_length;
1147 int ech_hpke_keyconfig_public_key;
1148 int ech_hpke_keyconfig_cipher_suites;
1149 int ech_hpke_keyconfig_cipher_suites_length;
1150 int ech_hpke_keyconfig_cipher_suite;
1151 int ech_hpke_keyconfig_cipher_suite_kdf_id;
1152 int ech_hpke_keyconfig_cipher_suite_aead_id;
1153 int ech_clienthello_type;
1154 int ech_cipher_suite;
1158 int ech_payload_length;
1160 int ech_confirmation;
1161 int ech_retry_configs;
1162 int ech_padding_data;
1164 int hs_ext_alps_len;
1165 int hs_ext_alps_alpn_list;
1166 int hs_ext_alps_alpn_str;
1167 int hs_ext_alps_alpn_str_len;
1168 int hs_ext_alps_settings;
1175 int hs_ext_cert_types;
1177 int hs_ext_curves_point_formats;
1179 int hs_ext_reneg_info;
1180 int hs_ext_key_share;
1181 int hs_ext_key_share_ks;
1182 int hs_ext_pre_shared_key;
1183 int hs_ext_psk_identity;
1184 int hs_ext_psk_binders;
1185 int hs_ext_psk_binder;
1186 int hs_ext_server_name;
1187 int hs_ext_oid_filter;
1188 int hs_ext_quictp_parameter;
1189 int hs_ext_trusted_ca_keys;
1190 int hs_ext_trusted_ca_key;
1191 int hs_sig_hash_alg;
1192 int hs_sig_hash_algs;
1205 int uncompressed_certificates;
1207 int ech_echconfiglist;
1209 int ech_retry_configs;
1210 int ech_hpke_keyconfig;
1211 int ech_hpke_cipher_suites;
1212 int ech_hpke_cipher_suite;
1214 int hs_ext_token_binding_key_parameters;
1244 int hf_dtls_handshake_cookie_len;
1245 int hf_dtls_handshake_cookie;
1259 uint32_t max_version;
1260 bool server_name_present;
1261 int num_cipher_suites;
1272#define G_MAXUINT24 ((1U << 24) - 1)
1288 unsigned offset,
unsigned offset_end, uint32_t *ret_length,
1289 int hf_length, uint32_t min_value, uint32_t max_value);
1301 unsigned offset,
unsigned offset_end);
1307 ContentType content_type,
1308 unsigned record_length,
proto_item *length_pi,
1309 uint16_t version,
tvbuff_t *decrypted_tvb);
1315 bool is_from_server,
1327 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1329 bool is_dtls,
bool is_hrr);
1333 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1339 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1345 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1347 bool is_dtls, GHashTable *session_hash);
1351 uint32_t offset, uint32_t offset_end,
packet_info *pinfo,
1353 bool is_from_server,
bool is_dtls);
1357 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1362 proto_tree *tree, uint32_t offset, uint32_t offset_end, uint16_t version);
1366 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1374 proto_tree *tree, uint32_t offset, uint32_t offset_end);
1378 proto_tree *tree, uint32_t offset, uint32_t length,
1383 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1392 uint32_t offset, uint32_t offset_end, uint16_t version);
1395tls13_hkdf_expand_label_context(
int md,
const StringInfo *secret,
1396 const char *label_prefix,
const char *label,
1397 const uint8_t *context, uint8_t context_length,
1398 uint16_t out_len,
unsigned char **out);
1401tls13_hkdf_expand_label(
int md,
const StringInfo *secret,
1402 const char *label_prefix,
const char *label,
1403 uint16_t out_len,
unsigned char **out);
1407 uint32_t offset, uint32_t offset_end,
packet_info *pinfo,
1409 bool is_from_server _U_,
bool is_dtls _U_);
1411#define SSL_COMMON_LIST_T(name) \
1412ssl_common_dissect_t name;
1416#define SSL_COMMON_HF_LIST(name, prefix) \
1417 { & name .hf.change_cipher_spec, \
1418 { "Change Cipher Spec Message", prefix ".change_cipher_spec", \
1419 FT_NONE, BASE_NONE, NULL, 0x0, \
1420 "Signals a change in cipher specifications", HFILL } \
1422 { & name .hf.hs_exts_len, \
1423 { "Extensions Length", prefix ".handshake.extensions_length", \
1424 FT_UINT16, BASE_DEC, NULL, 0x0, \
1425 "Length of hello extensions", HFILL } \
1427 { & name .hf.hs_ext, \
1428 { "Extension", prefix ".handshake.extension", \
1429 FT_NONE, BASE_NONE, NULL, 0x0, \
1430 "Hello extension", HFILL } \
1432 { & name .hf.hs_ext_type, \
1433 { "Type", prefix ".handshake.extension.type", \
1434 FT_UINT16, BASE_DEC, VALS(tls_hello_extension_types), 0x0, \
1435 "Hello extension type", HFILL } \
1437 { & name .hf.hs_ext_len, \
1438 { "Length", prefix ".handshake.extension.len", \
1439 FT_UINT16, BASE_DEC, NULL, 0x0, \
1440 "Length of a hello extension", HFILL } \
1442 { & name .hf.hs_ext_data, \
1443 { "Data", prefix ".handshake.extension.data", \
1444 FT_BYTES, BASE_NONE, NULL, 0x0, \
1445 "Hello Extension data", HFILL } \
1447 { & name .hf.hs_ext_ech_outer_ext_len, \
1448 { "Outer Extensions List Length", prefix ".handshake.extensions_ech_outer_extensions_length", \
1449 FT_UINT8, BASE_DEC, NULL, 0x0, \
1452 { & name .hf.hs_ext_ech_outer_ext, \
1453 { "Outer Extensions List", prefix ".handshake.extensions_ech_outer_extensions", \
1454 FT_NONE, BASE_NONE, NULL, 0x0, \
1455 "List of extensions derived from Outer Client Hello", HFILL } \
1457 { & name .hf.hs_ech_confirm, \
1458 { "ECH Confirmation Bytes", prefix ".handshake.ech_confirm", \
1459 FT_BYTES, BASE_NONE, NULL, 0x0, \
1462 { & name .hf.hs_ech_confirm_compute, \
1463 { "Computed ECH Confirmation Bytes", prefix ".handshake.ech_confirm_compute", \
1464 FT_BYTES, BASE_NONE, NULL, 0x0, \
1467 { & name .hf.hs_ext_supported_groups_len, \
1468 { "Supported Groups List Length", prefix ".handshake.extensions_supported_groups_length", \
1469 FT_UINT16, BASE_DEC, NULL, 0x0, \
1472 { & name .hf.hs_ext_supported_groups, \
1473 { "Supported Groups List", prefix ".handshake.extensions_supported_groups", \
1474 FT_NONE, BASE_NONE, NULL, 0x0, \
1475 "List of supported groups (formerly Supported Elliptic Curves)", HFILL } \
1477 { & name .hf.hs_ext_supported_group, \
1478 { "Supported Group", prefix ".handshake.extensions_supported_group", \
1479 FT_UINT16, BASE_HEX, VALS(ssl_extension_curves), 0x0, \
1482 { & name .hf.hs_ext_ec_point_formats_len, \
1483 { "EC point formats Length", prefix ".handshake.extensions_ec_point_formats_length", \
1484 FT_UINT8, BASE_DEC, NULL, 0x0, \
1485 "Length of elliptic curves point formats field", HFILL } \
1487 { & name .hf.hs_ext_ec_point_formats, \
1488 { "EC point formats", prefix ".handshake.extensions_ec_point_formats", \
1489 FT_NONE, BASE_NONE, NULL, 0x0, \
1490 "List of elliptic curves point format", HFILL } \
1492 { & name .hf.hs_ext_ec_point_format, \
1493 { "EC point format", prefix ".handshake.extensions_ec_point_format", \
1494 FT_UINT8, BASE_DEC, VALS(ssl_extension_ec_point_formats), 0x0, \
1495 "Elliptic curves point format", HFILL } \
1497 { & name .hf.hs_ext_srp_len, \
1498 { "SRP username length", prefix ".handshake.extensions_srp_len", \
1499 FT_UINT8, BASE_DEC, NULL, 0x0, \
1500 "Length of Secure Remote Password username field", HFILL } \
1502 { & name .hf.hs_ext_srp_username, \
1503 { "SRP username", prefix ".handshake.extensions_srp_username", \
1504 FT_STRING, BASE_NONE, NULL, 0x0, \
1505 "Secure Remote Password username", HFILL } \
1507 { & name .hf.hs_ext_alpn_len, \
1508 { "ALPN Extension Length", prefix ".handshake.extensions_alpn_len", \
1509 FT_UINT16, BASE_DEC, NULL, 0x0, \
1510 "Length of the ALPN Extension", HFILL } \
1512 { & name .hf.hs_ext_alpn_list, \
1513 { "ALPN Protocol", prefix ".handshake.extensions_alpn_list", \
1514 FT_NONE, BASE_NONE, NULL, 0x0, \
1517 { & name .hf.hs_ext_alpn_str_len, \
1518 { "ALPN string length", prefix ".handshake.extensions_alpn_str_len", \
1519 FT_UINT8, BASE_DEC, NULL, 0x0, \
1520 "Length of ALPN string", HFILL } \
1522 { & name .hf.hs_ext_alpn_str, \
1523 { "ALPN Next Protocol", prefix ".handshake.extensions_alpn_str", \
1524 FT_STRING, BASE_NONE, NULL, 0x00, \
1527 { & name .hf.hs_ext_npn_str_len, \
1528 { "Protocol string length", prefix ".handshake.extensions_npn_str_len", \
1529 FT_UINT8, BASE_DEC, NULL, 0x0, \
1530 "Length of next protocol string", HFILL } \
1532 { & name .hf.hs_ext_npn_str, \
1533 { "Next Protocol", prefix ".handshake.extensions_npn", \
1534 FT_STRING, BASE_NONE, NULL, 0x0, \
1537 { & name .hf.hs_ext_reneg_info_len, \
1538 { "Renegotiation info extension length", prefix ".handshake.extensions_reneg_info_len", \
1539 FT_UINT8, BASE_DEC, NULL, 0x0, \
1542 { & name .hf.hs_ext_reneg_info, \
1543 { "Renegotiation info", prefix ".handshake.extensions_reneg_info",\
1544 FT_BYTES, BASE_NONE, NULL, 0x0, \
1547 { & name .hf.hs_ext_key_share_client_length, \
1548 { "Client Key Share Length", prefix ".handshake.extensions_key_share_client_length", \
1549 FT_UINT16, BASE_DEC, NULL, 0x00, \
1552 { & name .hf.hs_ext_key_share_group, \
1553 { "Group", prefix ".handshake.extensions_key_share_group", \
1554 FT_UINT16, BASE_DEC, VALS(ssl_extension_curves), 0x00, \
1557 { & name .hf.hs_ext_key_share_key_exchange_length, \
1558 { "Key Exchange Length", prefix ".handshake.extensions_key_share_key_exchange_length", \
1559 FT_UINT16, BASE_DEC, NULL, 0x00, \
1562 { & name .hf.hs_ext_key_share_key_exchange, \
1563 { "Key Exchange", prefix ".handshake.extensions_key_share_key_exchange", \
1564 FT_BYTES, BASE_NONE, NULL, 0x0, \
1567 { & name .hf.hs_ext_key_share_selected_group, \
1568 { "Selected Group", prefix ".handshake.extensions_key_share_selected_group", \
1569 FT_UINT16, BASE_DEC, VALS(ssl_extension_curves), 0x00, \
1572 { & name .hf.hs_ext_psk_identities_length, \
1573 { "Identities Length", prefix ".handshake.extensions.psk.identities.length", \
1574 FT_UINT16, BASE_DEC, NULL, 0x0, \
1577 { & name .hf.hs_ext_psk_identity_identity_length, \
1578 { "Identity Length", prefix ".handshake.extensions.psk.identity.identity_length", \
1579 FT_UINT16, BASE_DEC, NULL, 0x0, \
1582 { & name .hf.hs_ext_psk_identity_identity, \
1583 { "Identity", prefix ".handshake.extensions.psk.identity.identity", \
1584 FT_BYTES, BASE_NONE, NULL, 0x0, \
1587 { & name .hf.hs_ext_psk_identity_obfuscated_ticket_age, \
1588 { "Obfuscated Ticket Age", prefix ".handshake.extensions.psk.identity.obfuscated_ticket_age", \
1589 FT_UINT32, BASE_DEC, NULL, 0x0, \
1592 { & name .hf.hs_ext_psk_binders_length, \
1593 { "PSK Binders length", prefix ".handshake.extensions.psk.binders_len", \
1594 FT_UINT16, BASE_DEC, NULL, 0x0, \
1597 { & name .hf.hs_ext_psk_binders, \
1598 { "PSK Binders", prefix ".handshake.extensions.psk.binders", \
1599 FT_NONE, BASE_NONE, NULL, 0x0, \
1602 { & name .hf.hs_ext_psk_binder, \
1603 { "PSK Binder", prefix ".handshake.extensions.psk.binder", \
1604 FT_NONE, BASE_NONE, NULL, 0x0, \
1607 { & name .hf.hs_ext_psk_binder_binder_length, \
1608 { "Binder Length", prefix ".handshake.extensions.psk.binder.binder_length", \
1609 FT_UINT8, BASE_DEC, NULL, 0x0, \
1612 { & name .hf.hs_ext_psk_binder_binder, \
1613 { "Binder", prefix ".handshake.extensions.psk.binder.binder", \
1614 FT_BYTES, BASE_NONE, NULL, 0x0, \
1617 { & name .hf.hs_ext_psk_identity_selected, \
1618 { "Selected Identity", prefix ".handshake.extensions.psk.identity.selected", \
1619 FT_UINT16, BASE_DEC, NULL, 0x0, \
1622 { & name .hf.hs_ext_session_ticket, \
1623 { "Session Ticket", prefix ".handshake.extensions.session_ticket", \
1624 FT_BYTES, BASE_NONE, NULL, 0x0, \
1627 { & name .hf.hs_ext_supported_versions_len, \
1628 { "Supported Versions length", prefix ".handshake.extensions.supported_versions_len", \
1629 FT_UINT8, BASE_DEC, NULL, 0x0, \
1632 { & name .hf.hs_ext_supported_version, \
1633 { "Supported Version", prefix ".handshake.extensions.supported_version", \
1634 FT_UINT16, BASE_HEX, VALS(ssl_versions), 0x0, \
1637 { & name .hf.hs_ext_cookie_len, \
1638 { "Cookie length", prefix ".handshake.extensions.cookie_len", \
1639 FT_UINT16, BASE_DEC, NULL, 0x0, \
1642 { & name .hf.hs_ext_cookie, \
1643 { "Cookie", prefix ".handshake.extensions.cookie", \
1644 FT_BYTES, BASE_NONE, NULL, 0x0, \
1647 { & name .hf.hs_ext_server_name_list_len, \
1648 { "Server Name list length", prefix ".handshake.extensions_server_name_list_len", \
1649 FT_UINT16, BASE_DEC, NULL, 0x0, \
1650 "Length of server name list", HFILL } \
1652 { & name .hf.hs_ext_server_name_len, \
1653 { "Server Name length", prefix ".handshake.extensions_server_name_len", \
1654 FT_UINT16, BASE_DEC, NULL, 0x0, \
1655 "Length of server name string", HFILL } \
1657 { & name .hf.hs_ext_server_name_type, \
1658 { "Server Name Type", prefix ".handshake.extensions_server_name_type", \
1659 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_server_name_type_vs), 0x0, \
1662 { & name .hf.hs_ext_server_name, \
1663 { "Server Name", prefix ".handshake.extensions_server_name", \
1664 FT_STRING, BASE_NONE, NULL, 0x0, \
1667 { & name .hf.hs_ext_max_fragment_length, \
1668 { "Maximum Fragment Length", prefix ".handshake.max_fragment_length", \
1669 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_max_fragment_length), 0x00, \
1670 "Maximum fragment length that an endpoint is willing to receive", HFILL } \
1672 { & name .hf.hs_ext_padding_data, \
1673 { "Padding Data", prefix ".handshake.extensions_padding_data", \
1674 FT_BYTES, BASE_NONE, NULL, 0x0, \
1675 "Must be zero", HFILL } \
1677 { & name .hf.hs_ext_cert_url_type, \
1678 { "Certificate Chain Type", prefix ".handshake.cert_url_type", \
1679 FT_UINT8, BASE_DEC, VALS(tls_cert_chain_type), 0x0, \
1680 "Certificate Chain Type for Client Certificate URL", HFILL } \
1682 { & name .hf.hs_ext_cert_url_url_hash_list_len, \
1683 { "URL and Hash list Length", prefix ".handshake.cert_url.url_hash_len", \
1684 FT_UINT16, BASE_DEC, NULL, 0x0, \
1687 { & name .hf.hs_ext_cert_url_item, \
1688 { "URL and Hash", prefix ".handshake.cert_url.url_hash", \
1689 FT_NONE, BASE_NONE, NULL, 0x0, \
1692 { & name .hf.hs_ext_cert_url_url_len, \
1693 { "URL Length", prefix ".handshake.cert_url.url_len", \
1694 FT_UINT16, BASE_DEC, NULL, 0x0, \
1697 { & name .hf.hs_ext_cert_type, \
1698 { "Certificate Type", prefix ".handshake.cert_type.type", \
1699 FT_UINT8, BASE_HEX, VALS(tls_certificate_type), 0x0, \
1702 { & name .hf.hs_ext_cert_types, \
1703 { "Certificate Type List", prefix ".handshake.cert_type.types", \
1704 FT_NONE, BASE_NONE, NULL, 0x0, \
1707 { & name .hf.hs_ext_cert_types_len, \
1708 { "Certificate Type List Length", prefix ".handshake.cert_type.types_len", \
1709 FT_UINT8, BASE_DEC, NULL, 0x0, \
1712 { & name .hf.hs_ext_cert_url_url, \
1713 { "URL", prefix ".handshake.cert_url.url", \
1714 FT_STRING, BASE_NONE, NULL, 0x0, \
1715 "URL used to fetch the certificate(s)", HFILL } \
1717 { & name .hf.hs_ext_cert_url_padding, \
1718 { "Padding", prefix ".handshake.cert_url.padding", \
1719 FT_NONE, BASE_NONE, NULL, 0x0, \
1720 "Padding that MUST be 0x01 for backwards compatibility", HFILL } \
1722 { & name .hf.hs_ext_cert_url_sha1, \
1723 { "SHA1 Hash", prefix ".handshake.cert_url.sha1", \
1724 FT_BYTES, BASE_NONE, NULL, 0x0, \
1725 "SHA1 Hash of the certificate", HFILL } \
1727 { & name .hf.hs_ext_cert_status_type, \
1728 { "Certificate Status Type", prefix ".handshake.extensions_status_request_type", \
1729 FT_UINT8, BASE_DEC, VALS(tls_cert_status_type), 0x0, \
1732 { & name .hf.hs_ext_cert_status_request_len, \
1733 { "Certificate Status Length", prefix ".handshake.extensions_status_request_len", \
1734 FT_UINT16, BASE_DEC, NULL, 0x0, \
1737 { & name .hf.hs_ext_cert_status_responder_id_list_len, \
1738 { "Responder ID list Length", prefix ".handshake.extensions_status_request_responder_ids_len", \
1739 FT_UINT16, BASE_DEC, NULL, 0x0, \
1742 { & name .hf.hs_ext_cert_status_request_extensions_len, \
1743 { "Request Extensions Length", prefix ".handshake.extensions_status_request_exts_len", \
1744 FT_UINT16, BASE_DEC, NULL, 0x0, \
1747 { & name .hf.hs_ext_cert_status_request_list_len, \
1748 { "Certificate Status List Length", prefix ".handshake.extensions_status_request_list_len", \
1749 FT_UINT16, BASE_DEC, NULL, 0x0, \
1750 "CertificateStatusRequestItemV2 list length", HFILL } \
1752 { & name .hf.hs_ocsp_response_list_len, \
1753 { "OCSP Response List Length", prefix ".handshake.ocsp_response_list_len", \
1754 FT_UINT24, BASE_DEC, NULL, 0x0, \
1755 "OCSPResponseList length", HFILL } \
1757 { & name .hf.hs_ocsp_response_len, \
1758 { "OCSP Response Length", prefix ".handshake.ocsp_response_len", \
1759 FT_UINT24, BASE_DEC, NULL, 0x0, \
1762 { & name .hf.hs_sig_hash_alg_len, \
1763 { "Signature Hash Algorithms Length", prefix ".handshake.sig_hash_alg_len", \
1764 FT_UINT16, BASE_DEC, NULL, 0x0, \
1765 "Length of Signature Hash Algorithms", HFILL } \
1767 { & name .hf.hs_sig_hash_algs, \
1768 { "Signature Algorithms", prefix ".handshake.sig_hash_algs", \
1769 FT_NONE, BASE_NONE, NULL, 0x0, \
1770 "List of supported Signature Algorithms", HFILL } \
1772 { & name .hf.hs_sig_hash_alg, \
1773 { "Signature Algorithm", prefix ".handshake.sig_hash_alg", \
1774 FT_UINT16, BASE_HEX, VALS(tls13_signature_algorithm), 0x0, \
1777 { & name .hf.hs_sig_hash_hash, \
1778 { "Signature Hash Algorithm Hash", prefix ".handshake.sig_hash_hash", \
1779 FT_UINT8, BASE_DEC, VALS(tls_hash_algorithm), 0x0, \
1780 "Hash algorithm (TLS 1.2)", HFILL } \
1782 { & name .hf.hs_sig_hash_sig, \
1783 { "Signature Hash Algorithm Signature", prefix ".handshake.sig_hash_sig", \
1784 FT_UINT8, BASE_DEC, VALS(tls_signature_algorithm), 0x0, \
1785 "Signature algorithm (TLS 1.2)", HFILL } \
1787 { & name .hf.hs_client_keyex_epms_len, \
1788 { "Encrypted PreMaster length", prefix ".handshake.epms_len", \
1789 FT_UINT16, BASE_DEC, NULL, 0x0, \
1790 "Length of encrypted PreMaster secret", HFILL } \
1792 { & name .hf.hs_client_keyex_epms, \
1793 { "Encrypted PreMaster", prefix ".handshake.epms", \
1794 FT_BYTES, BASE_NONE, NULL, 0x0, \
1795 "Encrypted PreMaster secret", HFILL } \
1797 { & name .hf.hs_server_keyex_modulus_len, \
1798 { "Modulus Length", prefix ".handshake.modulus_len", \
1799 FT_UINT16, BASE_DEC, NULL, 0x0, \
1800 "Length of RSA-EXPORT modulus", HFILL } \
1802 { & name .hf.hs_server_keyex_exponent_len, \
1803 { "Exponent Length", prefix ".handshake.exponent_len", \
1804 FT_UINT16, BASE_DEC, NULL, 0x0, \
1805 "Length of RSA-EXPORT exponent", HFILL } \
1807 { & name .hf.hs_server_keyex_sig_len, \
1808 { "Signature Length", prefix ".handshake.sig_len", \
1809 FT_UINT16, BASE_DEC, NULL, 0x0, \
1810 "Length of Signature", HFILL } \
1812 { & name .hf.hs_server_keyex_p_len, \
1813 { "p Length", prefix ".handshake.p_len", \
1814 FT_UINT16, BASE_DEC, NULL, 0x0, \
1815 "Length of p", HFILL } \
1817 { & name .hf.hs_server_keyex_g_len, \
1818 { "g Length", prefix ".handshake.g_len", \
1819 FT_UINT16, BASE_DEC, NULL, 0x0, \
1820 "Length of g", HFILL } \
1822 { & name .hf.hs_server_keyex_ys_len, \
1823 { "Pubkey Length", prefix ".handshake.ys_len", \
1824 FT_UINT16, BASE_DEC, NULL, 0x0, \
1825 "Length of server's Diffie-Hellman public key", HFILL } \
1827 { & name .hf.hs_client_keyex_yc_len, \
1828 { "Pubkey Length", prefix ".handshake.yc_len", \
1829 FT_UINT16, BASE_DEC, NULL, 0x0, \
1830 "Length of client's Diffie-Hellman public key", HFILL } \
1832 { & name .hf.hs_client_keyex_point_len, \
1833 { "Pubkey Length", prefix ".handshake.client_point_len", \
1834 FT_UINT8, BASE_DEC, NULL, 0x0, \
1835 "Length of client's EC Diffie-Hellman public key", HFILL } \
1837 { & name .hf.hs_server_keyex_point_len, \
1838 { "Pubkey Length", prefix ".handshake.server_point_len", \
1839 FT_UINT8, BASE_DEC, NULL, 0x0, \
1840 "Length of server's EC Diffie-Hellman public key", HFILL } \
1842 { & name .hf.hs_server_keyex_p, \
1843 { "p", prefix ".handshake.p", \
1844 FT_BYTES, BASE_NONE, NULL, 0x0, \
1845 "Diffie-Hellman p", HFILL } \
1847 { & name .hf.hs_server_keyex_g, \
1848 { "g", prefix ".handshake.g", \
1849 FT_BYTES, BASE_NONE, NULL, 0x0, \
1850 "Diffie-Hellman g", HFILL } \
1852 { & name .hf.hs_server_keyex_curve_type, \
1853 { "Curve Type", prefix ".handshake.server_curve_type", \
1854 FT_UINT8, BASE_HEX, VALS(ssl_curve_types), 0x0, \
1855 "Server curve_type", HFILL } \
1857 { & name .hf.hs_server_keyex_named_curve, \
1858 { "Named Curve", prefix ".handshake.server_named_curve", \
1859 FT_UINT16, BASE_HEX, VALS(ssl_extension_curves), 0x0, \
1860 "Server named_curve", HFILL } \
1862 { & name .hf.hs_server_keyex_ys, \
1863 { "Pubkey", prefix ".handshake.ys", \
1864 FT_BYTES, BASE_NONE, NULL, 0x0, \
1865 "Diffie-Hellman server pubkey", HFILL } \
1867 { & name .hf.hs_client_keyex_yc, \
1868 { "Pubkey", prefix ".handshake.yc", \
1869 FT_BYTES, BASE_NONE, NULL, 0x0, \
1870 "Diffie-Hellman client pubkey", HFILL } \
1872 { & name .hf.hs_server_keyex_point, \
1873 { "Pubkey", prefix ".handshake.server_point", \
1874 FT_BYTES, BASE_NONE, NULL, 0x0, \
1875 "EC Diffie-Hellman server pubkey", HFILL } \
1877 { & name .hf.hs_client_keyex_point, \
1878 { "Pubkey", prefix ".handshake.client_point", \
1879 FT_BYTES, BASE_NONE, NULL, 0x0, \
1880 "EC Diffie-Hellman client pubkey", HFILL } \
1882 { & name .hf.hs_server_keyex_xs_len, \
1883 { "Pubkey Length", prefix ".handshake.xs_len", \
1884 FT_UINT8, BASE_DEC, NULL, 0x0, \
1885 "Length of EC J-PAKE server public key", HFILL } \
1887 { & name .hf.hs_client_keyex_xc_len, \
1888 { "Pubkey Length", prefix ".handshake.xc_len", \
1889 FT_UINT8, BASE_DEC, NULL, 0x0, \
1890 "Length of EC J-PAKE client public key", HFILL } \
1892 { & name .hf.hs_server_keyex_xs, \
1893 { "Pubkey", prefix ".handshake.xs", \
1894 FT_BYTES, BASE_NONE, NULL, 0x0, \
1895 "EC J-PAKE server public key", HFILL } \
1897 { & name .hf.hs_client_keyex_xc, \
1898 { "Pubkey", prefix ".handshake.xc", \
1899 FT_BYTES, BASE_NONE, NULL, 0x0, \
1900 "EC J-PAKE client public key", HFILL } \
1902 { & name .hf.hs_server_keyex_vs_len, \
1903 { "Ephemeral Pubkey Length", prefix ".handshake.vs_len", \
1904 FT_UINT8, BASE_DEC, NULL, 0x0, \
1905 "Length of EC J-PAKE server ephemeral public key", HFILL } \
1907 { & name .hf.hs_client_keyex_vc_len, \
1908 { "Ephemeral Pubkey Length", prefix ".handshake.vc_len", \
1909 FT_UINT8, BASE_DEC, NULL, 0x0, \
1910 "Length of EC J-PAKE client ephemeral public key", HFILL } \
1912 { & name .hf.hs_server_keyex_vs, \
1913 { "Ephemeral Pubkey", prefix ".handshake.vs", \
1914 FT_BYTES, BASE_NONE, NULL, 0x0, \
1915 "EC J-PAKE server ephemeral public key", HFILL } \
1917 { & name .hf.hs_client_keyex_vc, \
1918 { "Ephemeral Pubkey", prefix ".handshake.vc", \
1919 FT_BYTES, BASE_NONE, NULL, 0x0, \
1920 "EC J-PAKE client ephemeral public key", HFILL } \
1922 { & name .hf.hs_server_keyex_rs_len, \
1923 { "Schnorr signature Length", prefix ".handshake.rs_len", \
1924 FT_UINT8, BASE_DEC, NULL, 0x0, \
1925 "Length of EC J-PAKE server Schnorr signature", HFILL } \
1927 { & name .hf.hs_client_keyex_rc_len, \
1928 { "Schnorr signature Length", prefix ".handshake.rc_len", \
1929 FT_UINT8, BASE_DEC, NULL, 0x0, \
1930 "Length of EC J-PAKE client Schnorr signature", HFILL } \
1932 { & name .hf.hs_server_keyex_rs, \
1933 { "Schnorr signature", prefix ".handshake.rs", \
1934 FT_BYTES, BASE_NONE, NULL, 0x0, \
1935 "EC J-PAKE server Schnorr signature", HFILL } \
1937 { & name .hf.hs_client_keyex_rc, \
1938 { "Schnorr signature", prefix ".handshake.rc", \
1939 FT_BYTES, BASE_NONE, NULL, 0x0, \
1940 "EC J-PAKE client Schnorr signature", HFILL } \
1942 { & name .hf.hs_server_keyex_modulus, \
1943 { "Modulus", prefix ".handshake.modulus", \
1944 FT_BYTES, BASE_NONE, NULL, 0x0, \
1945 "RSA-EXPORT modulus", HFILL } \
1947 { & name .hf.hs_server_keyex_exponent, \
1948 { "Exponent", prefix ".handshake.exponent", \
1949 FT_BYTES, BASE_NONE, NULL, 0x0, \
1950 "RSA-EXPORT exponent", HFILL } \
1952 { & name .hf.hs_server_keyex_sig, \
1953 { "Signature", prefix ".handshake.sig", \
1954 FT_BYTES, BASE_NONE, NULL, 0x0, \
1955 "Diffie-Hellman server signature", HFILL } \
1957 { & name .hf.hs_server_keyex_hint_len, \
1958 { "Hint Length", prefix ".handshake.hint_len", \
1959 FT_UINT16, BASE_DEC, NULL, 0x0, \
1960 "Length of PSK Hint", HFILL } \
1962 { & name .hf.hs_server_keyex_hint, \
1963 { "Hint", prefix ".handshake.hint", \
1964 FT_BYTES, BASE_NONE, NULL, 0x0, \
1965 "PSK Hint", HFILL } \
1967 { & name .hf.hs_client_keyex_identity_len, \
1968 { "Identity Length", prefix ".handshake.identity_len", \
1969 FT_UINT16, BASE_DEC, NULL, 0x0, \
1970 "Length of PSK Identity", HFILL } \
1972 { & name .hf.hs_client_keyex_identity, \
1973 { "Identity", prefix ".handshake.identity", \
1974 FT_BYTES, BASE_NONE, NULL, 0x0, \
1975 "PSK Identity", HFILL } \
1977 { & name .hf.hs_ext_heartbeat_mode, \
1978 { "Mode", prefix ".handshake.extension.heartbeat.mode", \
1979 FT_UINT8, BASE_DEC, VALS(tls_heartbeat_mode), 0x0, \
1980 "Heartbeat extension mode", HFILL } \
1982 { & name .hf.hs_certificates_len, \
1983 { "Certificates Length", prefix ".handshake.certificates_length", \
1984 FT_UINT24, BASE_DEC, NULL, 0x0, \
1985 "Length of certificates field", HFILL } \
1987 { & name .hf.hs_certificates, \
1988 { "Certificates", prefix ".handshake.certificates", \
1989 FT_NONE, BASE_NONE, NULL, 0x0, \
1990 "List of certificates", HFILL } \
1992 { & name .hf.hs_certificate, \
1993 { "Certificate", prefix ".handshake.certificate", \
1994 FT_BYTES, BASE_NONE, NULL, 0x0, \
1997 { & name .hf.hs_certificate_len, \
1998 { "Certificate Length", prefix ".handshake.certificate_length", \
1999 FT_UINT24, BASE_DEC, NULL, 0x0, \
2000 "Length of certificate", HFILL } \
2002 { & name .hf.hs_cert_types_count, \
2003 { "Certificate types count", prefix ".handshake.cert_types_count",\
2004 FT_UINT8, BASE_DEC, NULL, 0x0, \
2005 "Count of certificate types", HFILL } \
2007 { & name .hf.hs_cert_types, \
2008 { "Certificate types", prefix ".handshake.cert_types", \
2009 FT_NONE, BASE_NONE, NULL, 0x0, \
2010 "List of certificate types", HFILL } \
2012 { & name .hf.hs_cert_type, \
2013 { "Certificate type", prefix ".handshake.cert_type", \
2014 FT_UINT8, BASE_DEC, VALS(ssl_31_client_certificate_type), 0x0, \
2017 { & name .hf.hs_dnames_len, \
2018 { "Distinguished Names Length", prefix ".handshake.dnames_len", \
2019 FT_UINT16, BASE_DEC, NULL, 0x0, \
2020 "Length of list of CAs that server trusts", HFILL } \
2022 { & name .hf.hs_dnames, \
2023 { "Distinguished Names", prefix ".handshake.dnames", \
2024 FT_NONE, BASE_NONE, NULL, 0x0, \
2025 "List of CAs that server trusts", HFILL } \
2027 { & name .hf.hs_dname_len, \
2028 { "Distinguished Name Length", prefix ".handshake.dname_len", \
2029 FT_UINT16, BASE_DEC, NULL, 0x0, \
2030 "Length of distinguished name", HFILL } \
2032 { & name .hf.hs_dnames_truncated, \
2033 { "Tree view truncated", prefix ".handshake.dnames_truncated", \
2034 FT_NONE, BASE_NONE, NULL, 0x00, \
2035 "Some Distinguished Names are not added to tree pane to limit resources", HFILL } \
2037 { & name .hf.hs_dname, \
2038 { "Distinguished Name", prefix ".handshake.dname", \
2039 FT_NONE, BASE_NONE, NULL, 0x0, \
2040 "Distinguished name of a CA that server trusts", HFILL } \
2042 { & name .hf.hs_random, \
2043 { "Random", prefix ".handshake.random", \
2044 FT_BYTES, BASE_NONE, NULL, 0x0, \
2045 "Random values used for deriving keys", HFILL } \
2047 { & name .hf.hs_random_time, \
2048 { "GMT Unix Time", prefix ".handshake.random_time", \
2049 FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0x0, \
2050 "Unix time field of random structure", HFILL } \
2052 { & name .hf.hs_random_bytes, \
2053 { "Random Bytes", prefix ".handshake.random_bytes", \
2054 FT_BYTES, BASE_NONE, NULL, 0x0, \
2055 "Random values used for deriving keys", HFILL } \
2057 { & name .hf.hs_session_id, \
2058 { "Session ID", prefix ".handshake.session_id", \
2059 FT_BYTES, BASE_NONE, NULL, 0x0, \
2060 "Identifies the SSL session, allowing later resumption", HFILL }\
2062 { & name .hf.hs_session_id_len, \
2063 { "Session ID Length", prefix ".handshake.session_id_length", \
2064 FT_UINT8, BASE_DEC, NULL, 0x0, \
2065 "Length of Session ID field", HFILL } \
2067 { & name .hf.hs_client_version, \
2068 { "Version", prefix ".handshake.version", \
2069 FT_UINT16, BASE_HEX, VALS(ssl_versions), 0x0, \
2070 "Maximum version supported by client [legacy_version if supported_versions ext is present]", HFILL } \
2072 { & name .hf.hs_server_version, \
2073 { "Version", prefix ".handshake.version", \
2074 FT_UINT16, BASE_HEX, VALS(ssl_versions), 0x0, \
2075 "Version selected by server [legacy_version if supported_versions ext is present]", HFILL } \
2077 { & name .hf.hs_cipher_suites_len, \
2078 { "Cipher Suites Length", prefix ".handshake.cipher_suites_length", \
2079 FT_UINT16, BASE_DEC, NULL, 0x0, \
2080 "Length of cipher suites field", HFILL } \
2082 { & name .hf.hs_cipher_suites, \
2083 { "Cipher Suites", prefix ".handshake.ciphersuites", \
2084 FT_NONE, BASE_NONE, NULL, 0x0, \
2085 "List of cipher suites supported by client", HFILL } \
2087 { & name .hf.hs_cipher_suite, \
2088 { "Cipher Suite", prefix ".handshake.ciphersuite", \
2089 FT_UINT16, BASE_HEX|BASE_EXT_STRING, &ssl_31_ciphersuite_ext, 0x0, \
2092 { & name .hf.hs_comp_methods_len, \
2093 { "Compression Methods Length", prefix ".handshake.comp_methods_length", \
2094 FT_UINT8, BASE_DEC, NULL, 0x0, \
2095 "Length of compression methods field", HFILL } \
2097 { & name .hf.hs_comp_methods, \
2098 { "Compression Methods", prefix ".handshake.comp_methods", \
2099 FT_NONE, BASE_NONE, NULL, 0x0, \
2100 "List of compression methods supported by client", HFILL } \
2102 { & name .hf.hs_comp_method, \
2103 { "Compression Method", prefix ".handshake.comp_method", \
2104 FT_UINT8, BASE_DEC, VALS(ssl_31_compression_method), 0x0, \
2107 { & name .hf.hs_session_ticket_lifetime_hint, \
2108 { "Session Ticket Lifetime Hint", \
2109 prefix ".handshake.session_ticket_lifetime_hint", \
2110 FT_UINT32, BASE_DEC|BASE_UNIT_STRING, UNS(&units_second_seconds), 0x0, \
2111 "New Session Ticket Lifetime Hint", HFILL } \
2113 { & name .hf.hs_session_ticket_age_add, \
2114 { "Session Ticket Age Add", \
2115 prefix ".handshake.session_ticket_age_add", \
2116 FT_UINT32, BASE_DEC, NULL, 0x0, \
2117 "Random 32-bit value to obscure age of ticket", HFILL } \
2119 { & name .hf.hs_session_ticket_nonce_len, \
2120 { "Session Ticket Nonce Length", prefix ".handshake.session_ticket_nonce_length", \
2121 FT_UINT8, BASE_DEC, NULL, 0x0, \
2124 { & name .hf.hs_session_ticket_nonce, \
2125 { "Session Ticket Nonce", prefix ".handshake.session_ticket_nonce", \
2126 FT_BYTES, BASE_NONE, NULL, 0x0, \
2127 "A unique per-ticket value", HFILL } \
2129 { & name .hf.hs_session_ticket_len, \
2130 { "Session Ticket Length", prefix ".handshake.session_ticket_length", \
2131 FT_UINT16, BASE_DEC, NULL, 0x0, \
2132 "New Session Ticket Length", HFILL } \
2134 { & name .hf.hs_session_ticket, \
2135 { "Session Ticket", prefix ".handshake.session_ticket", \
2136 FT_BYTES, BASE_NONE, NULL, 0x0, \
2137 "New Session Ticket", HFILL } \
2139 { & name .hf.hs_finished, \
2140 { "Verify Data", prefix ".handshake.verify_data", \
2141 FT_BYTES, BASE_NONE, NULL, 0x0, \
2142 "Opaque verification data", HFILL } \
2144 { & name .hf.hs_client_cert_vrfy_sig_len, \
2145 { "Signature length", prefix ".handshake.client_cert_vrfy.sig_len", \
2146 FT_UINT16, BASE_DEC, NULL, 0x0, \
2147 "Length of CertificateVerify's signature", HFILL } \
2149 { & name .hf.hs_client_cert_vrfy_sig, \
2150 { "Signature", prefix ".handshake.client_cert_vrfy.sig", \
2151 FT_BYTES, BASE_NONE, NULL, 0x0, \
2152 "CertificateVerify's signature", HFILL } \
2154 { & name .hf.hs_ja3_full, \
2155 { "JA3 Fullstring", prefix ".handshake.ja3_full", \
2156 FT_STRING, BASE_NONE, NULL, 0x0, \
2159 { & name .hf.hs_ja3_hash, \
2160 { "JA3", prefix ".handshake.ja3", \
2161 FT_STRING, BASE_NONE, NULL, 0x0, \
2164 { & name .hf.hs_ja3s_full, \
2165 { "JA3S Fullstring", prefix ".handshake.ja3s_full", \
2166 FT_STRING, BASE_NONE, NULL, 0x0, \
2169 { & name .hf.hs_ja3s_hash, \
2170 { "JA3S", prefix ".handshake.ja3s", \
2171 FT_STRING, BASE_NONE, NULL, 0x0, \
2174 { & name .hf.hs_ja4, \
2175 { "JA4", prefix ".handshake.ja4", \
2176 FT_STRING, BASE_NONE, NULL, 0x0, \
2179 { & name .hf.hs_ja4_r, \
2180 { "JA4_r", prefix ".handshake.ja4_r", \
2181 FT_STRING, BASE_NONE, NULL, 0x0, \
2184 { & name .hf.hs_ext_psk_ke_modes_length, \
2185 { "PSK Key Exchange Modes Length", prefix ".extension.psk_ke_modes_length", \
2186 FT_UINT8, BASE_DEC, NULL, 0x0, \
2189 { & name .hf.hs_ext_psk_ke_mode, \
2190 { "PSK Key Exchange Mode", prefix ".extension.psk_ke_mode", \
2191 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_psk_ke_mode), 0x0, \
2192 "Key exchange modes where the client supports use of PSKs", HFILL } \
2194 { & name .hf.hs_certificate_request_context_length, \
2195 { "Certificate Request Context Length", prefix ".handshake.certificate_request_context_length", \
2196 FT_UINT8, BASE_DEC, NULL, 0x0, \
2199 { & name .hf.hs_certificate_request_context, \
2200 { "Certificate Request Context", prefix ".handshake.certificate_request_context", \
2201 FT_BYTES, BASE_NONE, NULL, 0x0, \
2202 "Value from CertificateRequest or empty for server auth", HFILL } \
2204 { & name .hf.hs_key_update_request_update, \
2205 { "Key Update Request", prefix ".handshake.key_update.request_update", \
2206 FT_UINT8, BASE_DEC, VALS(tls13_key_update_request), 0x00, \
2207 "Whether the receiver should also update its keys", HFILL } \
2209 { & name .hf.sct_scts_length, \
2210 { "Serialized SCT List Length", prefix ".sct.scts_length", \
2211 FT_UINT16, BASE_DEC, NULL, 0x00, \
2214 { & name .hf.sct_sct_length, \
2215 { "Serialized SCT Length", prefix ".sct.sct_length", \
2216 FT_UINT16, BASE_DEC, NULL, 0x00, \
2219 { & name .hf.sct_sct_version, \
2220 { "SCT Version", prefix ".sct.sct_version", \
2221 FT_UINT8, BASE_DEC, NULL, 0x00, \
2222 "SCT Protocol version (v1 (0) is defined in RFC 6962)", HFILL } \
2224 { & name .hf.sct_sct_logid, \
2225 { "Log ID", prefix ".sct.sct_logid", \
2226 FT_BYTES, BASE_NONE, NULL, 0x00, \
2227 "SHA-256 hash of log's public key", HFILL } \
2229 { & name .hf.sct_sct_timestamp, \
2230 { "Timestamp", prefix ".sct.sct_timestamp", \
2231 FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0x00, \
2232 "Timestamp of issuance", HFILL } \
2234 { & name .hf.sct_sct_extensions_length, \
2235 { "Extensions length", prefix ".sct.sct_extensions_length", \
2236 FT_UINT16, BASE_DEC, NULL, 0x00, \
2237 "Length of future extensions to this protocol (currently none)", HFILL } \
2239 { & name .hf.sct_sct_extensions, \
2240 { "Extensions", prefix ".sct.sct_extensions", \
2241 FT_NONE, BASE_NONE, NULL, 0x00, \
2242 "Future extensions to this protocol (currently none)", HFILL } \
2244 { & name .hf.sct_sct_signature_length, \
2245 { "Signature Length", prefix ".sct.sct_signature_length", \
2246 FT_UINT16, BASE_DEC, NULL, 0x00, \
2249 { & name .hf.sct_sct_signature, \
2250 { "Signature", prefix ".sct.sct_signature", \
2251 FT_BYTES, BASE_NONE, NULL, 0x00, \
2254 { & name .hf.hs_ext_max_early_data_size, \
2255 { "Maximum Early Data Size", prefix ".early_data.max_early_data_size", \
2256 FT_UINT32, BASE_DEC, NULL, 0x00, \
2257 "Maximum amount of 0-RTT data that the client may send", HFILL } \
2259 { & name .hf.hs_ext_oid_filters_length, \
2260 { "OID Filters Length", prefix ".extension.oid_filters_length", \
2261 FT_UINT16, BASE_DEC, NULL, 0x00, \
2264 { & name .hf.hs_ext_oid_filters_oid_length, \
2265 { "Certificate Extension OID Length", prefix ".extension.oid_filters.oid_length", \
2266 FT_UINT8, BASE_DEC, NULL, 0x00, \
2269 { & name .hf.hs_ext_oid_filters_oid, \
2270 { "Certificate Extension OID", prefix ".extension.oid_filters.oid", \
2271 FT_OID, BASE_NONE, NULL, 0x00, \
2274 { & name .hf.hs_ext_oid_filters_values_length, \
2275 { "Certificate Extension Values Length", prefix ".extension.oid_filters.values_length", \
2276 FT_UINT16, BASE_DEC, NULL, 0x00, \
2279 { & name .hf.hs_cred_valid_time, \
2280 { "Valid Time", prefix ".handshake.cred.valid_time", \
2281 FT_UINT16, BASE_DEC, NULL, 0x0, \
2282 "Delegated Credentials Valid Time", HFILL } \
2284 { & name .hf.hs_cred_pubkey, \
2285 { "Subject Public Key Info", prefix ".handshake.cred.pubkey", \
2286 FT_BYTES, BASE_NONE, NULL, 0x0, \
2287 "Delegated Credentials Subject Public Key Info", HFILL } \
2289 { & name .hf.hs_cred_pubkey_len, \
2290 { "Subject Public Key Info Length", prefix ".handshake.cred.pubkey_len", \
2291 FT_UINT24, BASE_DEC, NULL, 0x0, \
2292 "Delegated Credentials Subject Public Key Info Length", HFILL } \
2294 { & name .hf.hs_cred_signature, \
2295 { "Signature", prefix ".handshake.cred.signature", \
2296 FT_BYTES, BASE_NONE, NULL, 0x0, \
2297 "Delegated Credentials Signature", HFILL } \
2299 { & name .hf.hs_cred_signature_len, \
2300 { "Signature Length", prefix ".handshake.cred.signature_len", \
2301 FT_UINT16, BASE_DEC, NULL, 0x0, \
2302 "Delegated Credentials Signature Length", HFILL } \
2304 { & name .hf.hs_ext_compress_certificate_algorithms_length, \
2305 { "Algorithms Length", prefix ".compress_certificate.algorithms_length", \
2306 FT_UINT8, BASE_DEC, NULL, 0x00, \
2309 { & name .hf.hs_ext_compress_certificate_algorithm, \
2310 { "Algorithm", prefix ".compress_certificate.algorithm", \
2311 FT_UINT16, BASE_DEC, VALS(compress_certificate_algorithm_vals), 0x00, \
2314 { & name .hf.hs_ext_compress_certificate_uncompressed_length, \
2315 { "Uncompressed Length", prefix ".compress_certificate.uncompressed_length", \
2316 FT_UINT24, BASE_DEC, NULL, 0x00, \
2319 { & name .hf.hs_ext_compress_certificate_compressed_certificate_message_length, \
2320 { "Length", prefix ".compress_certificate.compressed_certificate_message.length", \
2321 FT_UINT24, BASE_DEC, NULL, 0x00, \
2324 { & name .hf.hs_ext_compress_certificate_compressed_certificate_message, \
2325 { "Compressed Certificate Message", prefix ".compress_certificate.compressed_certificate_message", \
2326 FT_BYTES, BASE_NONE, NULL, 0x00, \
2329 { & name .hf.hs_ext_token_binding_version_major, \
2330 { "Protocol Major Version", prefix ".token_binding.version_major", \
2331 FT_UINT8, BASE_HEX, NULL, 0x00, \
2332 "Major version of the Token Binding protocol", HFILL } \
2334 { & name .hf.hs_ext_token_binding_version_minor, \
2335 { "Protocol Minor Version", prefix ".token_binding.version_minor", \
2336 FT_UINT8, BASE_HEX, NULL, 0x00, \
2337 "Minor version of the Token Binding protocol", HFILL } \
2339 { & name .hf.hs_ext_token_binding_key_parameters, \
2340 { "Key Parameters", prefix ".token_binding.key_parameters", \
2341 FT_NONE, BASE_NONE, NULL, 0x0, \
2344 { & name .hf.hs_ext_token_binding_key_parameters_length, \
2345 { "Key Parameters Length", prefix ".token_binding.key_parameters_length", \
2346 FT_UINT8, BASE_DEC, NULL, 0x00, \
2347 "Length of the key parameters list", HFILL } \
2349 { & name .hf.hs_ext_token_binding_key_parameter, \
2350 { "Key Parameter", prefix ".token_binding.key_parameter", \
2351 FT_UINT8, BASE_DEC, VALS(token_binding_key_parameter_vals), 0x00, \
2352 "Identifier of the Token Binding key parameter", HFILL } \
2354 { & name .hf.hs_ext_record_size_limit, \
2355 { "Record Size Limit", prefix ".record_size_limit", \
2356 FT_UINT16, BASE_DEC, NULL, 0x00, \
2357 "Maximum record size that an endpoint is willing to receive", HFILL } \
2359 { & name .hf.hs_ext_quictp_len, \
2360 { "Parameters Length", prefix ".quic.len", \
2361 FT_UINT16, BASE_DEC, NULL, 0x00, \
2364 { & name .hf.hs_ext_quictp_parameter, \
2365 { "Parameter", prefix ".quic.parameter", \
2366 FT_NONE, BASE_NONE, NULL, 0x00, \
2369 { & name .hf.hs_ext_quictp_parameter_type, \
2370 { "Type", prefix ".quic.parameter.type", \
2371 FT_UINT64, BASE_CUSTOM, CF_FUNC(quic_transport_parameter_id_base_custom), 0x00, \
2374 { & name .hf.hs_ext_quictp_parameter_len, \
2375 { "Length", prefix ".quic.parameter.length", \
2376 FT_UINT64, BASE_DEC, NULL, 0x00, \
2379 { & name .hf.hs_ext_quictp_parameter_len_old, \
2380 { "Length", prefix ".quic.parameter.length.old", \
2381 FT_UINT16, BASE_DEC, NULL, 0x00, \
2384 { & name .hf.hs_ext_quictp_parameter_value, \
2385 { "Value", prefix ".quic.parameter.value", \
2386 FT_BYTES, BASE_NONE, NULL, 0x00, \
2389 { & name .hf.hs_ext_quictp_parameter_original_destination_connection_id, \
2390 { "original_destination_connection_id", prefix ".quic.parameter.original_destination_connection_id", \
2391 FT_BYTES, BASE_NONE, NULL, 0x00, \
2392 "Destination Connection ID from the first Initial packet sent by the client", HFILL } \
2394 { & name .hf.hs_ext_quictp_parameter_max_idle_timeout, \
2395 { "max_idle_timeout", prefix ".quic.parameter.max_idle_timeout", \
2396 FT_UINT64, BASE_DEC, NULL, 0x00, \
2397 "In milliseconds", HFILL } \
2399 { & name .hf.hs_ext_quictp_parameter_stateless_reset_token, \
2400 { "stateless_reset_token", prefix ".quic.parameter.stateless_reset_token", \
2401 FT_BYTES, BASE_NONE, NULL, 0x00, \
2402 "Used in verifying a stateless reset", HFILL } \
2404 { & name .hf.hs_ext_quictp_parameter_max_udp_payload_size, \
2405 { "max_udp_payload_size", prefix ".quic.parameter.max_udp_payload_size", \
2406 FT_UINT64, BASE_DEC, NULL, 0x00, \
2407 "Maximum UDP payload size that the endpoint is willing to receive", HFILL } \
2409 { & name .hf.hs_ext_quictp_parameter_initial_max_data, \
2410 { "initial_max_data", prefix ".quic.parameter.initial_max_data", \
2411 FT_UINT64, BASE_DEC, NULL, 0x00, \
2412 "Contains the initial value for the maximum amount of data that can be sent on the connection", HFILL } \
2414 { & name .hf.hs_ext_quictp_parameter_initial_max_stream_data_bidi_local, \
2415 { "initial_max_stream_data_bidi_local", prefix ".quic.parameter.initial_max_stream_data_bidi_local", \
2416 FT_UINT64, BASE_DEC, NULL, 0x00, \
2417 "Initial stream maximum data for bidirectional, locally-initiated streams", HFILL } \
2419 { & name .hf.hs_ext_quictp_parameter_initial_max_stream_data_bidi_remote, \
2420 { "initial_max_stream_data_bidi_remote", prefix ".quic.parameter.initial_max_stream_data_bidi_remote", \
2421 FT_UINT64, BASE_DEC, NULL, 0x00, \
2422 "Initial stream maximum data for bidirectional, peer-initiated streams", HFILL } \
2424 { & name .hf.hs_ext_quictp_parameter_initial_max_stream_data_uni, \
2425 { "initial_max_stream_data_uni", prefix ".quic.parameter.initial_max_stream_data_uni", \
2426 FT_UINT64, BASE_DEC, NULL, 0x00, \
2427 "Initial stream maximum data for unidirectional streams parameter", HFILL } \
2429 { & name .hf.hs_ext_quictp_parameter_initial_max_streams_bidi, \
2430 { "initial_max_streams_bidi", prefix ".quic.parameter.initial_max_streams_bidi", \
2431 FT_UINT64, BASE_DEC, NULL, 0x00, \
2432 "Initial maximum number of application-owned bidirectional streams", HFILL } \
2434 { & name .hf.hs_ext_quictp_parameter_initial_max_streams_uni, \
2435 { "initial_max_streams_uni", prefix ".quic.parameter.initial_max_streams_uni", \
2436 FT_UINT64, BASE_DEC, NULL, 0x00, \
2437 "Initial maximum number of application-owned unidirectional streams", HFILL } \
2439 { & name .hf.hs_ext_quictp_parameter_ack_delay_exponent, \
2440 { "ack_delay_exponent", prefix ".quic.parameter.ack_delay_exponent", \
2441 FT_UINT64, BASE_DEC, NULL, 0x00, \
2442 "Indicating an exponent used to decode the ACK Delay field in the ACK frame,", HFILL } \
2444 { & name .hf.hs_ext_quictp_parameter_max_ack_delay, \
2445 { "max_ack_delay", prefix ".quic.parameter.max_ack_delay", \
2446 FT_UINT64, BASE_DEC, NULL, 0x00, \
2447 "Indicating the maximum amount of time in milliseconds by which it will delay sending of acknowledgments", HFILL } \
2449 { & name .hf.hs_ext_quictp_parameter_pa_ipv4address, \
2450 { "ipv4Address", prefix ".quic.parameter.preferred_address.ipv4address", \
2451 FT_IPv4, BASE_NONE, NULL, 0x00, \
2454 { & name .hf.hs_ext_quictp_parameter_pa_ipv6address, \
2455 { "ipv6Address", prefix ".quic.parameter.preferred_address.ipv6address", \
2456 FT_IPv6, BASE_NONE, NULL, 0x00, \
2459 { & name .hf.hs_ext_quictp_parameter_pa_ipv4port, \
2460 { "ipv4Port", prefix ".quic.parameter.preferred_address.ipv4port", \
2461 FT_UINT16, BASE_DEC, NULL, 0x00, \
2464 { & name .hf.hs_ext_quictp_parameter_pa_ipv6port, \
2465 { "ipv6Port", prefix ".quic.parameter.preferred_address.ipv6port", \
2466 FT_UINT16, BASE_DEC, NULL, 0x00, \
2469 { & name .hf.hs_ext_quictp_parameter_pa_connectionid_length, \
2470 { "Length", prefix ".quic.parameter.preferred_address.connectionid.length", \
2471 FT_UINT8, BASE_DEC, NULL, 0x00, \
2472 "Length of connectionId Field", HFILL } \
2474 { & name .hf.hs_ext_quictp_parameter_pa_connectionid, \
2475 { "connectionId", prefix ".quic.parameter.preferred_address.connectionid", \
2476 FT_BYTES, BASE_NONE, NULL, 0x00, \
2479 { & name .hf.hs_ext_quictp_parameter_pa_statelessresettoken, \
2480 { "statelessResetToken", prefix ".quic.parameter.preferred_address.statelessresettoken", \
2481 FT_BYTES, BASE_NONE, NULL, 0x00, \
2484 { & name .hf.hs_ext_quictp_parameter_active_connection_id_limit, \
2485 { "Active Connection ID Limit", prefix ".quic.parameter.active_connection_id_limit", \
2486 FT_UINT64, BASE_DEC, NULL, 0x00, \
2489 { & name .hf.hs_ext_quictp_parameter_initial_source_connection_id, \
2490 { "Initial Source Connection ID", prefix ".quic.parameter.initial_source_connection_id", \
2491 FT_BYTES, BASE_NONE, NULL, 0x00, \
2494 { & name .hf.hs_ext_quictp_parameter_retry_source_connection_id, \
2495 { "Retry Source Connection ID", prefix ".quic.parameter.retry_source_connection_id", \
2496 FT_BYTES, BASE_NONE, NULL, 0x00, \
2499 { & name .hf.hs_ext_quictp_parameter_max_datagram_frame_size, \
2500 { "max_datagram_frame_size", prefix ".quic.parameter.max_datagram_frame_size", \
2501 FT_UINT64, BASE_DEC, NULL, 0x00, \
2504 { & name .hf.hs_ext_quictp_parameter_cibir_encoding_length, \
2505 { "length", prefix ".quic.parameter.cibir_encoding.length", \
2506 FT_UINT64, BASE_DEC, NULL, 0x00, \
2509 { & name .hf.hs_ext_quictp_parameter_cibir_encoding_offset, \
2510 { "offset", prefix ".quic.parameter.cibir_encoding.offset", \
2511 FT_UINT64, BASE_DEC, NULL, 0x00, \
2514 { & name .hf.hs_ext_quictp_parameter_loss_bits, \
2515 { "loss_bits", prefix ".quic.parameter.loss_bits", \
2516 FT_UINT64, BASE_DEC, NULL, 0x00, \
2519 { & name .hf.hs_ext_quictp_parameter_enable_time_stamp_v2, \
2520 { "Enable TimestampV2", prefix ".quic.parameter.enable_time_stamp_v2", \
2521 FT_UINT64, BASE_DEC|BASE_VAL64_STRING, VALS64(quic_enable_time_stamp_v2_vals), 0x00, \
2524 { & name .hf.hs_ext_quictp_parameter_min_ack_delay, \
2525 { "min_ack_delay", prefix ".quic.parameter.min_ack_delay", \
2526 FT_UINT64, BASE_DEC, NULL, 0x00, \
2529 { & name .hf.hs_ext_quictp_parameter_google_user_agent_id, \
2530 { "Google UserAgent", prefix ".quic.parameter.google.user_agent", \
2531 FT_STRING, BASE_NONE, NULL, 0x00, \
2534 { & name .hf.hs_ext_quictp_parameter_google_key_update_not_yet_supported, \
2535 { "Google Key Update not yet supported", prefix ".quic.parameter.google.key_update_not_yet_supported", \
2536 FT_NONE, BASE_NONE, NULL, 0x00, \
2539 { & name .hf.hs_ext_quictp_parameter_google_quic_version, \
2540 { "Google QUIC version", prefix ".quic.parameter.google.quic_version", \
2541 FT_UINT32, BASE_RANGE_STRING | BASE_HEX, RVALS(quic_version_vals), 0x00, \
2544 { & name .hf.hs_ext_quictp_parameter_google_initial_rtt, \
2545 { "Google Initial RTT", prefix ".quic.parameter.google.initial_rtt", \
2546 FT_UINT64, BASE_DEC, NULL, 0x00, \
2549 { & name .hf.hs_ext_quictp_parameter_google_support_handshake_done, \
2550 { "Google Support Handshake Done", prefix ".quic.parameter.google.support_handshake_done", \
2551 FT_NONE, BASE_NONE, NULL, 0x00, \
2554 { & name .hf.hs_ext_quictp_parameter_google_quic_params, \
2555 { "Google QUIC parameters", prefix ".quic.parameter.google.quic_params", \
2556 FT_BYTES, BASE_NONE, NULL, 0x00, \
2559 { & name .hf.hs_ext_quictp_parameter_google_quic_params_unknown_field, \
2560 { "Google Unknown Field", prefix ".quic.parameter.google.quic_params_unknown_field", \
2561 FT_BYTES, BASE_NONE, NULL, 0x00, \
2564 { & name .hf.hs_ext_quictp_parameter_google_connection_options, \
2565 { "Google Connection options", prefix ".quic.parameter.google.connection_options", \
2566 FT_BYTES, BASE_NONE, NULL, 0x00, \
2569 { & name .hf.hs_ext_quictp_parameter_google_supported_versions_length, \
2570 { "Google Supported Versions Length", prefix ".quic.parameter.google.supported_versions_length", \
2571 FT_UINT8, BASE_DEC, NULL, 0x00, \
2574 { & name .hf.hs_ext_quictp_parameter_google_supported_version, \
2575 { "Google Supported Version", prefix ".quic.parameter.google.supported_version", \
2576 FT_UINT32, BASE_RANGE_STRING | BASE_HEX, RVALS(quic_version_vals), 0x00, \
2579 { & name .hf.hs_ext_quictp_parameter_facebook_partial_reliability, \
2580 { "Facebook Partial Reliability", prefix ".quic.parameter.facebook.partial_reliability", \
2581 FT_UINT64, BASE_DEC, NULL, 0x00, \
2584 { & name .hf.hs_ext_quictp_parameter_chosen_version, \
2585 { "Chosen Version", prefix ".quic.parameter.vi.chosen_version", \
2586 FT_UINT32, BASE_RANGE_STRING | BASE_HEX, RVALS(quic_version_vals), 0x00, \
2589 { & name .hf.hs_ext_quictp_parameter_other_version, \
2590 { "Other Version", prefix ".quic.parameter.vi.other_version", \
2591 FT_UINT32, BASE_RANGE_STRING | BASE_HEX, RVALS(quic_version_vals), 0x00, \
2594 { & name .hf.hs_ext_quictp_parameter_enable_multipath, \
2595 { "Enable Multipath", prefix ".quic.parameter.enable_multipath", \
2596 FT_UINT64, BASE_DEC|BASE_VAL64_STRING, VALS64(quic_enable_multipath_vals), 0x00, \
2599 { & name .hf.hs_ext_quictp_parameter_initial_max_paths, \
2600 { "Initial Max Paths", prefix ".quic.parameter.initial_max_paths", \
2601 FT_UINT64, BASE_DEC, NULL, 0x00, \
2604 { & name .hf.hs_ext_quictp_parameter_initial_max_path_id, \
2605 { "Initial Max Path ID", prefix ".quic.parameter.initial_max_path_id", \
2606 FT_UINT64, BASE_DEC, NULL, 0x00, \
2609 { & name .hf.hs_ext_connection_id_length, \
2610 { "Connection ID length", prefix ".connection_id_length", \
2611 FT_UINT8, BASE_DEC, NULL, 0x00, \
2614 { & name .hf.hs_ext_connection_id, \
2615 { "Connection ID", prefix ".connection_id", \
2616 FT_BYTES, BASE_NONE, NULL, 0x00, \
2619 { & name .hf.hs_ext_trusted_ca_keys_len, \
2620 { "Trusted CA keys length", prefix ".handshake.trusted_ca.keys_length", \
2621 FT_UINT16, BASE_DEC, NULL, 0x00, \
2622 "Length of Trusted CA keys extension", HFILL } \
2624 { & name .hf.hs_ext_trusted_ca_keys_list, \
2625 { "Trusted CA keys", prefix ".handshake.trusted_ca.keys", \
2626 FT_NONE, BASE_NONE, NULL, 0x00, \
2627 "List of Trusted CA keys", HFILL } \
2629 { & name .hf.hs_ext_trusted_ca_key, \
2630 { "Trusted CA key", prefix ".handshake.trusted_ca.key", \
2631 FT_NONE, BASE_NONE, NULL, 0x0, \
2634 { & name .hf.hs_ext_trusted_ca_key_type, \
2635 { "Trusted CA key type", prefix ".handshake.trusted_ca.key_type", \
2636 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_trusted_ca_key_type), 0x00, \
2637 "Type of Trusted CA key", HFILL } \
2639 { & name .hf.hs_ext_trusted_ca_key_hash, \
2640 { "Trusted CA key hash", prefix ".handshake.trusted_ca.key_hash", \
2641 FT_BYTES, BASE_NONE, NULL, 0x00, \
2644 { & name .hf.hs_ext_trusted_ca_key_dname_len, \
2645 { "Distinguished Name Length", prefix ".handshake.trusted_ca.key_dname_len", \
2646 FT_UINT16, BASE_DEC, NULL, 0x0, \
2647 "Length of distinguished name", HFILL } \
2649 { & name .hf.hs_ext_trusted_ca_key_dname, \
2650 { "Distinguished Name", prefix ".handshake.trusted_ca.key_dname", \
2651 FT_NONE, BASE_NONE, NULL, 0x0, \
2652 "Distinguished name of a CA that the client trusts", HFILL } \
2654 { & name .hf.esni_suite, \
2655 { "Cipher Suite", prefix ".esni.suite", \
2656 FT_UINT16, BASE_HEX|BASE_EXT_STRING, &ssl_31_ciphersuite_ext, 0x0, \
2657 "Cipher suite used to encrypt the SNI", HFILL } \
2659 { & name .hf.esni_record_digest_length, \
2660 { "Record Digest Length", prefix ".esni.record_digest_length", \
2661 FT_UINT16, BASE_DEC, NULL, 0x00, \
2664 { & name .hf.esni_record_digest, \
2665 { "Record Digest", prefix ".esni.record_digest", \
2666 FT_BYTES, BASE_NONE, NULL, 0x00, \
2667 "Cryptographic hash of the ESNIKeys from which the ESNI key was obtained", HFILL } \
2669 { & name .hf.esni_encrypted_sni_length, \
2670 { "Encrypted SNI Length", prefix ".esni.encrypted_sni_length", \
2671 FT_UINT16, BASE_DEC, NULL, 0x00, \
2674 { & name .hf.esni_encrypted_sni, \
2675 { "Encrypted SNI", prefix ".esni.encrypted_sni", \
2676 FT_BYTES, BASE_NONE, NULL, 0x00, \
2677 "The encrypted ClientESNIInner structure", HFILL } \
2679 { & name .hf.esni_nonce, \
2680 { "Nonce", prefix ".esni.nonce", \
2681 FT_BYTES, BASE_NONE, NULL, 0x00, \
2682 "Contents of ClientESNIInner.nonce", HFILL } \
2684 { & name .hf.ech_echconfiglist_length, \
2685 { "ECHConfigList length", prefix ".ech.echconfiglist_length", \
2686 FT_UINT16, BASE_DEC, NULL, 0x0, \
2687 "Encrypted ClientHello (ECH) Configurations length", HFILL } \
2689 { & name .hf.ech_echconfiglist, \
2690 { "ECHConfigList", prefix ".ech.echconfiglist", \
2691 FT_NONE, BASE_NONE, NULL, 0x0, \
2692 "Encrypted ClientHello (ECH) Configurations", HFILL } \
2694 { & name .hf.ech_echconfig, \
2695 { "ECHConfig", prefix ".ech.echconfig", \
2696 FT_NONE, BASE_NONE, NULL, 0x0, \
2697 "Encrypted ClientHello (ECH) Configuration", HFILL } \
2699 { & name .hf.ech_echconfig_version, \
2700 { "Version", prefix ".ech.echconfig.version", \
2701 FT_UINT16, BASE_HEX, NULL, 0x0, \
2702 "Encrypted ClientHello: ECHConfig version", HFILL } \
2704 { & name .hf.ech_echconfig_length, \
2705 { "Length", prefix ".ech.echconfig.length", \
2706 FT_UINT16, BASE_DEC, NULL, 0x0, \
2707 "Encrypted ClientHello: ECHConfig length", HFILL } \
2709 { & name .hf.ech_echconfigcontents_maximum_name_length, \
2710 { "Maximum Name Length", prefix ".ech.echconfigcontents.maximum_name_length", \
2711 FT_UINT8, BASE_DEC, NULL, 0x0, \
2712 "The longest name of a backend server, if known", HFILL } \
2714 { & name .hf.ech_echconfigcontents_public_name_length, \
2715 { "Public Name length", prefix ".ech.echconfigcontents.public_name_length", \
2716 FT_UINT8, BASE_DEC, NULL, 0x0, \
2717 "Length of the Public Name field", HFILL } \
2719 { & name .hf.ech_echconfigcontents_public_name, \
2720 { "Public Name", prefix ".ech.echconfigcontents.public_name", \
2721 FT_STRING, BASE_NONE, NULL, 0x0, \
2722 "The DNS name of the client-facing server, i.e., the entity trusted to update the ECH configuration", HFILL } \
2724 { & name .hf.ech_echconfigcontents_extensions_length, \
2725 { "Extensions length", prefix ".ech.echconfigcontents.extensions_length", \
2726 FT_UINT16, BASE_DEC, NULL, 0x0, \
2727 "Length of the Extensions field", HFILL } \
2729 { & name .hf.ech_echconfigcontents_extensions, \
2730 { "Extensions", prefix ".ech.echconfigcontents.extensions", \
2731 FT_BYTES, BASE_NONE, NULL, 0x0, \
2732 "A list of extensions that the client must take into consideration when generating a ClientHello message", HFILL } \
2734 { & name .hf.ech_hpke_keyconfig, \
2735 { "HPKE Key Config", prefix ".ech.hpke.keyconfig", \
2736 FT_NONE, BASE_NONE, NULL, 0x0, \
2737 "HPKE Key Config", HFILL } \
2739 { & name .hf.ech_hpke_keyconfig_config_id, \
2740 { "Config Id", prefix ".ech.hpke.keyconfig.config_id", \
2741 FT_UINT8, BASE_DEC, NULL, 0x0, \
2742 "HPKE Config Id", HFILL } \
2744 { & name .hf.ech_hpke_keyconfig_kem_id, \
2745 { "KEM Id", prefix ".ech.hpke.keyconfig.kem_id", \
2746 FT_UINT16, BASE_DEC, VALS(kem_id_type_vals), 0x0, \
2747 "HPKE KEM Id", HFILL } \
2749 { & name .hf.ech_hpke_keyconfig_public_key_length, \
2750 { "Public Key length", prefix ".ech.hpke.keyconfig.public_key_length", \
2751 FT_UINT16, BASE_DEC, NULL, 0x0, \
2752 "HPKE Public Key length", HFILL } \
2754 { & name .hf.ech_hpke_keyconfig_public_key, \
2755 { "Public Key", prefix ".ech.hpke.keyconfig.public_key", \
2756 FT_BYTES, BASE_NONE, NULL, 0x0, \
2757 "HPKE Public Key", HFILL } \
2759 { & name .hf.ech_hpke_keyconfig_cipher_suites, \
2760 { "Cipher Suites", prefix ".ech.hpke.keyconfig.cipher_suites", \
2761 FT_NONE, BASE_NONE, NULL, 0x0, \
2762 "HPKE Cipher Suites", HFILL } \
2764 { & name .hf.ech_hpke_keyconfig_cipher_suites_length, \
2765 { "Cipher Suites length", prefix ".ech.hpke.keyconfig.cipher_suites_length", \
2766 FT_UINT16, BASE_DEC, NULL, 0x0, \
2767 "HPKE Cipher Suites length", HFILL } \
2769 { & name .hf.ech_hpke_keyconfig_cipher_suite, \
2770 { "Cipher Suite", prefix ".ech.hpke.keyconfig.cipher_suite", \
2771 FT_NONE, BASE_NONE, NULL, 0x0, \
2772 "HPKE Cipher Suite", HFILL } \
2774 { & name .hf.ech_hpke_keyconfig_cipher_suite_kdf_id, \
2775 { "KDF Id", prefix ".ech.hpke.keyconfig.cipher_suite.kdf_id", \
2776 FT_UINT16, BASE_DEC, VALS(kdf_id_type_vals), 0x0, \
2777 "HPKE KDF Id", HFILL } \
2779 { & name .hf.ech_hpke_keyconfig_cipher_suite_aead_id, \
2780 { "AEAD Id", prefix ".ech.hpke.keyconfig.cipher_suite.aead_id", \
2781 FT_UINT16, BASE_DEC, VALS(aead_id_type_vals), 0x0, \
2782 "HPKE AEAD Id", HFILL } \
2784 { & name .hf.ech_clienthello_type, \
2785 { "Client Hello type", prefix ".ech.client_hello_type", \
2786 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_ech_clienthello_types), 0x0, \
2787 "Client Hello type", HFILL } \
2789 { & name .hf.ech_cipher_suite, \
2790 { "Cipher Suite", prefix ".ech.cipher_suite", \
2791 FT_NONE, BASE_NONE, NULL, 0x0, \
2792 "The cipher suite used to encrypt ClientHelloInner", HFILL } \
2794 { & name .hf.ech_config_id, \
2795 { "Config Id", prefix ".ech.config_id", \
2796 FT_UINT8, BASE_DEC, NULL, 0x0, \
2797 "The ECHConfigContents.key_config.config_id for the chosen ECHConfig", HFILL } \
2799 { & name .hf.ech_enc_length, \
2800 { "Enc length", prefix ".ech.enc_length", \
2801 FT_UINT16, BASE_DEC, NULL, 0x0, \
2804 { & name .hf.ech_enc, \
2805 { "Enc", prefix ".ech.enc", \
2806 FT_BYTES, BASE_NONE, NULL, 0x0, \
2807 "The HPKE encapsulated key, used by servers to decrypt the corresponding payload field", HFILL } \
2809 { & name .hf.ech_payload_length, \
2810 { "Payload length", prefix ".ech.payload_length", \
2811 FT_UINT16, BASE_DEC, NULL, 0x0, \
2812 "Payload Length", HFILL } \
2814 { & name .hf.ech_payload, \
2815 { "Payload", prefix ".ech.payload", \
2816 FT_BYTES, BASE_NONE, NULL, 0x0, \
2817 "The serialized and encrypted ClientHelloInner structure", HFILL } \
2819 { & name .hf.ech_confirmation, \
2820 { "Confirmation", prefix ".ech.confirmation", \
2821 FT_BYTES, BASE_NONE, NULL, 0x0, \
2822 "Confirmation of ECH acceptance in a HelloRetryRequest", HFILL } \
2824 { & name .hf.ech_retry_configs, \
2825 { "Retry Configs", prefix ".ech.retry_configs", \
2826 FT_NONE, BASE_NONE, NULL, 0x0, \
2827 "ECHConfig structures for one-time use by the client in a retry connection", HFILL } \
2829 { & name .hf.ech_padding_data, \
2830 { "ECH Encrypted Padding", prefix ".ech.encrypted_padding", \
2831 FT_BYTES, BASE_NONE, NULL, 0x0, \
2832 "Must be zero", HFILL } \
2834 { & name .hf.hs_ext_alps_len, \
2835 { "ALPS Extension Length", prefix ".handshake.extensions_alps_len", \
2836 FT_UINT16, BASE_DEC, NULL, 0x0, \
2837 "Length of the ALPS Extension", HFILL } \
2839 { & name .hf.hs_ext_alps_alpn_list, \
2840 { "Supported ALPN List", prefix ".handshake.extensions_alps_alpn_list", \
2841 FT_NONE, BASE_NONE, NULL, 0x0, \
2842 "List of supported ALPN by ALPS", HFILL } \
2844 { & name .hf.hs_ext_alps_alpn_str_len, \
2845 { "Supported ALPN Length", prefix ".handshake.extensions_alps_alpn_str_len", \
2846 FT_UINT8, BASE_DEC, NULL, 0x0, \
2847 "Length of ALPN string", HFILL } \
2849 { & name .hf.hs_ext_alps_alpn_str, \
2850 { "Supported ALPN", prefix ".handshake.extensions_alps_alpn_str", \
2851 FT_STRING, BASE_NONE, NULL, 0x00, \
2852 "ALPN supported by ALPS", HFILL } \
2854 { & name .hf.hs_ext_alps_settings, \
2855 { "ALPN Opaque Settings", prefix ".handshake.extensions_alps.settings", \
2856 FT_BYTES, BASE_NONE, NULL, 0x00, \
2857 "ALPN Opaque Settings", HFILL } \
2862#define SSL_COMMON_ETT_LIST(name) \
2863 & name .ett.hs_ext, \
2864 & name .ett.hs_ext_alpn, \
2865 & name .ett.hs_ext_cert_types, \
2866 & name .ett.hs_ext_groups, \
2867 & name .ett.hs_ext_curves_point_formats, \
2868 & name .ett.hs_ext_npn, \
2869 & name .ett.hs_ext_reneg_info, \
2870 & name .ett.hs_ext_key_share, \
2871 & name .ett.hs_ext_key_share_ks, \
2872 & name .ett.hs_ext_pre_shared_key, \
2873 & name .ett.hs_ext_psk_identity, \
2874 & name .ett.hs_ext_psk_binders, \
2875 & name .ett.hs_ext_psk_binder, \
2876 & name .ett.hs_ext_server_name, \
2877 & name .ett.hs_ext_oid_filter, \
2878 & name .ett.hs_ext_quictp_parameter, \
2879 & name .ett.hs_ext_trusted_ca_keys, \
2880 & name .ett.hs_ext_trusted_ca_key, \
2881 & name .ett.hs_sig_hash_alg, \
2882 & name .ett.hs_sig_hash_algs, \
2883 & name .ett.urlhash, \
2884 & name .ett.keyex_params, \
2885 & name .ett.certificates, \
2886 & name .ett.cert_types, \
2887 & name .ett.dnames, \
2888 & name .ett.hs_random, \
2889 & name .ett.cipher_suites, \
2890 & name .ett.comp_methods, \
2891 & name .ett.session_ticket, \
2893 & name .ett.cert_status, \
2894 & name .ett.ocsp_response, \
2895 & name .ett.uncompressed_certificates, \
2896 & name .ett.hs_ext_alps, \
2897 & name .ett.ech_echconfiglist, \
2898 & name .ett.ech_echconfig, \
2899 & name .ett.ech_retry_configs, \
2900 & name .ett.ech_hpke_keyconfig, \
2901 & name .ett.ech_hpke_cipher_suites, \
2902 & name .ett.ech_hpke_cipher_suite, \
2903 & name .ett.ech_decrypt, \
2904 & name .ett.hs_ext_token_binding_key_parameters, \
2909#define SSL_COMMON_EI_LIST(name, prefix) \
2910 { & name .ei.client_version_error, \
2911 { prefix ".handshake.client_version_error", PI_PROTOCOL, PI_WARN, \
2912 "Client Hello legacy version field specifies version 1.3, not version 1.2; some servers may not be able to handle that.", EXPFILL } \
2914 { & name .ei.server_version_error, \
2915 { prefix ".handshake.server_version_error", PI_PROTOCOL, PI_WARN, \
2916 "Server Hello legacy version field specifies version 1.3, not version 1.2; some middleboxes may not be able to handle that.", EXPFILL } \
2918 { & name .ei.legacy_version, \
2919 { prefix ".handshake.legacy_version", PI_DEPRECATED, PI_CHAT, \
2920 "This legacy_version field MUST be ignored. The supported_versions extension is present and MUST be used instead.", EXPFILL } \
2922 { & name .ei.malformed_vector_length, \
2923 { prefix ".malformed.vector_length", PI_PROTOCOL, PI_WARN, \
2924 "Variable vector length is outside the permitted range", EXPFILL } \
2926 { & name .ei.malformed_buffer_too_small, \
2927 { prefix ".malformed.buffer_too_small", PI_MALFORMED, PI_ERROR, \
2928 "Malformed message, not enough data is available", EXPFILL } \
2930 { & name .ei.malformed_trailing_data, \
2931 { prefix ".malformed.trailing_data", PI_PROTOCOL, PI_WARN, \
2932 "Undecoded trailing data is present", EXPFILL } \
2934 { & name .ei.hs_ext_cert_status_undecoded, \
2935 { prefix ".handshake.status_request.undecoded", PI_UNDECODED, PI_NOTE, \
2936 "Responder ID list or Request Extensions are not implemented, contact Wireshark developers if you want this to be supported", EXPFILL } \
2938 { & name .ei.hs_ciphersuite_undecoded, \
2939 { prefix ".handshake.ciphersuite.undecoded", PI_UNDECODED, PI_NOTE, \
2940 "Ciphersuite not implemented, contact Wireshark developers if you want this to be supported", EXPFILL } \
2942 { & name .ei.hs_srv_keyex_illegal, \
2943 { prefix ".handshake.server_keyex_illegal", PI_PROTOCOL, PI_WARN, \
2944 "It is not legal to send the ServerKeyExchange message for this ciphersuite", EXPFILL } \
2946 { & name .ei.resumed, \
2947 { prefix ".resumed", PI_SEQUENCE, PI_NOTE, \
2948 "This session reuses previously negotiated keys (Session resumption)", EXPFILL } \
2950 { & name .ei.record_length_invalid, \
2951 { prefix ".record.length.invalid", PI_PROTOCOL, PI_ERROR, \
2952 "Record fragment length is too small or too large", EXPFILL } \
2954 { & name .ei.decompression_error, \
2955 { prefix ".decompression_error", PI_PROTOCOL, PI_ERROR, \
2956 "Decompression error", EXPFILL } \
2958 { & name .ei.ech_echconfig_invalid_version, \
2959 { prefix ".ech_echconfig_invalid_version", PI_PROTOCOL, PI_ERROR, \
2960 "Invalid/unknown ECHConfig version", EXPFILL } \
2962 { & name .ei.ech_accepted, \
2963 { prefix ".ech_accepted", PI_PROTOCOL, PI_NOTE, \
2964 "Calculated ECH Confirmation matches Server Random bytes, ECH was accepted", EXPFILL } \
2966 { & name .ei.ech_rejected, \
2967 { prefix ".ech_rejected", PI_PROTOCOL, PI_WARN, \
2968 "Calculated ECH Confirmation does not match Server Random bytes, ECH was rejected", EXPFILL } \
2973ssl_common_register_ssl_alpn_dissector_table(
const char *name,
2974 const char *ui_name,
const int proto);
2977ssl_common_register_dtls_alpn_dissector_table(
const char *name,
2978 const char *ui_name,
const int proto);
2983#ifdef SSL_DECRYPT_DEBUG
2985ssl_debug_printf(
const char* fmt,...) G_GNUC_PRINTF(1,2);
2987ssl_print_data(const
char* name, const
unsigned char* data,
size_t len);
2989ssl_print_string(const
char* name, const
StringInfo* data);
2991ssl_set_debug(const
char* name);
2993ssl_debug_flush(
void);
2997static inline void G_GNUC_PRINTF(1,2)
2998ssl_debug_printf(const
char* fmt _U_,...)
3001#define ssl_print_data(a, b, c)
3002#define ssl_print_string(a, b)
3003#define ssl_set_debug(name)
3004#define ssl_debug_flush()
3011 proto_tree *tree, uint32_t offset, uint32_t offset_end);
Definition packet-tls-utils.h:341
Definition packet-tls-utils.h:357
StringInfo dtls13_aad
Definition packet-tls-utils.h:368
StringInfo app_traffic_secret
Definition packet-tls-utils.h:371
uint64_t seq
Definition packet-tls-utils.h:367
Definition packet-tls-utils.c:2802
Definition packet-tls-utils.h:529
Definition packet-tls-utils.h:349
Definition packet-tls-utils.h:433
SslFlow * flow
Definition packet-tls-utils.h:439
uint64_t record_seq
Definition packet-tls-utils.h:441
unsigned data_len
Definition packet-tls-utils.h:435
uint32_t seq
Definition packet-tls-utils.h:442
int id
Definition packet-tls-utils.h:436
ContentType type
Definition packet-tls-utils.h:438
unsigned char * plain_data
Definition packet-tls-utils.h:434
Definition packet-tls-utils.h:469
Definition packet-tls-utils.h:266
Definition packet-tls-utils.h:450
unsigned reassembly_id
Definition packet-tls-utils.h:453
uint8_t type
Definition packet-tls-utils.h:455
int is_last
Definition packet-tls-utils.h:456
uint32_t offset
Definition packet-tls-utils.h:454
unsigned record_id
Definition packet-tls-utils.h:451
Definition packet_info.h:43
Definition value_string.h:289
Definition packet-tls-utils.h:571
Definition value_string.h:130
Definition value_string.h:167
Definition value_string.h:27
Definition wmem_list.c:23
Definition wmem_strbuf.h:39
Definition wmem_tree-int.h:48
Definition packet-tls-utils.h:428
Definition packet-tls-utils.h:460
Definition packet-tls-utils.h:565
Definition conversation.h:230
Definition packet-tls-utils.h:1242
Definition packet-tls-utils.h:1257
Definition prefs-int.h:27
Definition packet-tls-utils.h:866
Definition packet-tls-utils.h:579
Definition packet-tls-utils.h:1250
Definition packet-tls-utils.h:585
Definition tvbuff-int.h:35