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 17513
142#define SSL_HND_HELLO_EXT_GREASE_4A4A 19018
143#define SSL_HND_HELLO_EXT_GREASE_5A5A 23130
144#define SSL_HND_HELLO_EXT_GREASE_6A6A 27242
145#define SSL_HND_HELLO_EXT_CHANNEL_ID_OLD 30031
146#define SSL_HND_HELLO_EXT_CHANNEL_ID 30032
147#define SSL_HND_HELLO_EXT_GREASE_7A7A 31354
148#define SSL_HND_HELLO_EXT_GREASE_8A8A 35466
149#define SSL_HND_HELLO_EXT_GREASE_9A9A 39578
150#define SSL_HND_HELLO_EXT_GREASE_AAAA 43690
151#define SSL_HND_HELLO_EXT_GREASE_BABA 47802
152#define SSL_HND_HELLO_EXT_GREASE_CACA 51914
153#define SSL_HND_HELLO_EXT_GREASE_DADA 56026
154#define SSL_HND_HELLO_EXT_GREASE_EAEA 60138
155#define SSL_HND_HELLO_EXT_GREASE_FAFA 64250
156#define SSL_HND_HELLO_EXT_ECH_OUTER_EXTENSIONS 64768
157#define SSL_HND_HELLO_EXT_ENCRYPTED_CLIENT_HELLO 65037
158#define SSL_HND_HELLO_EXT_RENEGOTIATION_INFO 65281
159#define SSL_HND_HELLO_EXT_QUIC_TRANSPORT_PARAMETERS 65445
160#define SSL_HND_HELLO_EXT_ENCRYPTED_SERVER_NAME 65486
162#define SSL_HND_CERT_URL_TYPE_INDIVIDUAL_CERT 1
163#define SSL_HND_CERT_URL_TYPE_PKIPATH 2
164#define SSL_HND_CERT_STATUS_TYPE_OCSP 1
165#define SSL_HND_CERT_STATUS_TYPE_OCSP_MULTI 2
166#define SSL_HND_CERT_TYPE_RAW_PUBLIC_KEY 2
169#define SSL_HND_QUIC_TP_ORIGINAL_DESTINATION_CONNECTION_ID 0x00
170#define SSL_HND_QUIC_TP_MAX_IDLE_TIMEOUT 0x01
171#define SSL_HND_QUIC_TP_STATELESS_RESET_TOKEN 0x02
172#define SSL_HND_QUIC_TP_MAX_UDP_PAYLOAD_SIZE 0x03
173#define SSL_HND_QUIC_TP_INITIAL_MAX_DATA 0x04
174#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAM_DATA_BIDI_LOCAL 0x05
175#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAM_DATA_BIDI_REMOTE 0x06
176#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAM_DATA_UNI 0x07
177#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAMS_BIDI 0x08
178#define SSL_HND_QUIC_TP_INITIAL_MAX_STREAMS_UNI 0x09
179#define SSL_HND_QUIC_TP_ACK_DELAY_EXPONENT 0x0a
180#define SSL_HND_QUIC_TP_MAX_ACK_DELAY 0x0b
181#define SSL_HND_QUIC_TP_DISABLE_ACTIVE_MIGRATION 0x0c
182#define SSL_HND_QUIC_TP_PREFERRED_ADDRESS 0x0d
183#define SSL_HND_QUIC_TP_ACTIVE_CONNECTION_ID_LIMIT 0x0e
184#define SSL_HND_QUIC_TP_INITIAL_SOURCE_CONNECTION_ID 0x0f
185#define SSL_HND_QUIC_TP_RETRY_SOURCE_CONNECTION_ID 0x10
186#define SSL_HND_QUIC_TP_VERSION_INFORMATION 0x11
187#define SSL_HND_QUIC_TP_MAX_DATAGRAM_FRAME_SIZE 0x20
188#define SSL_HND_QUIC_TP_CIBIR_ENCODING 0x1000
189#define SSL_HND_QUIC_TP_LOSS_BITS 0x1057
190#define SSL_HND_QUIC_TP_GREASE_QUIC_BIT 0x2ab2
191#define SSL_HND_QUIC_TP_ENABLE_TIME_STAMP 0x7157
192#define SSL_HND_QUIC_TP_ENABLE_TIME_STAMP_V2 0x7158
193#define SSL_HND_QUIC_TP_MIN_ACK_DELAY_OLD 0xde1a
195#define SSL_HND_QUIC_TP_GOOGLE_USER_AGENT 0x3129
196#define SSL_HND_QUIC_TP_GOOGLE_KEY_UPDATE_NOT_YET_SUPPORTED 0x312B
197#define SSL_HND_QUIC_TP_GOOGLE_QUIC_VERSION 0x4752
198#define SSL_HND_QUIC_TP_GOOGLE_INITIAL_RTT 0x3127
199#define SSL_HND_QUIC_TP_GOOGLE_SUPPORT_HANDSHAKE_DONE 0x312A
200#define SSL_HND_QUIC_TP_GOOGLE_QUIC_PARAMS 0x4751
201#define SSL_HND_QUIC_TP_GOOGLE_CONNECTION_OPTIONS 0x3128
203#define SSL_HND_QUIC_TP_FACEBOOK_PARTIAL_RELIABILITY 0xFF00
204#define SSL_HND_QUIC_TP_MIN_ACK_DELAY_DRAFT_V1 0xFF03DE1A
205#define SSL_HND_QUIC_TP_MIN_ACK_DELAY_DRAFT05 0xff04de1a
206#define SSL_HND_QUIC_TP_MIN_ACK_DELAY 0xff04de1b
207#define SSL_HND_QUIC_TP_ENABLE_MULTIPATH_DRAFT04 0x0f739bbc1b666d04
208#define SSL_HND_QUIC_TP_ENABLE_MULTIPATH_DRAFT05 0x0f739bbc1b666d05
209#define SSL_HND_QUIC_TP_ENABLE_MULTIPATH 0x0f739bbc1b666d06
210#define SSL_HND_QUIC_TP_INITIAL_MAX_PATHS 0x0f739bbc1b666d07
211#define SSL_HND_QUIC_TP_INITIAL_MAX_PATH_ID_DRAFT09 0x0f739bbc1b666d09
212#define SSL_HND_QUIC_TP_INITIAL_MAX_PATH_ID_DRAFT11 0x0f739bbc1b666d11
213#define SSL_HND_QUIC_TP_INITIAL_MAX_PATH_ID 0x0f739bbc1b666d0c
231extern const value_string ssl_31_key_exchange_algorithm[];
233extern const value_string ssl_31_client_certificate_type[];
234extern const value_string ssl_31_public_value_encoding[];
244extern const value_string ssl_extension_ec_point_formats[];
246extern const value_string tls_hello_ext_server_name_type_vs[];
247extern const value_string tls_hello_ext_max_fragment_length[];
249extern const value_string tls_hello_ext_trusted_ca_key_type[];
251extern const value_string compress_certificate_algorithm_vals[];
254extern const val64_string quic_enable_time_stamp_v2_vals[];
256extern const value_string tls_hello_ext_ech_clienthello_types[];
260extern const value_string token_binding_key_parameter_vals[];
268#define SSL_WRITE_KEY 1
270#define SSL_VER_UNKNOWN 0
271#define SSLV2_VERSION 0x0002
273#define SSLV3_VERSION 0x300
274#define TLSV1_VERSION 0x301
275#define TLCPV1_VERSION 0x101
276#define TLSV1DOT1_VERSION 0x302
277#define TLSV1DOT2_VERSION 0x303
278#define TLSV1DOT3_VERSION 0x304
279#define DTLSV1DOT0_VERSION 0xfeff
280#define DTLSV1DOT0_OPENSSL_VERSION 0x100
281#define DTLSV1DOT2_VERSION 0xfefd
282#define DTLSV1DOT3_VERSION 0xfefc
285static inline uint8_t extract_tls13_draft_version(uint32_t version) {
286 if ((version & 0xff00) == 0x7f00) {
287 return (uint8_t) version;
293#define SSL_CLIENT_RANDOM (1<<0)
294#define SSL_SERVER_RANDOM (1<<1)
295#define SSL_CIPHER (1<<2)
296#define SSL_HAVE_SESSION_KEY (1<<3)
297#define SSL_VERSION (1<<4)
298#define SSL_MASTER_SECRET (1<<5)
299#define SSL_PRE_MASTER_SECRET (1<<6)
300#define SSL_CLIENT_EXTENDED_MASTER_SECRET (1<<7)
301#define SSL_SERVER_EXTENDED_MASTER_SECRET (1<<8)
302#define SSL_NEW_SESSION_TICKET (1<<10)
303#define SSL_ENCRYPT_THEN_MAC (1<<11)
304#define SSL_SEEN_0RTT_APPDATA (1<<12)
305#define SSL_QUIC_RECORD_LAYER (1<<13)
307#define SSL_EXTENDED_MASTER_SECRET_MASK (SSL_CLIENT_EXTENDED_MASTER_SECRET|SSL_SERVER_EXTENDED_MASTER_SECRET)
321#define IMPLICIT_NONCE_LEN 4
322#define EXPLICIT_NONCE_LEN 8
323#define TLS13_AEAD_NONCE_LENGTH 12
328 TLS_SECRET_HANDSHAKE,
332#define SSL_DEBUG_USE_STDERR "-"
334#define SSLV2_MAX_SESSION_ID_LENGTH_IN_BYTES 16
337#define TLS_MAX_RECORD_LENGTH 0x4000
344 ssl_cipher_mode_t mode;
358 unsigned char _mac_key_or_write_iv[48];
361 SSL_CIPHER_CTX sn_evp;
364 uint64_t dtls13_epoch;
372#define KEX_DHE_DSS 0x10
373#define KEX_DHE_PSK 0x11
374#define KEX_DHE_RSA 0x12
375#define KEX_DH_ANON 0x13
376#define KEX_DH_DSS 0x14
377#define KEX_DH_RSA 0x15
378#define KEX_ECDHE_ECDSA 0x16
379#define KEX_ECDHE_PSK 0x17
380#define KEX_ECDHE_RSA 0x18
381#define KEX_ECDH_ANON 0x19
382#define KEX_ECDH_ECDSA 0x1a
383#define KEX_ECDH_RSA 0x1b
387#define KEX_RSA_PSK 0x1f
388#define KEX_SRP_SHA 0x20
389#define KEX_SRP_SHA_DSS 0x21
390#define KEX_SRP_SHA_RSA 0x22
391#define KEX_IS_DH(n) ((n) >= KEX_DHE_DSS && (n) <= KEX_ECDH_RSA)
392#define KEX_TLS13 0x23
393#define KEX_ECJPAKE 0x24
395#define KEX_ECDHE_SM2 0x25
396#define KEX_ECC_SM2 0x26
397#define KEX_IBSDH_SM9 0x27
398#define KEX_IBC_SM9 0x28
402#define ENC_START 0x30
409#define ENC_AES256 0x36
410#define ENC_CAMELLIA128 0x37
411#define ENC_CAMELLIA256 0x38
413#define ENC_CHACHA20 0x3A
421#define DIG_SHA256 0x42
422#define DIG_SHA384 0x43
440 uint16_t dtls13_seq_suffix;
471 unsigned char tls13_draft_version;
472 unsigned char _client_random[32];
473 int8_t client_cert_type;
474 int8_t server_cert_type;
475 uint32_t client_ccs_frame;
476 uint32_t server_ccs_frame;
477 uint32_t first_ch_ech_frame;
480 bool hrr_ech_declined;
481 unsigned char ech_confirmation[8];
482 unsigned char hrr_ech_confirmation[8];
483 unsigned char first_ech_auth_tag[16];
493 const char *alpn_name;
495 const char *client_alpn_name;
496 uint32_t last_nontls_frame;
497 bool is_session_resumed;
500 uint32_t client_hs_reassembly_id;
501 uint32_t server_hs_reassembly_id;
512 uint8_t client_cid_len;
513 bool client_cid_len_present;
514 uint8_t server_cid_len;
515 bool server_cid_len_present;
517 uint64_t dtls13_current_epoch[2];
518 uint64_t dtls13_next_seq_num[2];
522#define SSL_MASTER_SECRET_LENGTH 48
528 unsigned char _master_secret[SSL_MASTER_SECRET_LENGTH];
529 unsigned char _session_id[256];
530 unsigned char _client_random[32];
531 unsigned char _server_random[32];
540 unsigned char _server_data_for_iv[24];
542 unsigned char _client_data_for_iv[24];
551#if defined(HAVE_LIBGNUTLS)
552 struct cert_key_id *cert_key_id;
565 uint64_t sequence_number;
579 const char *keylog_filename;
587 GHashTable *pre_master;
592 GHashTable *tls13_client_early;
593 GHashTable *tls13_client_handshake;
594 GHashTable *tls13_server_handshake;
595 GHashTable *tls13_client_appdata;
596 GHashTable *tls13_server_appdata;
597 GHashTable *tls13_early_exporter;
598 GHashTable *tls13_exporter;
599 GHashTable *ech_secret;
600 GHashTable *ech_config;
608 GHashTable *used_crandom;
611int ssl_get_keyex_alg(
int cipher);
613void quic_transport_parameter_id_base_custom(
char *result, uint64_t parameter_id);
615bool ssldecrypt_uat_fld_ip_chk_cb(
void*,
const char*,
unsigned,
const void*,
const void*,
char** err);
616bool ssldecrypt_uat_fld_port_chk_cb(
void*,
const char*,
unsigned,
const void*,
const void*,
char** err);
617bool ssldecrypt_uat_fld_fileopen_chk_cb(
void*,
const char*,
unsigned,
const void*,
const void*,
char** err);
618bool ssldecrypt_uat_fld_password_chk_cb(
void*,
const char*,
unsigned,
const void*,
const void*,
char** err);
619char* ssl_association_info(
const char* dissector_table_name,
const char* table_protocol);
622void ssl_init_cid_list(
void);
625void ssl_cleanup_cid_list(
void);
650ssl_set_server(
SslSession *session,
address *addr, port_type ptype, uint32_t port);
672WS_DLL_PUBLIC uint32_t
684WS_DLL_PUBLIC uint32_t
689ssl_find_appdata_dissector(
const char *name);
697ssl_data_set(
StringInfo* buf,
const unsigned char* src,
unsigned len);
706ssl_cipher_setiv(SSL_CIPHER_CTX *cipher,
unsigned char* iv,
int iv_len);
712ssl_find_cipher(
int num);
728 uint32_t length,
tvbuff_t *tvb, uint32_t offset,
731 GHashTable *key_hash,
761 bool ignore_mac_failed,
762 const unsigned char *in, uint16_t inl,
const unsigned char *cid, uint8_t cidl,
780tls_add_packet_info(
int proto,
packet_info *pinfo, uint8_t curr_layer_num_ssl);
784ssl_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);
804tls_get_master_key_map(
bool load_secrets);
812ssl_load_keyfile(
const char *ssl_keylog_filename, FILE **keylog_file,
836 bool is_from_server, TLSRecordType type);
840 bool is_from_server, TLSRecordType type);
846ssl_is_valid_content_type(uint8_t type);
849ssl_is_valid_handshake_type(uint8_t hs_type,
bool is_dtls);
852tls_scan_server_hello(
tvbuff_t *tvb, uint32_t offset, uint32_t offset_end,
853 uint16_t *server_version,
bool *is_hrr);
857 uint8_t content_type, uint8_t handshake_type,
858 bool is_dtls, uint16_t version);
866 int change_cipher_spec;
869 int hs_ext_alpn_list;
871 int hs_ext_alpn_str_len;
872 int hs_ext_cert_url_item;
873 int hs_ext_cert_url_padding;
874 int hs_ext_cert_url_sha1;
875 int hs_ext_cert_url_type;
876 int hs_ext_cert_url_url;
877 int hs_ext_cert_url_url_hash_list_len;
878 int hs_ext_cert_url_url_len;
879 int hs_ext_cert_status_type;
880 int hs_ext_cert_status_request_len;
881 int hs_ext_cert_status_responder_id_list_len;
882 int hs_ext_cert_status_request_extensions_len;
883 int hs_ext_cert_status_request_list_len;
884 int hs_ocsp_response_list_len;
885 int hs_ocsp_response_len;
886 int hs_ext_cert_type;
887 int hs_ext_cert_types;
888 int hs_ext_cert_types_len;
890 int hs_ext_ec_point_format;
891 int hs_ext_ec_point_formats;
892 int hs_ext_ec_point_formats_len;
894 int hs_ext_srp_username;
895 int hs_ext_supported_group;
896 int hs_ext_supported_groups;
897 int hs_ext_supported_groups_len;
898 int hs_ext_ech_outer_ext;
899 int hs_ext_ech_outer_ext_len;
901 int hs_ech_confirm_compute;
902 int hs_ext_heartbeat_mode;
905 int hs_ext_npn_str_len;
906 int hs_ext_reneg_info_len;
907 int hs_ext_reneg_info;
908 int hs_ext_key_share_client_length;
909 int hs_ext_key_share_group;
910 int hs_ext_key_share_key_exchange_length;
911 int hs_ext_key_share_key_exchange;
912 int hs_ext_key_share_selected_group;
913 int hs_ext_psk_identities_length;
914 int hs_ext_psk_identity_identity_length;
915 int hs_ext_psk_identity_identity;
916 int hs_ext_psk_identity_obfuscated_ticket_age;
917 int hs_ext_psk_binders_length;
918 int hs_ext_psk_binders;
919 int hs_ext_psk_identity_selected;
920 int hs_ext_session_ticket;
921 int hs_ext_supported_versions_len;
922 int hs_ext_supported_version;
923 int hs_ext_cookie_len;
925 int hs_ext_server_name;
926 int hs_ext_server_name_len;
927 int hs_ext_server_name_list_len;
928 int hs_ext_server_name_type;
929 int hs_ext_max_fragment_length;
930 int hs_ext_padding_data;
932 int hs_ext_connection_id_length;
933 int hs_ext_connection_id;
934 int hs_ext_trusted_ca_keys_len;
935 int hs_ext_trusted_ca_keys_list;
936 int hs_ext_trusted_ca_key;
937 int hs_ext_trusted_ca_key_type;
938 int hs_ext_trusted_ca_key_hash;
939 int hs_ext_trusted_ca_key_dname_len;
940 int hs_ext_trusted_ca_key_dname;
942 int hs_sig_hash_alg_len;
943 int hs_sig_hash_algs;
944 int hs_sig_hash_hash;
946 int hs_client_keyex_epms_len;
947 int hs_client_keyex_epms;
948 int hs_server_keyex_modulus_len;
949 int hs_server_keyex_exponent_len;
950 int hs_server_keyex_sig_len;
951 int hs_server_keyex_p_len;
952 int hs_server_keyex_g_len;
953 int hs_server_keyex_ys_len;
954 int hs_client_keyex_yc_len;
955 int hs_client_keyex_point_len;
956 int hs_server_keyex_point_len;
957 int hs_server_keyex_p;
958 int hs_server_keyex_g;
959 int hs_server_keyex_curve_type;
960 int hs_server_keyex_named_curve;
961 int hs_server_keyex_ys;
962 int hs_client_keyex_yc;
963 int hs_server_keyex_point;
964 int hs_client_keyex_point;
965 int hs_server_keyex_xs_len;
966 int hs_client_keyex_xc_len;
967 int hs_server_keyex_xs;
968 int hs_client_keyex_xc;
969 int hs_server_keyex_vs_len;
970 int hs_client_keyex_vc_len;
971 int hs_server_keyex_vs;
972 int hs_client_keyex_vc;
973 int hs_server_keyex_rs_len;
974 int hs_client_keyex_rc_len;
975 int hs_server_keyex_rs;
976 int hs_client_keyex_rc;
977 int hs_server_keyex_modulus;
978 int hs_server_keyex_exponent;
979 int hs_server_keyex_sig;
980 int hs_server_keyex_hint_len;
981 int hs_server_keyex_hint;
982 int hs_client_keyex_identity_len;
983 int hs_client_keyex_identity;
984 int hs_certificates_len;
986 int hs_certificate_len;
988 int hs_cert_types_count;
993 int hs_dnames_truncated;
1000 int hs_session_id_len;
1001 int hs_client_version;
1002 int hs_server_version;
1003 int hs_cipher_suites_len;
1004 int hs_cipher_suites;
1005 int hs_cipher_suite;
1006 int hs_comp_methods_len;
1007 int hs_comp_methods;
1009 int hs_session_ticket_lifetime_hint;
1010 int hs_session_ticket_age_add;
1011 int hs_session_ticket_nonce_len;
1012 int hs_session_ticket_nonce;
1013 int hs_session_ticket_len;
1014 int hs_session_ticket;
1016 int hs_client_cert_vrfy_sig_len;
1017 int hs_client_cert_vrfy_sig;
1026 int hs_ext_psk_ke_modes_length;
1027 int hs_ext_psk_ke_mode;
1028 int hs_certificate_request_context_length;
1029 int hs_certificate_request_context;
1030 int hs_key_update_request_update;
1031 int sct_scts_length;
1033 int sct_sct_version;
1035 int sct_sct_timestamp;
1036 int sct_sct_extensions_length;
1037 int sct_sct_extensions;
1038 int sct_sct_signature;
1039 int sct_sct_signature_length;
1040 int hs_ext_max_early_data_size;
1041 int hs_ext_oid_filters_length;
1042 int hs_ext_oid_filters_oid_length;
1043 int hs_ext_oid_filters_oid;
1044 int hs_ext_oid_filters_values_length;
1045 int hs_cred_valid_time;
1047 int hs_cred_pubkey_len;
1048 int hs_cred_signature;
1049 int hs_cred_signature_len;
1052 int hs_ext_compress_certificate_algorithms_length;
1053 int hs_ext_compress_certificate_algorithm;
1054 int hs_ext_compress_certificate_uncompressed_length;
1055 int hs_ext_compress_certificate_compressed_certificate_message_length;
1056 int hs_ext_compress_certificate_compressed_certificate_message;
1059 int hs_ext_token_binding_version_major;
1060 int hs_ext_token_binding_version_minor;
1061 int hs_ext_token_binding_key_parameters;
1062 int hs_ext_token_binding_key_parameters_length;
1063 int hs_ext_token_binding_key_parameter;
1065 int hs_ext_record_size_limit;
1068 int hs_ext_quictp_len;
1069 int hs_ext_quictp_parameter;
1070 int hs_ext_quictp_parameter_type;
1071 int hs_ext_quictp_parameter_len;
1072 int hs_ext_quictp_parameter_len_old;
1073 int hs_ext_quictp_parameter_value;
1074 int hs_ext_quictp_parameter_original_destination_connection_id;
1075 int hs_ext_quictp_parameter_max_idle_timeout;
1076 int hs_ext_quictp_parameter_stateless_reset_token;
1077 int hs_ext_quictp_parameter_initial_max_data;
1078 int hs_ext_quictp_parameter_initial_max_stream_data_bidi_local;
1079 int hs_ext_quictp_parameter_initial_max_stream_data_bidi_remote;
1080 int hs_ext_quictp_parameter_initial_max_stream_data_uni;
1081 int hs_ext_quictp_parameter_initial_max_streams_bidi;
1082 int hs_ext_quictp_parameter_initial_max_streams_uni;
1083 int hs_ext_quictp_parameter_ack_delay_exponent;
1084 int hs_ext_quictp_parameter_max_ack_delay;
1085 int hs_ext_quictp_parameter_max_udp_payload_size;
1086 int hs_ext_quictp_parameter_pa_ipv4address;
1087 int hs_ext_quictp_parameter_pa_ipv6address;
1088 int hs_ext_quictp_parameter_pa_ipv4port;
1089 int hs_ext_quictp_parameter_pa_ipv6port;
1090 int hs_ext_quictp_parameter_pa_connectionid_length;
1091 int hs_ext_quictp_parameter_pa_connectionid;
1092 int hs_ext_quictp_parameter_pa_statelessresettoken;
1093 int hs_ext_quictp_parameter_active_connection_id_limit;
1094 int hs_ext_quictp_parameter_initial_source_connection_id;
1095 int hs_ext_quictp_parameter_retry_source_connection_id;
1096 int hs_ext_quictp_parameter_max_datagram_frame_size;
1097 int hs_ext_quictp_parameter_cibir_encoding_length;
1098 int hs_ext_quictp_parameter_cibir_encoding_offset;
1099 int hs_ext_quictp_parameter_loss_bits;
1100 int hs_ext_quictp_parameter_enable_time_stamp_v2;
1101 int hs_ext_quictp_parameter_min_ack_delay;
1102 int hs_ext_quictp_parameter_google_user_agent_id;
1103 int hs_ext_quictp_parameter_google_key_update_not_yet_supported;
1104 int hs_ext_quictp_parameter_google_quic_version;
1105 int hs_ext_quictp_parameter_google_initial_rtt;
1106 int hs_ext_quictp_parameter_google_support_handshake_done;
1107 int hs_ext_quictp_parameter_google_quic_params;
1108 int hs_ext_quictp_parameter_google_quic_params_unknown_field;
1109 int hs_ext_quictp_parameter_google_connection_options;
1110 int hs_ext_quictp_parameter_google_supported_versions_length;
1111 int hs_ext_quictp_parameter_google_supported_version;
1112 int hs_ext_quictp_parameter_facebook_partial_reliability;
1113 int hs_ext_quictp_parameter_chosen_version;
1114 int hs_ext_quictp_parameter_other_version;
1115 int hs_ext_quictp_parameter_enable_multipath;
1116 int hs_ext_quictp_parameter_initial_max_paths;
1117 int hs_ext_quictp_parameter_initial_max_path_id;
1120 int esni_record_digest_length;
1121 int esni_record_digest;
1122 int esni_encrypted_sni_length;
1123 int esni_encrypted_sni;
1126 int ech_echconfiglist_length;
1127 int ech_echconfiglist;
1129 int ech_echconfig_version;
1130 int ech_echconfig_length;
1131 int ech_echconfigcontents_maximum_name_length;
1132 int ech_echconfigcontents_public_name_length;
1133 int ech_echconfigcontents_public_name;
1134 int ech_echconfigcontents_extensions_length;
1135 int ech_echconfigcontents_extensions;
1136 int ech_hpke_keyconfig;
1137 int ech_hpke_keyconfig_config_id;
1138 int ech_hpke_keyconfig_kem_id;
1139 int ech_hpke_keyconfig_public_key_length;
1140 int ech_hpke_keyconfig_public_key;
1141 int ech_hpke_keyconfig_cipher_suites;
1142 int ech_hpke_keyconfig_cipher_suites_length;
1143 int ech_hpke_keyconfig_cipher_suite;
1144 int ech_hpke_keyconfig_cipher_suite_kdf_id;
1145 int ech_hpke_keyconfig_cipher_suite_aead_id;
1146 int ech_clienthello_type;
1147 int ech_cipher_suite;
1151 int ech_payload_length;
1153 int ech_confirmation;
1154 int ech_retry_configs;
1155 int ech_padding_data;
1157 int hs_ext_alps_len;
1158 int hs_ext_alps_alpn_list;
1159 int hs_ext_alps_alpn_str;
1160 int hs_ext_alps_alpn_str_len;
1161 int hs_ext_alps_settings;
1168 int hs_ext_cert_types;
1170 int hs_ext_curves_point_formats;
1172 int hs_ext_reneg_info;
1173 int hs_ext_key_share;
1174 int hs_ext_key_share_ks;
1175 int hs_ext_pre_shared_key;
1176 int hs_ext_psk_identity;
1177 int hs_ext_server_name;
1178 int hs_ext_oid_filter;
1179 int hs_ext_quictp_parameter;
1180 int hs_ext_trusted_ca_keys;
1181 int hs_ext_trusted_ca_key;
1182 int hs_sig_hash_alg;
1183 int hs_sig_hash_algs;
1196 int uncompressed_certificates;
1198 int ech_echconfiglist;
1200 int ech_retry_configs;
1201 int ech_hpke_keyconfig;
1202 int ech_hpke_cipher_suites;
1203 int ech_hpke_cipher_suite;
1205 int hs_ext_token_binding_key_parameters;
1235 int hf_dtls_handshake_cookie_len;
1236 int hf_dtls_handshake_cookie;
1250 uint32_t max_version;
1251 bool server_name_present;
1252 int num_cipher_suites;
1263#define G_MAXUINT24 ((1U << 24) - 1)
1279 unsigned offset,
unsigned offset_end, uint32_t *ret_length,
1280 int hf_length, uint32_t min_value, uint32_t max_value);
1292 unsigned offset,
unsigned offset_end);
1298 ContentType content_type,
1299 unsigned record_length,
proto_item *length_pi,
1300 uint16_t version,
tvbuff_t *decrypted_tvb);
1306 bool is_from_server,
1318 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1320 bool is_dtls,
bool is_hrr);
1324 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1330 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1336 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1338 bool is_dtls, GHashTable *session_hash);
1342 uint32_t offset, uint32_t offset_end,
packet_info *pinfo,
1344 bool is_from_server,
bool is_dtls);
1348 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1353 proto_tree *tree, uint32_t offset, uint32_t offset_end, uint16_t version);
1357 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1365 proto_tree *tree, uint32_t offset, uint32_t offset_end);
1369 proto_tree *tree, uint32_t offset, uint32_t length,
1374 proto_tree *tree, uint32_t offset, uint32_t offset_end,
1383 uint32_t offset, uint32_t offset_end, uint16_t version);
1386tls13_hkdf_expand_label_context(
int md,
const StringInfo *secret,
1387 const char *label_prefix,
const char *label,
1388 const uint8_t *context, uint8_t context_length,
1389 uint16_t out_len,
unsigned char **out);
1392tls13_hkdf_expand_label(
int md,
const StringInfo *secret,
1393 const char *label_prefix,
const char *label,
1394 uint16_t out_len,
unsigned char **out);
1398 uint32_t offset, uint32_t offset_end,
packet_info *pinfo,
1400 bool is_from_server _U_,
bool is_dtls _U_);
1402#define SSL_COMMON_LIST_T(name) \
1403ssl_common_dissect_t name;
1407#define SSL_COMMON_HF_LIST(name, prefix) \
1408 { & name .hf.change_cipher_spec, \
1409 { "Change Cipher Spec Message", prefix ".change_cipher_spec", \
1410 FT_NONE, BASE_NONE, NULL, 0x0, \
1411 "Signals a change in cipher specifications", HFILL } \
1413 { & name .hf.hs_exts_len, \
1414 { "Extensions Length", prefix ".handshake.extensions_length", \
1415 FT_UINT16, BASE_DEC, NULL, 0x0, \
1416 "Length of hello extensions", HFILL } \
1418 { & name .hf.hs_ext_type, \
1419 { "Type", prefix ".handshake.extension.type", \
1420 FT_UINT16, BASE_DEC, VALS(tls_hello_extension_types), 0x0, \
1421 "Hello extension type", HFILL } \
1423 { & name .hf.hs_ext_len, \
1424 { "Length", prefix ".handshake.extension.len", \
1425 FT_UINT16, BASE_DEC, NULL, 0x0, \
1426 "Length of a hello extension", HFILL } \
1428 { & name .hf.hs_ext_data, \
1429 { "Data", prefix ".handshake.extension.data", \
1430 FT_BYTES, BASE_NONE, NULL, 0x0, \
1431 "Hello Extension data", HFILL } \
1433 { & name .hf.hs_ext_ech_outer_ext_len, \
1434 { "Outer Extensions List Length", prefix ".handshake.extensions_ech_outer_extensions_length", \
1435 FT_UINT8, BASE_DEC, NULL, 0x0, \
1438 { & name .hf.hs_ext_ech_outer_ext, \
1439 { "Outer Extensions List", prefix ".handshake.extensions_ech_outer_extensions", \
1440 FT_NONE, BASE_NONE, NULL, 0x0, \
1441 "List of extensions derived from Outer Client Hello", HFILL } \
1443 { & name .hf.hs_ech_confirm, \
1444 { "ECH Confirmation Bytes", prefix ".handshake.ech_confirm", \
1445 FT_BYTES, BASE_NONE, NULL, 0x0, \
1448 { & name .hf.hs_ech_confirm_compute, \
1449 { "Computed ECH Confirmation Bytes", prefix ".handshake.ech_confirm_compute", \
1450 FT_BYTES, BASE_NONE, NULL, 0x0, \
1453 { & name .hf.hs_ext_supported_groups_len, \
1454 { "Supported Groups List Length", prefix ".handshake.extensions_supported_groups_length", \
1455 FT_UINT16, BASE_DEC, NULL, 0x0, \
1458 { & name .hf.hs_ext_supported_groups, \
1459 { "Supported Groups List", prefix ".handshake.extensions_supported_groups", \
1460 FT_NONE, BASE_NONE, NULL, 0x0, \
1461 "List of supported groups (formerly Supported Elliptic Curves)", HFILL } \
1463 { & name .hf.hs_ext_supported_group, \
1464 { "Supported Group", prefix ".handshake.extensions_supported_group", \
1465 FT_UINT16, BASE_HEX, VALS(ssl_extension_curves), 0x0, \
1468 { & name .hf.hs_ext_ec_point_formats_len, \
1469 { "EC point formats Length", prefix ".handshake.extensions_ec_point_formats_length", \
1470 FT_UINT8, BASE_DEC, NULL, 0x0, \
1471 "Length of elliptic curves point formats field", HFILL } \
1473 { & name .hf.hs_ext_ec_point_formats, \
1474 { "EC point formats", prefix ".handshake.extensions_ec_point_formats", \
1475 FT_NONE, BASE_NONE, NULL, 0x0, \
1476 "List of elliptic curves point format", HFILL } \
1478 { & name .hf.hs_ext_ec_point_format, \
1479 { "EC point format", prefix ".handshake.extensions_ec_point_format", \
1480 FT_UINT8, BASE_DEC, VALS(ssl_extension_ec_point_formats), 0x0, \
1481 "Elliptic curves point format", HFILL } \
1483 { & name .hf.hs_ext_srp_len, \
1484 { "SRP username length", prefix ".handshake.extensions_srp_len", \
1485 FT_UINT8, BASE_DEC, NULL, 0x0, \
1486 "Length of Secure Remote Password username field", HFILL } \
1488 { & name .hf.hs_ext_srp_username, \
1489 { "SRP username", prefix ".handshake.extensions_srp_username", \
1490 FT_STRING, BASE_NONE, NULL, 0x0, \
1491 "Secure Remote Password username", HFILL } \
1493 { & name .hf.hs_ext_alpn_len, \
1494 { "ALPN Extension Length", prefix ".handshake.extensions_alpn_len", \
1495 FT_UINT16, BASE_DEC, NULL, 0x0, \
1496 "Length of the ALPN Extension", HFILL } \
1498 { & name .hf.hs_ext_alpn_list, \
1499 { "ALPN Protocol", prefix ".handshake.extensions_alpn_list", \
1500 FT_NONE, BASE_NONE, NULL, 0x0, \
1503 { & name .hf.hs_ext_alpn_str_len, \
1504 { "ALPN string length", prefix ".handshake.extensions_alpn_str_len", \
1505 FT_UINT8, BASE_DEC, NULL, 0x0, \
1506 "Length of ALPN string", HFILL } \
1508 { & name .hf.hs_ext_alpn_str, \
1509 { "ALPN Next Protocol", prefix ".handshake.extensions_alpn_str", \
1510 FT_STRING, BASE_NONE, NULL, 0x00, \
1513 { & name .hf.hs_ext_npn_str_len, \
1514 { "Protocol string length", prefix ".handshake.extensions_npn_str_len", \
1515 FT_UINT8, BASE_DEC, NULL, 0x0, \
1516 "Length of next protocol string", HFILL } \
1518 { & name .hf.hs_ext_npn_str, \
1519 { "Next Protocol", prefix ".handshake.extensions_npn", \
1520 FT_STRING, BASE_NONE, NULL, 0x0, \
1523 { & name .hf.hs_ext_reneg_info_len, \
1524 { "Renegotiation info extension length", prefix ".handshake.extensions_reneg_info_len", \
1525 FT_UINT8, BASE_DEC, NULL, 0x0, \
1528 { & name .hf.hs_ext_reneg_info, \
1529 { "Renegotiation info", prefix ".handshake.extensions_reneg_info",\
1530 FT_BYTES, BASE_NONE, NULL, 0x0, \
1533 { & name .hf.hs_ext_key_share_client_length, \
1534 { "Client Key Share Length", prefix ".handshake.extensions_key_share_client_length", \
1535 FT_UINT16, BASE_DEC, NULL, 0x00, \
1538 { & name .hf.hs_ext_key_share_group, \
1539 { "Group", prefix ".handshake.extensions_key_share_group", \
1540 FT_UINT16, BASE_DEC, VALS(ssl_extension_curves), 0x00, \
1543 { & name .hf.hs_ext_key_share_key_exchange_length, \
1544 { "Key Exchange Length", prefix ".handshake.extensions_key_share_key_exchange_length", \
1545 FT_UINT16, BASE_DEC, NULL, 0x00, \
1548 { & name .hf.hs_ext_key_share_key_exchange, \
1549 { "Key Exchange", prefix ".handshake.extensions_key_share_key_exchange", \
1550 FT_BYTES, BASE_NONE, NULL, 0x0, \
1553 { & name .hf.hs_ext_key_share_selected_group, \
1554 { "Selected Group", prefix ".handshake.extensions_key_share_selected_group", \
1555 FT_UINT16, BASE_DEC, VALS(ssl_extension_curves), 0x00, \
1558 { & name .hf.hs_ext_psk_identities_length, \
1559 { "Identities Length", prefix ".handshake.extensions.psk.identities.length", \
1560 FT_UINT16, BASE_DEC, NULL, 0x0, \
1563 { & name .hf.hs_ext_psk_identity_identity_length, \
1564 { "Identity Length", prefix ".handshake.extensions.psk.identity.identity_length", \
1565 FT_UINT16, BASE_DEC, NULL, 0x0, \
1568 { & name .hf.hs_ext_psk_identity_identity, \
1569 { "Identity", prefix ".handshake.extensions.psk.identity.identity", \
1570 FT_BYTES, BASE_NONE, NULL, 0x0, \
1573 { & name .hf.hs_ext_psk_identity_obfuscated_ticket_age, \
1574 { "Obfuscated Ticket Age", prefix ".handshake.extensions.psk.identity.obfuscated_ticket_age", \
1575 FT_UINT32, BASE_DEC, NULL, 0x0, \
1578 { & name .hf.hs_ext_psk_binders_length, \
1579 { "PSK Binders length", prefix ".handshake.extensions.psk.binders_len", \
1580 FT_UINT16, BASE_DEC, NULL, 0x0, \
1583 { & name .hf.hs_ext_psk_binders, \
1584 { "PSK Binders", prefix ".handshake.extensions.psk.binders", \
1585 FT_NONE, BASE_NONE, NULL, 0x0, \
1588 { & name .hf.hs_ext_psk_identity_selected, \
1589 { "Selected Identity", prefix ".handshake.extensions.psk.identity.selected", \
1590 FT_UINT16, BASE_DEC, NULL, 0x0, \
1593 { & name .hf.hs_ext_session_ticket, \
1594 { "Session Ticket", prefix ".handshake.extensions.session_ticket", \
1595 FT_BYTES, BASE_NONE, NULL, 0x0, \
1598 { & name .hf.hs_ext_supported_versions_len, \
1599 { "Supported Versions length", prefix ".handshake.extensions.supported_versions_len", \
1600 FT_UINT8, BASE_DEC, NULL, 0x0, \
1603 { & name .hf.hs_ext_supported_version, \
1604 { "Supported Version", prefix ".handshake.extensions.supported_version", \
1605 FT_UINT16, BASE_HEX, VALS(ssl_versions), 0x0, \
1608 { & name .hf.hs_ext_cookie_len, \
1609 { "Cookie length", prefix ".handshake.extensions.cookie_len", \
1610 FT_UINT16, BASE_DEC, NULL, 0x0, \
1613 { & name .hf.hs_ext_cookie, \
1614 { "Cookie", prefix ".handshake.extensions.cookie", \
1615 FT_BYTES, BASE_NONE, NULL, 0x0, \
1618 { & name .hf.hs_ext_server_name_list_len, \
1619 { "Server Name list length", prefix ".handshake.extensions_server_name_list_len", \
1620 FT_UINT16, BASE_DEC, NULL, 0x0, \
1621 "Length of server name list", HFILL } \
1623 { & name .hf.hs_ext_server_name_len, \
1624 { "Server Name length", prefix ".handshake.extensions_server_name_len", \
1625 FT_UINT16, BASE_DEC, NULL, 0x0, \
1626 "Length of server name string", HFILL } \
1628 { & name .hf.hs_ext_server_name_type, \
1629 { "Server Name Type", prefix ".handshake.extensions_server_name_type", \
1630 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_server_name_type_vs), 0x0, \
1633 { & name .hf.hs_ext_server_name, \
1634 { "Server Name", prefix ".handshake.extensions_server_name", \
1635 FT_STRING, BASE_NONE, NULL, 0x0, \
1638 { & name .hf.hs_ext_max_fragment_length, \
1639 { "Maximum Fragment Length", prefix ".handshake.max_fragment_length", \
1640 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_max_fragment_length), 0x00, \
1641 "Maximum fragment length that an endpoint is willing to receive", HFILL } \
1643 { & name .hf.hs_ext_padding_data, \
1644 { "Padding Data", prefix ".handshake.extensions_padding_data", \
1645 FT_BYTES, BASE_NONE, NULL, 0x0, \
1646 "Must be zero", HFILL } \
1648 { & name .hf.hs_ext_cert_url_type, \
1649 { "Certificate Chain Type", prefix ".handshake.cert_url_type", \
1650 FT_UINT8, BASE_DEC, VALS(tls_cert_chain_type), 0x0, \
1651 "Certificate Chain Type for Client Certificate URL", HFILL } \
1653 { & name .hf.hs_ext_cert_url_url_hash_list_len, \
1654 { "URL and Hash list Length", prefix ".handshake.cert_url.url_hash_len", \
1655 FT_UINT16, BASE_DEC, NULL, 0x0, \
1658 { & name .hf.hs_ext_cert_url_item, \
1659 { "URL and Hash", prefix ".handshake.cert_url.url_hash", \
1660 FT_NONE, BASE_NONE, NULL, 0x0, \
1663 { & name .hf.hs_ext_cert_url_url_len, \
1664 { "URL Length", prefix ".handshake.cert_url.url_len", \
1665 FT_UINT16, BASE_DEC, NULL, 0x0, \
1668 { & name .hf.hs_ext_cert_type, \
1669 { "Certificate Type", prefix ".handshake.cert_type.type", \
1670 FT_UINT8, BASE_HEX, VALS(tls_certificate_type), 0x0, \
1673 { & name .hf.hs_ext_cert_types, \
1674 { "Certificate Type List", prefix ".handshake.cert_type.types", \
1675 FT_NONE, BASE_NONE, NULL, 0x0, \
1678 { & name .hf.hs_ext_cert_types_len, \
1679 { "Certificate Type List Length", prefix ".handshake.cert_type.types_len", \
1680 FT_UINT8, BASE_DEC, NULL, 0x0, \
1683 { & name .hf.hs_ext_cert_url_url, \
1684 { "URL", prefix ".handshake.cert_url.url", \
1685 FT_STRING, BASE_NONE, NULL, 0x0, \
1686 "URL used to fetch the certificate(s)", HFILL } \
1688 { & name .hf.hs_ext_cert_url_padding, \
1689 { "Padding", prefix ".handshake.cert_url.padding", \
1690 FT_NONE, BASE_NONE, NULL, 0x0, \
1691 "Padding that MUST be 0x01 for backwards compatibility", HFILL } \
1693 { & name .hf.hs_ext_cert_url_sha1, \
1694 { "SHA1 Hash", prefix ".handshake.cert_url.sha1", \
1695 FT_BYTES, BASE_NONE, NULL, 0x0, \
1696 "SHA1 Hash of the certificate", HFILL } \
1698 { & name .hf.hs_ext_cert_status_type, \
1699 { "Certificate Status Type", prefix ".handshake.extensions_status_request_type", \
1700 FT_UINT8, BASE_DEC, VALS(tls_cert_status_type), 0x0, \
1703 { & name .hf.hs_ext_cert_status_request_len, \
1704 { "Certificate Status Length", prefix ".handshake.extensions_status_request_len", \
1705 FT_UINT16, BASE_DEC, NULL, 0x0, \
1708 { & name .hf.hs_ext_cert_status_responder_id_list_len, \
1709 { "Responder ID list Length", prefix ".handshake.extensions_status_request_responder_ids_len", \
1710 FT_UINT16, BASE_DEC, NULL, 0x0, \
1713 { & name .hf.hs_ext_cert_status_request_extensions_len, \
1714 { "Request Extensions Length", prefix ".handshake.extensions_status_request_exts_len", \
1715 FT_UINT16, BASE_DEC, NULL, 0x0, \
1718 { & name .hf.hs_ext_cert_status_request_list_len, \
1719 { "Certificate Status List Length", prefix ".handshake.extensions_status_request_list_len", \
1720 FT_UINT16, BASE_DEC, NULL, 0x0, \
1721 "CertificateStatusRequestItemV2 list length", HFILL } \
1723 { & name .hf.hs_ocsp_response_list_len, \
1724 { "OCSP Response List Length", prefix ".handshake.ocsp_response_list_len", \
1725 FT_UINT24, BASE_DEC, NULL, 0x0, \
1726 "OCSPResponseList length", HFILL } \
1728 { & name .hf.hs_ocsp_response_len, \
1729 { "OCSP Response Length", prefix ".handshake.ocsp_response_len", \
1730 FT_UINT24, BASE_DEC, NULL, 0x0, \
1733 { & name .hf.hs_sig_hash_alg_len, \
1734 { "Signature Hash Algorithms Length", prefix ".handshake.sig_hash_alg_len", \
1735 FT_UINT16, BASE_DEC, NULL, 0x0, \
1736 "Length of Signature Hash Algorithms", HFILL } \
1738 { & name .hf.hs_sig_hash_algs, \
1739 { "Signature Algorithms", prefix ".handshake.sig_hash_algs", \
1740 FT_NONE, BASE_NONE, NULL, 0x0, \
1741 "List of supported Signature Algorithms", HFILL } \
1743 { & name .hf.hs_sig_hash_alg, \
1744 { "Signature Algorithm", prefix ".handshake.sig_hash_alg", \
1745 FT_UINT16, BASE_HEX, VALS(tls13_signature_algorithm), 0x0, \
1748 { & name .hf.hs_sig_hash_hash, \
1749 { "Signature Hash Algorithm Hash", prefix ".handshake.sig_hash_hash", \
1750 FT_UINT8, BASE_DEC, VALS(tls_hash_algorithm), 0x0, \
1751 "Hash algorithm (TLS 1.2)", HFILL } \
1753 { & name .hf.hs_sig_hash_sig, \
1754 { "Signature Hash Algorithm Signature", prefix ".handshake.sig_hash_sig", \
1755 FT_UINT8, BASE_DEC, VALS(tls_signature_algorithm), 0x0, \
1756 "Signature algorithm (TLS 1.2)", HFILL } \
1758 { & name .hf.hs_client_keyex_epms_len, \
1759 { "Encrypted PreMaster length", prefix ".handshake.epms_len", \
1760 FT_UINT16, BASE_DEC, NULL, 0x0, \
1761 "Length of encrypted PreMaster secret", HFILL } \
1763 { & name .hf.hs_client_keyex_epms, \
1764 { "Encrypted PreMaster", prefix ".handshake.epms", \
1765 FT_BYTES, BASE_NONE, NULL, 0x0, \
1766 "Encrypted PreMaster secret", HFILL } \
1768 { & name .hf.hs_server_keyex_modulus_len, \
1769 { "Modulus Length", prefix ".handshake.modulus_len", \
1770 FT_UINT16, BASE_DEC, NULL, 0x0, \
1771 "Length of RSA-EXPORT modulus", HFILL } \
1773 { & name .hf.hs_server_keyex_exponent_len, \
1774 { "Exponent Length", prefix ".handshake.exponent_len", \
1775 FT_UINT16, BASE_DEC, NULL, 0x0, \
1776 "Length of RSA-EXPORT exponent", HFILL } \
1778 { & name .hf.hs_server_keyex_sig_len, \
1779 { "Signature Length", prefix ".handshake.sig_len", \
1780 FT_UINT16, BASE_DEC, NULL, 0x0, \
1781 "Length of Signature", HFILL } \
1783 { & name .hf.hs_server_keyex_p_len, \
1784 { "p Length", prefix ".handshake.p_len", \
1785 FT_UINT16, BASE_DEC, NULL, 0x0, \
1786 "Length of p", HFILL } \
1788 { & name .hf.hs_server_keyex_g_len, \
1789 { "g Length", prefix ".handshake.g_len", \
1790 FT_UINT16, BASE_DEC, NULL, 0x0, \
1791 "Length of g", HFILL } \
1793 { & name .hf.hs_server_keyex_ys_len, \
1794 { "Pubkey Length", prefix ".handshake.ys_len", \
1795 FT_UINT16, BASE_DEC, NULL, 0x0, \
1796 "Length of server's Diffie-Hellman public key", HFILL } \
1798 { & name .hf.hs_client_keyex_yc_len, \
1799 { "Pubkey Length", prefix ".handshake.yc_len", \
1800 FT_UINT16, BASE_DEC, NULL, 0x0, \
1801 "Length of client's Diffie-Hellman public key", HFILL } \
1803 { & name .hf.hs_client_keyex_point_len, \
1804 { "Pubkey Length", prefix ".handshake.client_point_len", \
1805 FT_UINT8, BASE_DEC, NULL, 0x0, \
1806 "Length of client's EC Diffie-Hellman public key", HFILL } \
1808 { & name .hf.hs_server_keyex_point_len, \
1809 { "Pubkey Length", prefix ".handshake.server_point_len", \
1810 FT_UINT8, BASE_DEC, NULL, 0x0, \
1811 "Length of server's EC Diffie-Hellman public key", HFILL } \
1813 { & name .hf.hs_server_keyex_p, \
1814 { "p", prefix ".handshake.p", \
1815 FT_BYTES, BASE_NONE, NULL, 0x0, \
1816 "Diffie-Hellman p", HFILL } \
1818 { & name .hf.hs_server_keyex_g, \
1819 { "g", prefix ".handshake.g", \
1820 FT_BYTES, BASE_NONE, NULL, 0x0, \
1821 "Diffie-Hellman g", HFILL } \
1823 { & name .hf.hs_server_keyex_curve_type, \
1824 { "Curve Type", prefix ".handshake.server_curve_type", \
1825 FT_UINT8, BASE_HEX, VALS(ssl_curve_types), 0x0, \
1826 "Server curve_type", HFILL } \
1828 { & name .hf.hs_server_keyex_named_curve, \
1829 { "Named Curve", prefix ".handshake.server_named_curve", \
1830 FT_UINT16, BASE_HEX, VALS(ssl_extension_curves), 0x0, \
1831 "Server named_curve", HFILL } \
1833 { & name .hf.hs_server_keyex_ys, \
1834 { "Pubkey", prefix ".handshake.ys", \
1835 FT_BYTES, BASE_NONE, NULL, 0x0, \
1836 "Diffie-Hellman server pubkey", HFILL } \
1838 { & name .hf.hs_client_keyex_yc, \
1839 { "Pubkey", prefix ".handshake.yc", \
1840 FT_BYTES, BASE_NONE, NULL, 0x0, \
1841 "Diffie-Hellman client pubkey", HFILL } \
1843 { & name .hf.hs_server_keyex_point, \
1844 { "Pubkey", prefix ".handshake.server_point", \
1845 FT_BYTES, BASE_NONE, NULL, 0x0, \
1846 "EC Diffie-Hellman server pubkey", HFILL } \
1848 { & name .hf.hs_client_keyex_point, \
1849 { "Pubkey", prefix ".handshake.client_point", \
1850 FT_BYTES, BASE_NONE, NULL, 0x0, \
1851 "EC Diffie-Hellman client pubkey", HFILL } \
1853 { & name .hf.hs_server_keyex_xs_len, \
1854 { "Pubkey Length", prefix ".handshake.xs_len", \
1855 FT_UINT8, BASE_DEC, NULL, 0x0, \
1856 "Length of EC J-PAKE server public key", HFILL } \
1858 { & name .hf.hs_client_keyex_xc_len, \
1859 { "Pubkey Length", prefix ".handshake.xc_len", \
1860 FT_UINT8, BASE_DEC, NULL, 0x0, \
1861 "Length of EC J-PAKE client public key", HFILL } \
1863 { & name .hf.hs_server_keyex_xs, \
1864 { "Pubkey", prefix ".handshake.xs", \
1865 FT_BYTES, BASE_NONE, NULL, 0x0, \
1866 "EC J-PAKE server public key", HFILL } \
1868 { & name .hf.hs_client_keyex_xc, \
1869 { "Pubkey", prefix ".handshake.xc", \
1870 FT_BYTES, BASE_NONE, NULL, 0x0, \
1871 "EC J-PAKE client public key", HFILL } \
1873 { & name .hf.hs_server_keyex_vs_len, \
1874 { "Ephemeral Pubkey Length", prefix ".handshake.vs_len", \
1875 FT_UINT8, BASE_DEC, NULL, 0x0, \
1876 "Length of EC J-PAKE server ephemeral public key", HFILL } \
1878 { & name .hf.hs_client_keyex_vc_len, \
1879 { "Ephemeral Pubkey Length", prefix ".handshake.vc_len", \
1880 FT_UINT8, BASE_DEC, NULL, 0x0, \
1881 "Length of EC J-PAKE client ephemeral public key", HFILL } \
1883 { & name .hf.hs_server_keyex_vs, \
1884 { "Ephemeral Pubkey", prefix ".handshake.vs", \
1885 FT_BYTES, BASE_NONE, NULL, 0x0, \
1886 "EC J-PAKE server ephemeral public key", HFILL } \
1888 { & name .hf.hs_client_keyex_vc, \
1889 { "Ephemeral Pubkey", prefix ".handshake.vc", \
1890 FT_BYTES, BASE_NONE, NULL, 0x0, \
1891 "EC J-PAKE client ephemeral public key", HFILL } \
1893 { & name .hf.hs_server_keyex_rs_len, \
1894 { "Schnorr signature Length", prefix ".handshake.rs_len", \
1895 FT_UINT8, BASE_DEC, NULL, 0x0, \
1896 "Length of EC J-PAKE server Schnorr signature", HFILL } \
1898 { & name .hf.hs_client_keyex_rc_len, \
1899 { "Schnorr signature Length", prefix ".handshake.rc_len", \
1900 FT_UINT8, BASE_DEC, NULL, 0x0, \
1901 "Length of EC J-PAKE client Schnorr signature", HFILL } \
1903 { & name .hf.hs_server_keyex_rs, \
1904 { "Schnorr signature", prefix ".handshake.rs", \
1905 FT_BYTES, BASE_NONE, NULL, 0x0, \
1906 "EC J-PAKE server Schnorr signature", HFILL } \
1908 { & name .hf.hs_client_keyex_rc, \
1909 { "Schnorr signature", prefix ".handshake.rc", \
1910 FT_BYTES, BASE_NONE, NULL, 0x0, \
1911 "EC J-PAKE client Schnorr signature", HFILL } \
1913 { & name .hf.hs_server_keyex_modulus, \
1914 { "Modulus", prefix ".handshake.modulus", \
1915 FT_BYTES, BASE_NONE, NULL, 0x0, \
1916 "RSA-EXPORT modulus", HFILL } \
1918 { & name .hf.hs_server_keyex_exponent, \
1919 { "Exponent", prefix ".handshake.exponent", \
1920 FT_BYTES, BASE_NONE, NULL, 0x0, \
1921 "RSA-EXPORT exponent", HFILL } \
1923 { & name .hf.hs_server_keyex_sig, \
1924 { "Signature", prefix ".handshake.sig", \
1925 FT_BYTES, BASE_NONE, NULL, 0x0, \
1926 "Diffie-Hellman server signature", HFILL } \
1928 { & name .hf.hs_server_keyex_hint_len, \
1929 { "Hint Length", prefix ".handshake.hint_len", \
1930 FT_UINT16, BASE_DEC, NULL, 0x0, \
1931 "Length of PSK Hint", HFILL } \
1933 { & name .hf.hs_server_keyex_hint, \
1934 { "Hint", prefix ".handshake.hint", \
1935 FT_BYTES, BASE_NONE, NULL, 0x0, \
1936 "PSK Hint", HFILL } \
1938 { & name .hf.hs_client_keyex_identity_len, \
1939 { "Identity Length", prefix ".handshake.identity_len", \
1940 FT_UINT16, BASE_DEC, NULL, 0x0, \
1941 "Length of PSK Identity", HFILL } \
1943 { & name .hf.hs_client_keyex_identity, \
1944 { "Identity", prefix ".handshake.identity", \
1945 FT_BYTES, BASE_NONE, NULL, 0x0, \
1946 "PSK Identity", HFILL } \
1948 { & name .hf.hs_ext_heartbeat_mode, \
1949 { "Mode", prefix ".handshake.extension.heartbeat.mode", \
1950 FT_UINT8, BASE_DEC, VALS(tls_heartbeat_mode), 0x0, \
1951 "Heartbeat extension mode", HFILL } \
1953 { & name .hf.hs_certificates_len, \
1954 { "Certificates Length", prefix ".handshake.certificates_length", \
1955 FT_UINT24, BASE_DEC, NULL, 0x0, \
1956 "Length of certificates field", HFILL } \
1958 { & name .hf.hs_certificates, \
1959 { "Certificates", prefix ".handshake.certificates", \
1960 FT_NONE, BASE_NONE, NULL, 0x0, \
1961 "List of certificates", HFILL } \
1963 { & name .hf.hs_certificate, \
1964 { "Certificate", prefix ".handshake.certificate", \
1965 FT_BYTES, BASE_NONE, NULL, 0x0, \
1968 { & name .hf.hs_certificate_len, \
1969 { "Certificate Length", prefix ".handshake.certificate_length", \
1970 FT_UINT24, BASE_DEC, NULL, 0x0, \
1971 "Length of certificate", HFILL } \
1973 { & name .hf.hs_cert_types_count, \
1974 { "Certificate types count", prefix ".handshake.cert_types_count",\
1975 FT_UINT8, BASE_DEC, NULL, 0x0, \
1976 "Count of certificate types", HFILL } \
1978 { & name .hf.hs_cert_types, \
1979 { "Certificate types", prefix ".handshake.cert_types", \
1980 FT_NONE, BASE_NONE, NULL, 0x0, \
1981 "List of certificate types", HFILL } \
1983 { & name .hf.hs_cert_type, \
1984 { "Certificate type", prefix ".handshake.cert_type", \
1985 FT_UINT8, BASE_DEC, VALS(ssl_31_client_certificate_type), 0x0, \
1988 { & name .hf.hs_dnames_len, \
1989 { "Distinguished Names Length", prefix ".handshake.dnames_len", \
1990 FT_UINT16, BASE_DEC, NULL, 0x0, \
1991 "Length of list of CAs that server trusts", HFILL } \
1993 { & name .hf.hs_dnames, \
1994 { "Distinguished Names", prefix ".handshake.dnames", \
1995 FT_NONE, BASE_NONE, NULL, 0x0, \
1996 "List of CAs that server trusts", HFILL } \
1998 { & name .hf.hs_dname_len, \
1999 { "Distinguished Name Length", prefix ".handshake.dname_len", \
2000 FT_UINT16, BASE_DEC, NULL, 0x0, \
2001 "Length of distinguished name", HFILL } \
2003 { & name .hf.hs_dnames_truncated, \
2004 { "Tree view truncated", prefix ".handshake.dnames_truncated", \
2005 FT_NONE, BASE_NONE, NULL, 0x00, \
2006 "Some Distinguished Names are not added to tree pane to limit resources", HFILL } \
2008 { & name .hf.hs_dname, \
2009 { "Distinguished Name", prefix ".handshake.dname", \
2010 FT_NONE, BASE_NONE, NULL, 0x0, \
2011 "Distinguished name of a CA that server trusts", HFILL } \
2013 { & name .hf.hs_random, \
2014 { "Random", prefix ".handshake.random", \
2015 FT_BYTES, BASE_NONE, NULL, 0x0, \
2016 "Random values used for deriving keys", HFILL } \
2018 { & name .hf.hs_random_time, \
2019 { "GMT Unix Time", prefix ".handshake.random_time", \
2020 FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0x0, \
2021 "Unix time field of random structure", HFILL } \
2023 { & name .hf.hs_random_bytes, \
2024 { "Random Bytes", prefix ".handshake.random_bytes", \
2025 FT_BYTES, BASE_NONE, NULL, 0x0, \
2026 "Random values used for deriving keys", HFILL } \
2028 { & name .hf.hs_session_id, \
2029 { "Session ID", prefix ".handshake.session_id", \
2030 FT_BYTES, BASE_NONE, NULL, 0x0, \
2031 "Identifies the SSL session, allowing later resumption", HFILL }\
2033 { & name .hf.hs_session_id_len, \
2034 { "Session ID Length", prefix ".handshake.session_id_length", \
2035 FT_UINT8, BASE_DEC, NULL, 0x0, \
2036 "Length of Session ID field", HFILL } \
2038 { & name .hf.hs_client_version, \
2039 { "Version", prefix ".handshake.version", \
2040 FT_UINT16, BASE_HEX, VALS(ssl_versions), 0x0, \
2041 "Maximum version supported by client [legacy_version if supported_versions ext is present]", HFILL } \
2043 { & name .hf.hs_server_version, \
2044 { "Version", prefix ".handshake.version", \
2045 FT_UINT16, BASE_HEX, VALS(ssl_versions), 0x0, \
2046 "Version selected by server [legacy_version if supported_versions ext is present]", HFILL } \
2048 { & name .hf.hs_cipher_suites_len, \
2049 { "Cipher Suites Length", prefix ".handshake.cipher_suites_length", \
2050 FT_UINT16, BASE_DEC, NULL, 0x0, \
2051 "Length of cipher suites field", HFILL } \
2053 { & name .hf.hs_cipher_suites, \
2054 { "Cipher Suites", prefix ".handshake.ciphersuites", \
2055 FT_NONE, BASE_NONE, NULL, 0x0, \
2056 "List of cipher suites supported by client", HFILL } \
2058 { & name .hf.hs_cipher_suite, \
2059 { "Cipher Suite", prefix ".handshake.ciphersuite", \
2060 FT_UINT16, BASE_HEX|BASE_EXT_STRING, &ssl_31_ciphersuite_ext, 0x0, \
2063 { & name .hf.hs_comp_methods_len, \
2064 { "Compression Methods Length", prefix ".handshake.comp_methods_length", \
2065 FT_UINT8, BASE_DEC, NULL, 0x0, \
2066 "Length of compression methods field", HFILL } \
2068 { & name .hf.hs_comp_methods, \
2069 { "Compression Methods", prefix ".handshake.comp_methods", \
2070 FT_NONE, BASE_NONE, NULL, 0x0, \
2071 "List of compression methods supported by client", HFILL } \
2073 { & name .hf.hs_comp_method, \
2074 { "Compression Method", prefix ".handshake.comp_method", \
2075 FT_UINT8, BASE_DEC, VALS(ssl_31_compression_method), 0x0, \
2078 { & name .hf.hs_session_ticket_lifetime_hint, \
2079 { "Session Ticket Lifetime Hint", \
2080 prefix ".handshake.session_ticket_lifetime_hint", \
2081 FT_UINT32, BASE_DEC|BASE_UNIT_STRING, UNS(&units_second_seconds), 0x0, \
2082 "New Session Ticket Lifetime Hint", HFILL } \
2084 { & name .hf.hs_session_ticket_age_add, \
2085 { "Session Ticket Age Add", \
2086 prefix ".handshake.session_ticket_age_add", \
2087 FT_UINT32, BASE_DEC, NULL, 0x0, \
2088 "Random 32-bit value to obscure age of ticket", HFILL } \
2090 { & name .hf.hs_session_ticket_nonce_len, \
2091 { "Session Ticket Nonce Length", prefix ".handshake.session_ticket_nonce_length", \
2092 FT_UINT8, BASE_DEC, NULL, 0x0, \
2095 { & name .hf.hs_session_ticket_nonce, \
2096 { "Session Ticket Nonce", prefix ".handshake.session_ticket_nonce", \
2097 FT_BYTES, BASE_NONE, NULL, 0x0, \
2098 "A unique per-ticket value", HFILL } \
2100 { & name .hf.hs_session_ticket_len, \
2101 { "Session Ticket Length", prefix ".handshake.session_ticket_length", \
2102 FT_UINT16, BASE_DEC, NULL, 0x0, \
2103 "New Session Ticket Length", HFILL } \
2105 { & name .hf.hs_session_ticket, \
2106 { "Session Ticket", prefix ".handshake.session_ticket", \
2107 FT_BYTES, BASE_NONE, NULL, 0x0, \
2108 "New Session Ticket", HFILL } \
2110 { & name .hf.hs_finished, \
2111 { "Verify Data", prefix ".handshake.verify_data", \
2112 FT_NONE, BASE_NONE, NULL, 0x0, \
2113 "Opaque verification data", HFILL } \
2115 { & name .hf.hs_client_cert_vrfy_sig_len, \
2116 { "Signature length", prefix ".handshake.client_cert_vrfy.sig_len", \
2117 FT_UINT16, BASE_DEC, NULL, 0x0, \
2118 "Length of CertificateVerify's signature", HFILL } \
2120 { & name .hf.hs_client_cert_vrfy_sig, \
2121 { "Signature", prefix ".handshake.client_cert_vrfy.sig", \
2122 FT_BYTES, BASE_NONE, NULL, 0x0, \
2123 "CertificateVerify's signature", HFILL } \
2125 { & name .hf.hs_ja3_full, \
2126 { "JA3 Fullstring", prefix ".handshake.ja3_full", \
2127 FT_STRING, BASE_NONE, NULL, 0x0, \
2130 { & name .hf.hs_ja3_hash, \
2131 { "JA3", prefix ".handshake.ja3", \
2132 FT_STRING, BASE_NONE, NULL, 0x0, \
2135 { & name .hf.hs_ja3s_full, \
2136 { "JA3S Fullstring", prefix ".handshake.ja3s_full", \
2137 FT_STRING, BASE_NONE, NULL, 0x0, \
2140 { & name .hf.hs_ja3s_hash, \
2141 { "JA3S", prefix ".handshake.ja3s", \
2142 FT_STRING, BASE_NONE, NULL, 0x0, \
2145 { & name .hf.hs_ja4, \
2146 { "JA4", prefix ".handshake.ja4", \
2147 FT_STRING, BASE_NONE, NULL, 0x0, \
2150 { & name .hf.hs_ja4_r, \
2151 { "JA4_r", prefix ".handshake.ja4_r", \
2152 FT_STRING, BASE_NONE, NULL, 0x0, \
2155 { & name .hf.hs_ext_psk_ke_modes_length, \
2156 { "PSK Key Exchange Modes Length", prefix ".extension.psk_ke_modes_length", \
2157 FT_UINT8, BASE_DEC, NULL, 0x0, \
2160 { & name .hf.hs_ext_psk_ke_mode, \
2161 { "PSK Key Exchange Mode", prefix ".extension.psk_ke_mode", \
2162 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_psk_ke_mode), 0x0, \
2163 "Key exchange modes where the client supports use of PSKs", HFILL } \
2165 { & name .hf.hs_certificate_request_context_length, \
2166 { "Certificate Request Context Length", prefix ".handshake.certificate_request_context_length", \
2167 FT_UINT8, BASE_DEC, NULL, 0x0, \
2170 { & name .hf.hs_certificate_request_context, \
2171 { "Certificate Request Context", prefix ".handshake.certificate_request_context", \
2172 FT_BYTES, BASE_NONE, NULL, 0x0, \
2173 "Value from CertificateRequest or empty for server auth", HFILL } \
2175 { & name .hf.hs_key_update_request_update, \
2176 { "Key Update Request", prefix ".handshake.key_update.request_update", \
2177 FT_UINT8, BASE_DEC, VALS(tls13_key_update_request), 0x00, \
2178 "Whether the receiver should also update its keys", HFILL } \
2180 { & name .hf.sct_scts_length, \
2181 { "Serialized SCT List Length", prefix ".sct.scts_length", \
2182 FT_UINT16, BASE_DEC, NULL, 0x00, \
2185 { & name .hf.sct_sct_length, \
2186 { "Serialized SCT Length", prefix ".sct.sct_length", \
2187 FT_UINT16, BASE_DEC, NULL, 0x00, \
2190 { & name .hf.sct_sct_version, \
2191 { "SCT Version", prefix ".sct.sct_version", \
2192 FT_UINT8, BASE_DEC, NULL, 0x00, \
2193 "SCT Protocol version (v1 (0) is defined in RFC 6962)", HFILL } \
2195 { & name .hf.sct_sct_logid, \
2196 { "Log ID", prefix ".sct.sct_logid", \
2197 FT_BYTES, BASE_NONE, NULL, 0x00, \
2198 "SHA-256 hash of log's public key", HFILL } \
2200 { & name .hf.sct_sct_timestamp, \
2201 { "Timestamp", prefix ".sct.sct_timestamp", \
2202 FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0x00, \
2203 "Timestamp of issuance", HFILL } \
2205 { & name .hf.sct_sct_extensions_length, \
2206 { "Extensions length", prefix ".sct.sct_extensions_length", \
2207 FT_UINT16, BASE_DEC, NULL, 0x00, \
2208 "Length of future extensions to this protocol (currently none)", HFILL } \
2210 { & name .hf.sct_sct_extensions, \
2211 { "Extensions", prefix ".sct.sct_extensions", \
2212 FT_NONE, BASE_NONE, NULL, 0x00, \
2213 "Future extensions to this protocol (currently none)", HFILL } \
2215 { & name .hf.sct_sct_signature_length, \
2216 { "Signature Length", prefix ".sct.sct_signature_length", \
2217 FT_UINT16, BASE_DEC, NULL, 0x00, \
2220 { & name .hf.sct_sct_signature, \
2221 { "Signature", prefix ".sct.sct_signature", \
2222 FT_BYTES, BASE_NONE, NULL, 0x00, \
2225 { & name .hf.hs_ext_max_early_data_size, \
2226 { "Maximum Early Data Size", prefix ".early_data.max_early_data_size", \
2227 FT_UINT32, BASE_DEC, NULL, 0x00, \
2228 "Maximum amount of 0-RTT data that the client may send", HFILL } \
2230 { & name .hf.hs_ext_oid_filters_length, \
2231 { "OID Filters Length", prefix ".extension.oid_filters_length", \
2232 FT_UINT16, BASE_DEC, NULL, 0x00, \
2235 { & name .hf.hs_ext_oid_filters_oid_length, \
2236 { "Certificate Extension OID Length", prefix ".extension.oid_filters.oid_length", \
2237 FT_UINT8, BASE_DEC, NULL, 0x00, \
2240 { & name .hf.hs_ext_oid_filters_oid, \
2241 { "Certificate Extension OID", prefix ".extension.oid_filters.oid", \
2242 FT_OID, BASE_NONE, NULL, 0x00, \
2245 { & name .hf.hs_ext_oid_filters_values_length, \
2246 { "Certificate Extension Values Length", prefix ".extension.oid_filters.values_length", \
2247 FT_UINT16, BASE_DEC, NULL, 0x00, \
2250 { & name .hf.hs_cred_valid_time, \
2251 { "Valid Time", prefix ".handshake.cred.valid_time", \
2252 FT_UINT16, BASE_DEC, NULL, 0x0, \
2253 "Delegated Credentials Valid Time", HFILL } \
2255 { & name .hf.hs_cred_pubkey, \
2256 { "Subject Public Key Info", prefix ".handshake.cred.pubkey", \
2257 FT_BYTES, BASE_NONE, NULL, 0x0, \
2258 "Delegated Credentials Subject Public Key Info", HFILL } \
2260 { & name .hf.hs_cred_pubkey_len, \
2261 { "Subject Public Key Info Length", prefix ".handshake.cred.pubkey_len", \
2262 FT_UINT24, BASE_DEC, NULL, 0x0, \
2263 "Delegated Credentials Subject Public Key Info Length", HFILL } \
2265 { & name .hf.hs_cred_signature, \
2266 { "Signature", prefix ".handshake.cred.signature", \
2267 FT_BYTES, BASE_NONE, NULL, 0x0, \
2268 "Delegated Credentials Signature", HFILL } \
2270 { & name .hf.hs_cred_signature_len, \
2271 { "Signature Length", prefix ".handshake.cred.signature_len", \
2272 FT_UINT16, BASE_DEC, NULL, 0x0, \
2273 "Delegated Credentials Signature Length", HFILL } \
2275 { & name .hf.hs_ext_compress_certificate_algorithms_length, \
2276 { "Algorithms Length", prefix ".compress_certificate.algorithms_length", \
2277 FT_UINT8, BASE_DEC, NULL, 0x00, \
2280 { & name .hf.hs_ext_compress_certificate_algorithm, \
2281 { "Algorithm", prefix ".compress_certificate.algorithm", \
2282 FT_UINT16, BASE_DEC, VALS(compress_certificate_algorithm_vals), 0x00, \
2285 { & name .hf.hs_ext_compress_certificate_uncompressed_length, \
2286 { "Uncompressed Length", prefix ".compress_certificate.uncompressed_length", \
2287 FT_UINT24, BASE_DEC, NULL, 0x00, \
2290 { & name .hf.hs_ext_compress_certificate_compressed_certificate_message_length, \
2291 { "Length", prefix ".compress_certificate.compressed_certificate_message.length", \
2292 FT_UINT24, BASE_DEC, NULL, 0x00, \
2295 { & name .hf.hs_ext_compress_certificate_compressed_certificate_message, \
2296 { "Compressed Certificate Message", prefix ".compress_certificate.compressed_certificate_message", \
2297 FT_BYTES, BASE_NONE, NULL, 0x00, \
2300 { & name .hf.hs_ext_token_binding_version_major, \
2301 { "Protocol Major Version", prefix ".token_binding.version_major", \
2302 FT_UINT8, BASE_HEX, NULL, 0x00, \
2303 "Major version of the Token Binding protocol", HFILL } \
2305 { & name .hf.hs_ext_token_binding_version_minor, \
2306 { "Protocol Minor Version", prefix ".token_binding.version_minor", \
2307 FT_UINT8, BASE_HEX, NULL, 0x00, \
2308 "Minor version of the Token Binding protocol", HFILL } \
2310 { & name .hf.hs_ext_token_binding_key_parameters, \
2311 { "Key Parameters", prefix ".token_binding.key_parameters", \
2312 FT_NONE, BASE_NONE, NULL, 0x0, \
2315 { & name .hf.hs_ext_token_binding_key_parameters_length, \
2316 { "Key Parameters Length", prefix ".token_binding.key_parameters_length", \
2317 FT_UINT8, BASE_DEC, NULL, 0x00, \
2318 "Length of the key parameters list", HFILL } \
2320 { & name .hf.hs_ext_token_binding_key_parameter, \
2321 { "Key Parameter", prefix ".token_binding.key_parameter", \
2322 FT_UINT8, BASE_DEC, VALS(token_binding_key_parameter_vals), 0x00, \
2323 "Identifier of the Token Binding key parameter", HFILL } \
2325 { & name .hf.hs_ext_record_size_limit, \
2326 { "Record Size Limit", prefix ".record_size_limit", \
2327 FT_UINT16, BASE_DEC, NULL, 0x00, \
2328 "Maximum record size that an endpoint is willing to receive", HFILL } \
2330 { & name .hf.hs_ext_quictp_len, \
2331 { "Parameters Length", prefix ".quic.len", \
2332 FT_UINT16, BASE_DEC, NULL, 0x00, \
2335 { & name .hf.hs_ext_quictp_parameter, \
2336 { "Parameter", prefix ".quic.parameter", \
2337 FT_NONE, BASE_NONE, NULL, 0x00, \
2340 { & name .hf.hs_ext_quictp_parameter_type, \
2341 { "Type", prefix ".quic.parameter.type", \
2342 FT_UINT64, BASE_CUSTOM, CF_FUNC(quic_transport_parameter_id_base_custom), 0x00, \
2345 { & name .hf.hs_ext_quictp_parameter_len, \
2346 { "Length", prefix ".quic.parameter.length", \
2347 FT_UINT64, BASE_DEC, NULL, 0x00, \
2350 { & name .hf.hs_ext_quictp_parameter_len_old, \
2351 { "Length", prefix ".quic.parameter.length.old", \
2352 FT_UINT16, BASE_DEC, NULL, 0x00, \
2355 { & name .hf.hs_ext_quictp_parameter_value, \
2356 { "Value", prefix ".quic.parameter.value", \
2357 FT_BYTES, BASE_NONE, NULL, 0x00, \
2360 { & name .hf.hs_ext_quictp_parameter_original_destination_connection_id, \
2361 { "original_destination_connection_id", prefix ".quic.parameter.original_destination_connection_id", \
2362 FT_BYTES, BASE_NONE, NULL, 0x00, \
2363 "Destination Connection ID from the first Initial packet sent by the client", HFILL } \
2365 { & name .hf.hs_ext_quictp_parameter_max_idle_timeout, \
2366 { "max_idle_timeout", prefix ".quic.parameter.max_idle_timeout", \
2367 FT_UINT64, BASE_DEC, NULL, 0x00, \
2368 "In milliseconds", HFILL } \
2370 { & name .hf.hs_ext_quictp_parameter_stateless_reset_token, \
2371 { "stateless_reset_token", prefix ".quic.parameter.stateless_reset_token", \
2372 FT_BYTES, BASE_NONE, NULL, 0x00, \
2373 "Used in verifying a stateless reset", HFILL } \
2375 { & name .hf.hs_ext_quictp_parameter_max_udp_payload_size, \
2376 { "max_udp_payload_size", prefix ".quic.parameter.max_udp_payload_size", \
2377 FT_UINT64, BASE_DEC, NULL, 0x00, \
2378 "Maximum UDP payload size that the endpoint is willing to receive", HFILL } \
2380 { & name .hf.hs_ext_quictp_parameter_initial_max_data, \
2381 { "initial_max_data", prefix ".quic.parameter.initial_max_data", \
2382 FT_UINT64, BASE_DEC, NULL, 0x00, \
2383 "Contains the initial value for the maximum amount of data that can be sent on the connection", HFILL } \
2385 { & name .hf.hs_ext_quictp_parameter_initial_max_stream_data_bidi_local, \
2386 { "initial_max_stream_data_bidi_local", prefix ".quic.parameter.initial_max_stream_data_bidi_local", \
2387 FT_UINT64, BASE_DEC, NULL, 0x00, \
2388 "Initial stream maximum data for bidirectional, locally-initiated streams", HFILL } \
2390 { & name .hf.hs_ext_quictp_parameter_initial_max_stream_data_bidi_remote, \
2391 { "initial_max_stream_data_bidi_remote", prefix ".quic.parameter.initial_max_stream_data_bidi_remote", \
2392 FT_UINT64, BASE_DEC, NULL, 0x00, \
2393 "Initial stream maximum data for bidirectional, peer-initiated streams", HFILL } \
2395 { & name .hf.hs_ext_quictp_parameter_initial_max_stream_data_uni, \
2396 { "initial_max_stream_data_uni", prefix ".quic.parameter.initial_max_stream_data_uni", \
2397 FT_UINT64, BASE_DEC, NULL, 0x00, \
2398 "Initial stream maximum data for unidirectional streams parameter", HFILL } \
2400 { & name .hf.hs_ext_quictp_parameter_initial_max_streams_bidi, \
2401 { "initial_max_streams_bidi", prefix ".quic.parameter.initial_max_streams_bidi", \
2402 FT_UINT64, BASE_DEC, NULL, 0x00, \
2403 "Initial maximum number of application-owned bidirectional streams", HFILL } \
2405 { & name .hf.hs_ext_quictp_parameter_initial_max_streams_uni, \
2406 { "initial_max_streams_uni", prefix ".quic.parameter.initial_max_streams_uni", \
2407 FT_UINT64, BASE_DEC, NULL, 0x00, \
2408 "Initial maximum number of application-owned unidirectional streams", HFILL } \
2410 { & name .hf.hs_ext_quictp_parameter_ack_delay_exponent, \
2411 { "ack_delay_exponent", prefix ".quic.parameter.ack_delay_exponent", \
2412 FT_UINT64, BASE_DEC, NULL, 0x00, \
2413 "Indicating an exponent used to decode the ACK Delay field in the ACK frame,", HFILL } \
2415 { & name .hf.hs_ext_quictp_parameter_max_ack_delay, \
2416 { "max_ack_delay", prefix ".quic.parameter.max_ack_delay", \
2417 FT_UINT64, BASE_DEC, NULL, 0x00, \
2418 "Indicating the maximum amount of time in milliseconds by which it will delay sending of acknowledgments", HFILL } \
2420 { & name .hf.hs_ext_quictp_parameter_pa_ipv4address, \
2421 { "ipv4Address", prefix ".quic.parameter.preferred_address.ipv4address", \
2422 FT_IPv4, BASE_NONE, NULL, 0x00, \
2425 { & name .hf.hs_ext_quictp_parameter_pa_ipv6address, \
2426 { "ipv6Address", prefix ".quic.parameter.preferred_address.ipv6address", \
2427 FT_IPv6, BASE_NONE, NULL, 0x00, \
2430 { & name .hf.hs_ext_quictp_parameter_pa_ipv4port, \
2431 { "ipv4Port", prefix ".quic.parameter.preferred_address.ipv4port", \
2432 FT_UINT16, BASE_DEC, NULL, 0x00, \
2435 { & name .hf.hs_ext_quictp_parameter_pa_ipv6port, \
2436 { "ipv6Port", prefix ".quic.parameter.preferred_address.ipv6port", \
2437 FT_UINT16, BASE_DEC, NULL, 0x00, \
2440 { & name .hf.hs_ext_quictp_parameter_pa_connectionid_length, \
2441 { "Length", prefix ".quic.parameter.preferred_address.connectionid.length", \
2442 FT_UINT8, BASE_DEC, NULL, 0x00, \
2443 "Length of connectionId Field", HFILL } \
2445 { & name .hf.hs_ext_quictp_parameter_pa_connectionid, \
2446 { "connectionId", prefix ".quic.parameter.preferred_address.connectionid", \
2447 FT_BYTES, BASE_NONE, NULL, 0x00, \
2450 { & name .hf.hs_ext_quictp_parameter_pa_statelessresettoken, \
2451 { "statelessResetToken", prefix ".quic.parameter.preferred_address.statelessresettoken", \
2452 FT_BYTES, BASE_NONE, NULL, 0x00, \
2455 { & name .hf.hs_ext_quictp_parameter_active_connection_id_limit, \
2456 { "Active Connection ID Limit", prefix ".quic.parameter.active_connection_id_limit", \
2457 FT_UINT64, BASE_DEC, NULL, 0x00, \
2460 { & name .hf.hs_ext_quictp_parameter_initial_source_connection_id, \
2461 { "Initial Source Connection ID", prefix ".quic.parameter.initial_source_connection_id", \
2462 FT_BYTES, BASE_NONE, NULL, 0x00, \
2465 { & name .hf.hs_ext_quictp_parameter_retry_source_connection_id, \
2466 { "Retry Source Connection ID", prefix ".quic.parameter.retry_source_connection_id", \
2467 FT_BYTES, BASE_NONE, NULL, 0x00, \
2470 { & name .hf.hs_ext_quictp_parameter_max_datagram_frame_size, \
2471 { "max_datagram_frame_size", prefix ".quic.parameter.max_datagram_frame_size", \
2472 FT_UINT64, BASE_DEC, NULL, 0x00, \
2475 { & name .hf.hs_ext_quictp_parameter_cibir_encoding_length, \
2476 { "length", prefix ".quic.parameter.cibir_encoding.length", \
2477 FT_UINT64, BASE_DEC, NULL, 0x00, \
2480 { & name .hf.hs_ext_quictp_parameter_cibir_encoding_offset, \
2481 { "offset", prefix ".quic.parameter.cibir_encoding.offset", \
2482 FT_UINT64, BASE_DEC, NULL, 0x00, \
2485 { & name .hf.hs_ext_quictp_parameter_loss_bits, \
2486 { "loss_bits", prefix ".quic.parameter.loss_bits", \
2487 FT_UINT64, BASE_DEC, NULL, 0x00, \
2490 { & name .hf.hs_ext_quictp_parameter_enable_time_stamp_v2, \
2491 { "Enable TimestampV2", prefix ".quic.parameter.enable_time_stamp_v2", \
2492 FT_UINT64, BASE_DEC|BASE_VAL64_STRING, VALS64(quic_enable_time_stamp_v2_vals), 0x00, \
2495 { & name .hf.hs_ext_quictp_parameter_min_ack_delay, \
2496 { "min_ack_delay", prefix ".quic.parameter.min_ack_delay", \
2497 FT_UINT64, BASE_DEC, NULL, 0x00, \
2500 { & name .hf.hs_ext_quictp_parameter_google_user_agent_id, \
2501 { "Google UserAgent", prefix ".quic.parameter.google.user_agent", \
2502 FT_STRING, BASE_NONE, NULL, 0x00, \
2505 { & name .hf.hs_ext_quictp_parameter_google_key_update_not_yet_supported, \
2506 { "Google Key Update not yet supported", prefix ".quic.parameter.google.key_update_not_yet_supported", \
2507 FT_NONE, BASE_NONE, NULL, 0x00, \
2510 { & name .hf.hs_ext_quictp_parameter_google_quic_version, \
2511 { "Google QUIC version", prefix ".quic.parameter.google.quic_version", \
2512 FT_UINT32, BASE_RANGE_STRING | BASE_HEX, RVALS(quic_version_vals), 0x00, \
2515 { & name .hf.hs_ext_quictp_parameter_google_initial_rtt, \
2516 { "Google Initial RTT", prefix ".quic.parameter.google.initial_rtt", \
2517 FT_UINT64, BASE_DEC, NULL, 0x00, \
2520 { & name .hf.hs_ext_quictp_parameter_google_support_handshake_done, \
2521 { "Google Support Handshake Done", prefix ".quic.parameter.google.support_handshake_done", \
2522 FT_NONE, BASE_NONE, NULL, 0x00, \
2525 { & name .hf.hs_ext_quictp_parameter_google_quic_params, \
2526 { "Google QUIC parameters", prefix ".quic.parameter.google.quic_params", \
2527 FT_BYTES, BASE_NONE, NULL, 0x00, \
2530 { & name .hf.hs_ext_quictp_parameter_google_quic_params_unknown_field, \
2531 { "Google Unknown Field", prefix ".quic.parameter.google.quic_params_unknown_field", \
2532 FT_BYTES, BASE_NONE, NULL, 0x00, \
2535 { & name .hf.hs_ext_quictp_parameter_google_connection_options, \
2536 { "Google Connection options", prefix ".quic.parameter.google.connection_options", \
2537 FT_BYTES, BASE_NONE, NULL, 0x00, \
2540 { & name .hf.hs_ext_quictp_parameter_google_supported_versions_length, \
2541 { "Google Supported Versions Length", prefix ".quic.parameter.google.supported_versions_length", \
2542 FT_UINT8, BASE_DEC, NULL, 0x00, \
2545 { & name .hf.hs_ext_quictp_parameter_google_supported_version, \
2546 { "Google Supported Version", prefix ".quic.parameter.google.supported_version", \
2547 FT_UINT32, BASE_RANGE_STRING | BASE_HEX, RVALS(quic_version_vals), 0x00, \
2550 { & name .hf.hs_ext_quictp_parameter_facebook_partial_reliability, \
2551 { "Facebook Partial Reliability", prefix ".quic.parameter.facebook.partial_reliability", \
2552 FT_UINT64, BASE_DEC, NULL, 0x00, \
2555 { & name .hf.hs_ext_quictp_parameter_chosen_version, \
2556 { "Chosen Version", prefix ".quic.parameter.vi.chosen_version", \
2557 FT_UINT32, BASE_RANGE_STRING | BASE_HEX, RVALS(quic_version_vals), 0x00, \
2560 { & name .hf.hs_ext_quictp_parameter_other_version, \
2561 { "Other Version", prefix ".quic.parameter.vi.other_version", \
2562 FT_UINT32, BASE_RANGE_STRING | BASE_HEX, RVALS(quic_version_vals), 0x00, \
2565 { & name .hf.hs_ext_quictp_parameter_enable_multipath, \
2566 { "Enable Multipath", prefix ".quic.parameter.enable_multipath", \
2567 FT_UINT64, BASE_DEC|BASE_VAL64_STRING, VALS64(quic_enable_multipath_vals), 0x00, \
2570 { & name .hf.hs_ext_quictp_parameter_initial_max_paths, \
2571 { "Initial Max Paths", prefix ".quic.parameter.initial_max_paths", \
2572 FT_UINT64, BASE_DEC, NULL, 0x00, \
2575 { & name .hf.hs_ext_quictp_parameter_initial_max_path_id, \
2576 { "Initial Max Path ID", prefix ".quic.parameter.initial_max_path_id", \
2577 FT_UINT64, BASE_DEC, NULL, 0x00, \
2580 { & name .hf.hs_ext_connection_id_length, \
2581 { "Connection ID length", prefix ".connection_id_length", \
2582 FT_UINT8, BASE_DEC, NULL, 0x00, \
2585 { & name .hf.hs_ext_connection_id, \
2586 { "Connection ID", prefix ".connection_id", \
2587 FT_BYTES, BASE_NONE, NULL, 0x00, \
2590 { & name .hf.hs_ext_trusted_ca_keys_len, \
2591 { "Trusted CA keys length", prefix ".handshake.trusted_ca.keys_length", \
2592 FT_UINT16, BASE_DEC, NULL, 0x00, \
2593 "Length of Trusted CA keys extension", HFILL } \
2595 { & name .hf.hs_ext_trusted_ca_keys_list, \
2596 { "Trusted CA keys", prefix ".handshake.trusted_ca.keys", \
2597 FT_NONE, BASE_NONE, NULL, 0x00, \
2598 "List of Trusted CA keys", HFILL } \
2600 { & name .hf.hs_ext_trusted_ca_key, \
2601 { "Trusted CA key", prefix ".handshake.trusted_ca.key", \
2602 FT_NONE, BASE_NONE, NULL, 0x0, \
2605 { & name .hf.hs_ext_trusted_ca_key_type, \
2606 { "Trusted CA key type", prefix ".handshake.trusted_ca.key_type", \
2607 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_trusted_ca_key_type), 0x00, \
2608 "Type of Trusted CA key", HFILL } \
2610 { & name .hf.hs_ext_trusted_ca_key_hash, \
2611 { "Trusted CA key hash", prefix ".handshake.trusted_ca.key_hash", \
2612 FT_BYTES, BASE_NONE, NULL, 0x00, \
2615 { & name .hf.hs_ext_trusted_ca_key_dname_len, \
2616 { "Distinguished Name Length", prefix ".handshake.trusted_ca.key_dname_len", \
2617 FT_UINT16, BASE_DEC, NULL, 0x0, \
2618 "Length of distinguished name", HFILL } \
2620 { & name .hf.hs_ext_trusted_ca_key_dname, \
2621 { "Distinguished Name", prefix ".handshake.trusted_ca.key_dname", \
2622 FT_NONE, BASE_NONE, NULL, 0x0, \
2623 "Distinguished name of a CA that the client trusts", HFILL } \
2625 { & name .hf.esni_suite, \
2626 { "Cipher Suite", prefix ".esni.suite", \
2627 FT_UINT16, BASE_HEX|BASE_EXT_STRING, &ssl_31_ciphersuite_ext, 0x0, \
2628 "Cipher suite used to encrypt the SNI", HFILL } \
2630 { & name .hf.esni_record_digest_length, \
2631 { "Record Digest Length", prefix ".esni.record_digest_length", \
2632 FT_UINT16, BASE_DEC, NULL, 0x00, \
2635 { & name .hf.esni_record_digest, \
2636 { "Record Digest", prefix ".esni.record_digest", \
2637 FT_BYTES, BASE_NONE, NULL, 0x00, \
2638 "Cryptographic hash of the ESNIKeys from which the ESNI key was obtained", HFILL } \
2640 { & name .hf.esni_encrypted_sni_length, \
2641 { "Encrypted SNI Length", prefix ".esni.encrypted_sni_length", \
2642 FT_UINT16, BASE_DEC, NULL, 0x00, \
2645 { & name .hf.esni_encrypted_sni, \
2646 { "Encrypted SNI", prefix ".esni.encrypted_sni", \
2647 FT_BYTES, BASE_NONE, NULL, 0x00, \
2648 "The encrypted ClientESNIInner structure", HFILL } \
2650 { & name .hf.esni_nonce, \
2651 { "Nonce", prefix ".esni.nonce", \
2652 FT_BYTES, BASE_NONE, NULL, 0x00, \
2653 "Contents of ClientESNIInner.nonce", HFILL } \
2655 { & name .hf.ech_echconfiglist_length, \
2656 { "ECHConfigList length", prefix ".ech.echconfiglist_length", \
2657 FT_UINT16, BASE_DEC, NULL, 0x0, \
2658 "Encrypted ClientHello (ECH) Configurations length", HFILL } \
2660 { & name .hf.ech_echconfiglist, \
2661 { "ECHConfigList", prefix ".ech.echconfiglist", \
2662 FT_NONE, BASE_NONE, NULL, 0x0, \
2663 "Encrypted ClientHello (ECH) Configurations", HFILL } \
2665 { & name .hf.ech_echconfig, \
2666 { "ECHConfig", prefix ".ech.echconfig", \
2667 FT_NONE, BASE_NONE, NULL, 0x0, \
2668 "Encrypted ClientHello (ECH) Configuration", HFILL } \
2670 { & name .hf.ech_echconfig_version, \
2671 { "Version", prefix ".ech.echconfig.version", \
2672 FT_UINT16, BASE_HEX, NULL, 0x0, \
2673 "Encrypted ClientHello: ECHConfig version", HFILL } \
2675 { & name .hf.ech_echconfig_length, \
2676 { "Length", prefix ".ech.echconfig.length", \
2677 FT_UINT16, BASE_DEC, NULL, 0x0, \
2678 "Encrypted ClientHello: ECHConfig length", HFILL } \
2680 { & name .hf.ech_echconfigcontents_maximum_name_length, \
2681 { "Maximum Name Length", prefix ".ech.echconfigcontents.maximum_name_length", \
2682 FT_UINT8, BASE_DEC, NULL, 0x0, \
2683 "The longest name of a backend server, if known", HFILL } \
2685 { & name .hf.ech_echconfigcontents_public_name_length, \
2686 { "Public Name length", prefix ".ech.echconfigcontents.public_name_length", \
2687 FT_UINT8, BASE_DEC, NULL, 0x0, \
2688 "Length of the Public Name field", HFILL } \
2690 { & name .hf.ech_echconfigcontents_public_name, \
2691 { "Public Name", prefix ".ech.echconfigcontents.public_name", \
2692 FT_STRING, BASE_NONE, NULL, 0x0, \
2693 "The DNS name of the client-facing server, i.e., the entity trusted to update the ECH configuration", HFILL } \
2695 { & name .hf.ech_echconfigcontents_extensions_length, \
2696 { "Extensions length", prefix ".ech.echconfigcontents.extensions_length", \
2697 FT_UINT16, BASE_DEC, NULL, 0x0, \
2698 "Length of the Extensions field", HFILL } \
2700 { & name .hf.ech_echconfigcontents_extensions, \
2701 { "Extensions", prefix ".ech.echconfigcontents.extensions", \
2702 FT_BYTES, BASE_NONE, NULL, 0x0, \
2703 "A list of extensions that the client must take into consideration when generating a ClientHello message", HFILL } \
2705 { & name .hf.ech_hpke_keyconfig, \
2706 { "HPKE Key Config", prefix ".ech.hpke.keyconfig", \
2707 FT_NONE, BASE_NONE, NULL, 0x0, \
2708 "HPKE Key Config", HFILL } \
2710 { & name .hf.ech_hpke_keyconfig_config_id, \
2711 { "Config Id", prefix ".ech.hpke.keyconfig.config_id", \
2712 FT_UINT8, BASE_DEC, NULL, 0x0, \
2713 "HPKE Config Id", HFILL } \
2715 { & name .hf.ech_hpke_keyconfig_kem_id, \
2716 { "KEM Id", prefix ".ech.hpke.keyconfig.kem_id", \
2717 FT_UINT16, BASE_DEC, VALS(kem_id_type_vals), 0x0, \
2718 "HPKE KEM Id", HFILL } \
2720 { & name .hf.ech_hpke_keyconfig_public_key_length, \
2721 { "Public Key length", prefix ".ech.hpke.keyconfig.public_key_length", \
2722 FT_UINT16, BASE_DEC, NULL, 0x0, \
2723 "HPKE Public Key length", HFILL } \
2725 { & name .hf.ech_hpke_keyconfig_public_key, \
2726 { "Public Key", prefix ".ech.hpke.keyconfig.public_key", \
2727 FT_BYTES, BASE_NONE, NULL, 0x0, \
2728 "HPKE Public Key", HFILL } \
2730 { & name .hf.ech_hpke_keyconfig_cipher_suites, \
2731 { "Cipher Suites", prefix ".ech.hpke.keyconfig.cipher_suites", \
2732 FT_NONE, BASE_NONE, NULL, 0x0, \
2733 "HPKE Cipher Suites", HFILL } \
2735 { & name .hf.ech_hpke_keyconfig_cipher_suites_length, \
2736 { "Cipher Suites length", prefix ".ech.hpke.keyconfig.cipher_suites_length", \
2737 FT_UINT16, BASE_DEC, NULL, 0x0, \
2738 "HPKE Cipher Suites length", HFILL } \
2740 { & name .hf.ech_hpke_keyconfig_cipher_suite, \
2741 { "Cipher Suite", prefix ".ech.hpke.keyconfig.cipher_suite", \
2742 FT_NONE, BASE_NONE, NULL, 0x0, \
2743 "HPKE Cipher Suite", HFILL } \
2745 { & name .hf.ech_hpke_keyconfig_cipher_suite_kdf_id, \
2746 { "KDF Id", prefix ".ech.hpke.keyconfig.cipher_suite.kdf_id", \
2747 FT_UINT16, BASE_DEC, VALS(kdf_id_type_vals), 0x0, \
2748 "HPKE KDF Id", HFILL } \
2750 { & name .hf.ech_hpke_keyconfig_cipher_suite_aead_id, \
2751 { "AEAD Id", prefix ".ech.hpke.keyconfig.cipher_suite.aead_id", \
2752 FT_UINT16, BASE_DEC, VALS(aead_id_type_vals), 0x0, \
2753 "HPKE AEAD Id", HFILL } \
2755 { & name .hf.ech_clienthello_type, \
2756 { "Client Hello type", prefix ".ech.client_hello_type", \
2757 FT_UINT8, BASE_DEC, VALS(tls_hello_ext_ech_clienthello_types), 0x0, \
2758 "Client Hello type", HFILL } \
2760 { & name .hf.ech_cipher_suite, \
2761 { "Cipher Suite", prefix ".ech.cipher_suite", \
2762 FT_NONE, BASE_NONE, NULL, 0x0, \
2763 "The cipher suite used to encrypt ClientHelloInner", HFILL } \
2765 { & name .hf.ech_config_id, \
2766 { "Config Id", prefix ".ech.config_id", \
2767 FT_UINT8, BASE_DEC, NULL, 0x0, \
2768 "The ECHConfigContents.key_config.config_id for the chosen ECHConfig", HFILL } \
2770 { & name .hf.ech_enc_length, \
2771 { "Enc length", prefix ".ech.enc_length", \
2772 FT_UINT16, BASE_DEC, NULL, 0x0, \
2775 { & name .hf.ech_enc, \
2776 { "Enc", prefix ".ech.enc", \
2777 FT_BYTES, BASE_NONE, NULL, 0x0, \
2778 "The HPKE encapsulated key, used by servers to decrypt the corresponding payload field", HFILL } \
2780 { & name .hf.ech_payload_length, \
2781 { "Payload length", prefix ".ech.payload_length", \
2782 FT_UINT16, BASE_DEC, NULL, 0x0, \
2783 "Payload Length", HFILL } \
2785 { & name .hf.ech_payload, \
2786 { "Payload", prefix ".ech.payload", \
2787 FT_BYTES, BASE_NONE, NULL, 0x0, \
2788 "The serialized and encrypted ClientHelloInner structure", HFILL } \
2790 { & name .hf.ech_confirmation, \
2791 { "Confirmation", prefix ".ech.confirmation", \
2792 FT_BYTES, BASE_NONE, NULL, 0x0, \
2793 "Confirmation of ECH acceptance in a HelloRetryRequest", HFILL } \
2795 { & name .hf.ech_retry_configs, \
2796 { "Retry Configs", prefix ".ech.retry_configs", \
2797 FT_NONE, BASE_NONE, NULL, 0x0, \
2798 "ECHConfig structures for one-time use by the client in a retry connection", HFILL } \
2800 { & name .hf.ech_padding_data, \
2801 { "ECH Encrypted Padding", prefix ".ech.encrypted_padding", \
2802 FT_BYTES, BASE_NONE, NULL, 0x0, \
2803 "Must be zero", HFILL } \
2805 { & name .hf.hs_ext_alps_len, \
2806 { "ALPS Extension Length", prefix ".handshake.extensions_alps_len", \
2807 FT_UINT16, BASE_DEC, NULL, 0x0, \
2808 "Length of the ALPS Extension", HFILL } \
2810 { & name .hf.hs_ext_alps_alpn_list, \
2811 { "Supported ALPN List", prefix ".handshake.extensions_alps_alpn_list", \
2812 FT_NONE, BASE_NONE, NULL, 0x0, \
2813 "List of supported ALPN by ALPS", HFILL } \
2815 { & name .hf.hs_ext_alps_alpn_str_len, \
2816 { "Supported ALPN Length", prefix ".handshake.extensions_alps_alpn_str_len", \
2817 FT_UINT8, BASE_DEC, NULL, 0x0, \
2818 "Length of ALPN string", HFILL } \
2820 { & name .hf.hs_ext_alps_alpn_str, \
2821 { "Supported ALPN", prefix ".handshake.extensions_alps_alpn_str", \
2822 FT_STRING, BASE_NONE, NULL, 0x00, \
2823 "ALPN supported by ALPS", HFILL } \
2825 { & name .hf.hs_ext_alps_settings, \
2826 { "ALPN Opaque Settings", prefix ".handshake.extensions_alps.settings", \
2827 FT_BYTES, BASE_NONE, NULL, 0x00, \
2828 "ALPN Opaque Settings", HFILL } \
2833#define SSL_COMMON_ETT_LIST(name) \
2834 & name .ett.hs_ext, \
2835 & name .ett.hs_ext_alpn, \
2836 & name .ett.hs_ext_cert_types, \
2837 & name .ett.hs_ext_groups, \
2838 & name .ett.hs_ext_curves_point_formats, \
2839 & name .ett.hs_ext_npn, \
2840 & name .ett.hs_ext_reneg_info, \
2841 & name .ett.hs_ext_key_share, \
2842 & name .ett.hs_ext_key_share_ks, \
2843 & name .ett.hs_ext_pre_shared_key, \
2844 & name .ett.hs_ext_psk_identity, \
2845 & name .ett.hs_ext_server_name, \
2846 & name .ett.hs_ext_oid_filter, \
2847 & name .ett.hs_ext_quictp_parameter, \
2848 & name .ett.hs_ext_trusted_ca_keys, \
2849 & name .ett.hs_ext_trusted_ca_key, \
2850 & name .ett.hs_sig_hash_alg, \
2851 & name .ett.hs_sig_hash_algs, \
2852 & name .ett.urlhash, \
2853 & name .ett.keyex_params, \
2854 & name .ett.certificates, \
2855 & name .ett.cert_types, \
2856 & name .ett.dnames, \
2857 & name .ett.hs_random, \
2858 & name .ett.cipher_suites, \
2859 & name .ett.comp_methods, \
2860 & name .ett.session_ticket, \
2862 & name .ett.cert_status, \
2863 & name .ett.ocsp_response, \
2864 & name .ett.uncompressed_certificates, \
2865 & name .ett.hs_ext_alps, \
2866 & name .ett.ech_echconfiglist, \
2867 & name .ett.ech_echconfig, \
2868 & name .ett.ech_retry_configs, \
2869 & name .ett.ech_hpke_keyconfig, \
2870 & name .ett.ech_hpke_cipher_suites, \
2871 & name .ett.ech_hpke_cipher_suite, \
2872 & name .ett.ech_decrypt, \
2873 & name .ett.hs_ext_token_binding_key_parameters, \
2878#define SSL_COMMON_EI_LIST(name, prefix) \
2879 { & name .ei.client_version_error, \
2880 { prefix ".handshake.client_version_error", PI_PROTOCOL, PI_WARN, \
2881 "Client Hello legacy version field specifies version 1.3, not version 1.2; some servers may not be able to handle that.", EXPFILL } \
2883 { & name .ei.server_version_error, \
2884 { prefix ".handshake.server_version_error", PI_PROTOCOL, PI_WARN, \
2885 "Server Hello legacy version field specifies version 1.3, not version 1.2; some middleboxes may not be able to handle that.", EXPFILL } \
2887 { & name .ei.legacy_version, \
2888 { prefix ".handshake.legacy_version", PI_DEPRECATED, PI_CHAT, \
2889 "This legacy_version field MUST be ignored. The supported_versions extension is present and MUST be used instead.", EXPFILL } \
2891 { & name .ei.malformed_vector_length, \
2892 { prefix ".malformed.vector_length", PI_PROTOCOL, PI_WARN, \
2893 "Variable vector length is outside the permitted range", EXPFILL } \
2895 { & name .ei.malformed_buffer_too_small, \
2896 { prefix ".malformed.buffer_too_small", PI_MALFORMED, PI_ERROR, \
2897 "Malformed message, not enough data is available", EXPFILL } \
2899 { & name .ei.malformed_trailing_data, \
2900 { prefix ".malformed.trailing_data", PI_PROTOCOL, PI_WARN, \
2901 "Undecoded trailing data is present", EXPFILL } \
2903 { & name .ei.hs_ext_cert_status_undecoded, \
2904 { prefix ".handshake.status_request.undecoded", PI_UNDECODED, PI_NOTE, \
2905 "Responder ID list or Request Extensions are not implemented, contact Wireshark developers if you want this to be supported", EXPFILL } \
2907 { & name .ei.hs_ciphersuite_undecoded, \
2908 { prefix ".handshake.ciphersuite.undecoded", PI_UNDECODED, PI_NOTE, \
2909 "Ciphersuite not implemented, contact Wireshark developers if you want this to be supported", EXPFILL } \
2911 { & name .ei.hs_srv_keyex_illegal, \
2912 { prefix ".handshake.server_keyex_illegal", PI_PROTOCOL, PI_WARN, \
2913 "It is not legal to send the ServerKeyExchange message for this ciphersuite", EXPFILL } \
2915 { & name .ei.resumed, \
2916 { prefix ".resumed", PI_SEQUENCE, PI_NOTE, \
2917 "This session reuses previously negotiated keys (Session resumption)", EXPFILL } \
2919 { & name .ei.record_length_invalid, \
2920 { prefix ".record.length.invalid", PI_PROTOCOL, PI_ERROR, \
2921 "Record fragment length is too small or too large", EXPFILL } \
2923 { & name .ei.decompression_error, \
2924 { prefix ".decompression_error", PI_PROTOCOL, PI_ERROR, \
2925 "Decompression error", EXPFILL } \
2927 { & name .ei.ech_echconfig_invalid_version, \
2928 { prefix ".ech_echconfig_invalid_version", PI_PROTOCOL, PI_ERROR, \
2929 "Invalid/unknown ECHConfig version", EXPFILL } \
2931 { & name .ei.ech_accepted, \
2932 { prefix ".ech_accepted", PI_PROTOCOL, PI_NOTE, \
2933 "Calculated ECH Confirmation matches Server Random bytes, ECH was accepted", EXPFILL } \
2935 { & name .ei.ech_rejected, \
2936 { prefix ".ech_rejected", PI_PROTOCOL, PI_WARN, \
2937 "Calculated ECH Confirmation does not match Server Random bytes, ECH was rejected", EXPFILL } \
2942ssl_common_register_ssl_alpn_dissector_table(
const char *name,
2943 const char *ui_name,
const int proto);
2946ssl_common_register_dtls_alpn_dissector_table(
const char *name,
2947 const char *ui_name,
const int proto);
2952#ifdef SSL_DECRYPT_DEBUG
2954ssl_debug_printf(
const char* fmt,...) G_GNUC_PRINTF(1,2);
2956ssl_print_data(const
char* name, const
unsigned char* data,
size_t len);
2958ssl_print_string(const
char* name, const
StringInfo* data);
2960ssl_set_debug(const
char* name);
2962ssl_debug_flush(
void);
2966static inline void G_GNUC_PRINTF(1,2)
2967ssl_debug_printf(const
char* fmt _U_,...)
2970#define ssl_print_data(a, b, c)
2971#define ssl_print_string(a, b)
2972#define ssl_set_debug(name)
2973#define ssl_debug_flush()
2980 proto_tree *tree, uint32_t offset, uint32_t offset_end);
Definition packet-tls-utils.h:338
Definition packet-tls-utils.h:354
StringInfo dtls13_aad
Definition packet-tls-utils.h:365
StringInfo app_traffic_secret
Definition packet-tls-utils.h:368
uint64_t seq
Definition packet-tls-utils.h:364
Definition packet-tls-utils.c:2737
Definition packet-tls-utils.h:526
Definition packet-tls-utils.h:346
Definition packet-tls-utils.h:430
SslFlow * flow
Definition packet-tls-utils.h:436
unsigned data_len
Definition packet-tls-utils.h:432
uint32_t seq
Definition packet-tls-utils.h:438
int id
Definition packet-tls-utils.h:433
ContentType type
Definition packet-tls-utils.h:435
unsigned char * plain_data
Definition packet-tls-utils.h:431
Definition packet-tls-utils.h:466
Definition packet-tls-utils.h:263
Definition packet-tls-utils.h:447
unsigned reassembly_id
Definition packet-tls-utils.h:450
uint8_t type
Definition packet-tls-utils.h:452
int is_last
Definition packet-tls-utils.h:453
uint32_t offset
Definition packet-tls-utils.h:451
unsigned record_id
Definition packet-tls-utils.h:448
Definition packet_info.h:43
Definition value_string.h:296
Definition packet-tls-utils.h:568
Definition value_string.h:132
Definition value_string.h:169
Definition value_string.h:25
Definition wmem_list.c:23
Definition wmem_strbuf.h:42
Definition wmem_tree-int.h:48
Definition packet-tls-utils.h:425
Definition packet-tls-utils.h:457
Definition packet-tls-utils.h:562
Definition conversation.h:224
Definition packet-tls-utils.h:1233
Definition packet-tls-utils.h:1248
Definition prefs-int.h:27
Definition packet-tls-utils.h:863
Definition packet-tls-utils.h:576
Definition packet-tls-utils.h:1241
Definition packet-tls-utils.h:582
Definition tvbuff-int.h:35