Home
last modified time | relevance | path

Searched refs:protocol_version (Results 1 – 25 of 42) sorted by relevance

12

/NetX-Duo-v6.4.1/test/regression/nx_secure_test/
Dnx_secure_tls_newest_supported_version_coverage_test.c60 …supported_version_negotiate(NX_SECURE_TLS_SESSION* session_ptr, USHORT* protocol_version, UINT id);
68 USHORT protocol_version; in TEST() local
76 _nx_secure_tls_newest_supported_version(&tls_session, &protocol_version, 0); in TEST()
78 _nx_secure_tls_highest_supported_version_negotiate(&tls_session, &protocol_version, 0); in TEST()
82 _nx_secure_tls_newest_supported_version(&tls_session, &protocol_version, 0); in TEST()
84 _nx_secure_tls_highest_supported_version_negotiate(&tls_session, &protocol_version, 0); in TEST()
88 _nx_secure_tls_newest_supported_version(&tls_session, &protocol_version, 0); in TEST()
90 _nx_secure_tls_highest_supported_version_negotiate(&tls_session, &protocol_version, 0); in TEST()
95 _nx_secure_tls_newest_supported_version(&tls_session, &protocol_version, 0); in TEST()
97 _nx_secure_tls_highest_supported_version_negotiate(&tls_session, &protocol_version, 0); in TEST()
[all …]
Dnx_secure_tls_header_test.c37 UINT protocol_version; member
81 header_buffer[1] = (UCHAR)(test_data[i].protocol_version >> 8); in TEST()
82 header_buffer[2] = (UCHAR)test_data[i].protocol_version; in TEST()
90 session.nx_secure_tls_protocol_version = test_data[i].protocol_version; in TEST()
/NetX-Duo-v6.4.1/nx_secure/src/
Dnx_secure_tls_newest_supported_version.c76 USHORT *protocol_version, UINT id) in _nx_secure_tls_newest_supported_version() argument
88 (*protocol_version) = session_ptr -> nx_secure_tls_protocol_version_override; in _nx_secure_tls_newest_supported_version()
99 …(*protocol_version) = nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure_t… in _nx_secure_tls_newest_supported_version()
105 (*protocol_version) = 0x0; in _nx_secure_tls_newest_supported_version()
152 USHORT *protocol_version, UINT id) in _nx_secure_tls_highest_supported_version_negotiate() argument
167 (*protocol_version) = session_ptr -> nx_secure_tls_negotiated_highest_protocol_version; in _nx_secure_tls_highest_supported_version_negotiate()
190 …(*protocol_version) >= nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure_… in _nx_secure_tls_highest_supported_version_negotiate()
201 (*protocol_version) = 0; in _nx_secure_tls_highest_supported_version_negotiate()
212 if ((*protocol_version) > highest_version) in _nx_secure_tls_highest_supported_version_negotiate()
214 (*protocol_version) = highest_version; in _nx_secure_tls_highest_supported_version_negotiate()
[all …]
Dnx_secure_process_server_key_exchange.c101 … USHORT protocol_version, UCHAR *packet_buffer, UINT message_length, in _nx_secure_process_server_key_exchange() argument
149 NX_PARAMETER_NOT_USED(protocol_version); in _nx_secure_process_server_key_exchange()
281 if (protocol_version == NX_SECURE_TLS_VERSION_TLS_1_0 || in _nx_secure_process_server_key_exchange()
282 protocol_version == NX_SECURE_TLS_VERSION_TLS_1_1 || in _nx_secure_process_server_key_exchange()
283 protocol_version == NX_SECURE_DTLS_VERSION_1_0) in _nx_secure_process_server_key_exchange()
285 if (protocol_version == NX_SECURE_TLS_VERSION_TLS_1_0 || in _nx_secure_process_server_key_exchange()
286 protocol_version == NX_SECURE_TLS_VERSION_TLS_1_1) in _nx_secure_process_server_key_exchange()
334 (protocol_version == NX_SECURE_TLS_VERSION_TLS_1_0 || in _nx_secure_process_server_key_exchange()
335 protocol_version == NX_SECURE_TLS_VERSION_TLS_1_1 || in _nx_secure_process_server_key_exchange()
336 protocol_version == NX_SECURE_DTLS_VERSION_1_0)) in _nx_secure_process_server_key_exchange()
[all …]
Dnxe_secure_dtls_server_protocol_version_override.c72 USHORT protocol_version) in _nxe_secure_dtls_server_protocol_version_override() argument
84 switch (protocol_version) in _nxe_secure_dtls_server_protocol_version_override()
94 status = _nx_secure_dtls_server_protocol_version_override(dtls_server, protocol_version); in _nxe_secure_dtls_server_protocol_version_override()
100 NX_PARAMETER_NOT_USED(protocol_version); in _nxe_secure_dtls_server_protocol_version_override()
Dnxe_secure_dtls_client_protocol_version_override.c72 USHORT protocol_version) in _nxe_secure_dtls_client_protocol_version_override() argument
90 switch (protocol_version) in _nxe_secure_dtls_client_protocol_version_override()
100 status = _nx_secure_dtls_client_protocol_version_override(dtls_session, protocol_version); in _nxe_secure_dtls_client_protocol_version_override()
106 NX_PARAMETER_NOT_USED(protocol_version); in _nxe_secure_dtls_client_protocol_version_override()
Dnx_secure_tls_ecc_generate_keys.c122 …rate_keys(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, UCHAR tls_1_… in _nx_secure_tls_ecc_generate_keys() argument
154 NX_PARAMETER_NOT_USED(protocol_version); in _nx_secure_tls_ecc_generate_keys()
362 (protocol_version == NX_SECURE_TLS_VERSION_TLS_1_0 || in _nx_secure_tls_ecc_generate_keys()
363 protocol_version == NX_SECURE_TLS_VERSION_TLS_1_1 || in _nx_secure_tls_ecc_generate_keys()
364 protocol_version == NX_SECURE_DTLS_VERSION_1_0)) in _nx_secure_tls_ecc_generate_keys()
367 (protocol_version == NX_SECURE_TLS_VERSION_TLS_1_0 || in _nx_secure_tls_ecc_generate_keys()
368 protocol_version == NX_SECURE_TLS_VERSION_TLS_1_1)) in _nx_secure_tls_ecc_generate_keys()
521 (protocol_version == NX_SECURE_TLS_VERSION_TLS_1_0 || in _nx_secure_tls_ecc_generate_keys()
522 protocol_version == NX_SECURE_TLS_VERSION_TLS_1_1 || in _nx_secure_tls_ecc_generate_keys()
523 protocol_version == NX_SECURE_DTLS_VERSION_1_0)) in _nx_secure_tls_ecc_generate_keys()
[all …]
Dnx_secure_tls_generate_premaster_secret.c83 USHORT protocol_version; in _nx_secure_tls_generate_premaster_secret() local
92 _nx_secure_tls_protocol_version_get(tls_session, &protocol_version, id); in _nx_secure_tls_generate_premaster_secret()
95 …ecure_generate_premaster_secret(tls_session -> nx_secure_tls_session_ciphersuite, protocol_version, in _nx_secure_tls_generate_premaster_secret()
101 …ecure_generate_premaster_secret(tls_session -> nx_secure_tls_session_ciphersuite, protocol_version, in _nx_secure_tls_generate_premaster_secret()
Dnx_secure_dtls_server_protocol_version_override.c73 USHORT protocol_version) in _nx_secure_dtls_server_protocol_version_override() argument
77 dtls_server -> nx_dtls_server_protocol_version_override = protocol_version; in _nx_secure_dtls_server_protocol_version_override()
83 NX_PARAMETER_NOT_USED(protocol_version); in _nx_secure_dtls_server_protocol_version_override()
Dnx_secure_tls_protocol_version_get.c74 USHORT *protocol_version, UINT id) in _nx_secure_tls_protocol_version_get() argument
81 (*protocol_version) = session_ptr -> nx_secure_tls_protocol_version_override; in _nx_secure_tls_protocol_version_get()
86 _nx_secure_tls_newest_supported_version(session_ptr, protocol_version, id); in _nx_secure_tls_protocol_version_get()
Dnx_secure_tls_check_protocol_version.c109 USHORT protocol_version, UINT id) in _nx_secure_tls_check_protocol_version() argument
118 if (tls_session -> nx_secure_tls_protocol_version == protocol_version) in _nx_secure_tls_check_protocol_version()
140 if (tls_session -> nx_secure_tls_protocol_version_override == protocol_version) in _nx_secure_tls_check_protocol_version()
154 …if (protocol_version == nx_secure_supported_versions_list[id].nx_secure_versions_list[i].nx_secure… in _nx_secure_tls_check_protocol_version()
Dnx_secure_dtls_client_protocol_version_override.c74 USHORT protocol_version) in _nx_secure_dtls_client_protocol_version_override() argument
79 …session_protocol_version_override(&(dtls_session -> nx_secure_dtls_tls_session), protocol_version); in _nx_secure_dtls_client_protocol_version_override()
85 NX_PARAMETER_NOT_USED(protocol_version); in _nx_secure_dtls_client_protocol_version_override()
Dnx_secure_dtls_send_helloverifyrequest.c76 USHORT protocol_version; in _nx_secure_dtls_send_helloverifyrequest() local
99 protocol_version = NX_SECURE_DTLS_VERSION_1_0; in _nx_secure_dtls_send_helloverifyrequest()
101 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_dtls_send_helloverifyrequest()
102 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_dtls_send_helloverifyrequest()
Dnx_secure_tls_session_protocol_version_override.c74 USHORT protocol_version) in _nx_secure_tls_session_protocol_version_override() argument
77 if (protocol_version == NX_SECURE_TLS_VERSION_TLS_1_3) in _nx_secure_tls_session_protocol_version_override()
93 tls_session -> nx_secure_tls_protocol_version_override = protocol_version; in _nx_secure_tls_session_protocol_version_override()
Dnxe_secure_tls_session_protocol_version_override.c79 USHORT protocol_version) in _nxe_secure_tls_session_protocol_version_override() argument
89 switch (protocol_version) in _nxe_secure_tls_session_protocol_version_override()
118 status = _nx_secure_tls_session_protocol_version_override(tls_session, protocol_version); in _nxe_secure_tls_session_protocol_version_override()
Dnx_secure_tls_process_header.c81 USHORT protocol_version; in _nx_secure_tls_process_header() local
115 protocol_version = (USHORT)(((USHORT)header_data[1] << 8) | header_data[2]); in _nx_secure_tls_process_header()
127 … status = _nx_secure_tls_check_protocol_version(tls_session, protocol_version, NX_SECURE_TLS); in _nx_secure_tls_process_header()
Dnx_secure_tls_send_clienthello.c102 USHORT protocol_version; in _nx_secure_tls_send_clienthello() local
130 _nx_secure_tls_protocol_version_get(tls_session, &protocol_version, NX_SECURE_TLS); in _nx_secure_tls_send_clienthello()
134 if(protocol_version != newest_version) in _nx_secure_tls_send_clienthello()
172 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_tls_send_clienthello()
173 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_tls_send_clienthello()
174 tls_session -> nx_secure_tls_protocol_version = protocol_version; in _nx_secure_tls_send_clienthello()
Dnx_secure_tls_process_clienthello.c120 USHORT protocol_version; in _nx_secure_tls_process_clienthello() local
221 protocol_version = (USHORT)((packet_buffer[length] << 8) | packet_buffer[length + 1]); in _nx_secure_tls_process_clienthello()
230 … status = _nx_secure_tls_check_protocol_version(tls_session, protocol_version, NX_SECURE_TLS); in _nx_secure_tls_process_clienthello()
241 … _nx_secure_tls_highest_supported_version_negotiate(tls_session, &protocol_version, NX_SECURE_TLS); in _nx_secure_tls_process_clienthello()
243 if (protocol_version == 0x0) in _nx_secure_tls_process_clienthello()
259 tls_session -> nx_secure_tls_protocol_version = protocol_version; in _nx_secure_tls_process_clienthello()
541 if (protocol_version != newest_version) in _nx_secure_tls_process_clienthello()
Dnx_secure_tls_send_serverhello.c103 USHORT protocol_version; in _nx_secure_tls_send_serverhello() local
128 protocol_version = tls_session -> nx_secure_tls_protocol_version; in _nx_secure_tls_send_serverhello()
130 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_tls_send_serverhello()
131 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_tls_send_serverhello()
Dnx_secure_dtls_send_serverhello.c92 USHORT protocol_version; in _nx_secure_dtls_send_serverhello() local
119 protocol_version = tls_session -> nx_secure_tls_protocol_version; in _nx_secure_dtls_send_serverhello()
121 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_dtls_send_serverhello()
122 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_dtls_send_serverhello()
Dnx_secure_dtls_process_header.c85 USHORT protocol_version; in _nx_secure_dtls_process_header() local
130 protocol_version = (USHORT)(((USHORT)header_data[1] << 8) | header_data[2]); in _nx_secure_dtls_process_header()
301 … status = _nx_secure_tls_check_protocol_version(tls_session, protocol_version, NX_SECURE_DTLS); in _nx_secure_dtls_process_header()
Dnx_secure_generate_server_key_exchange.c82 …_exchange(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, UCHAR tls_1_… in _nx_secure_generate_server_key_exchange() argument
119 NX_PARAMETER_NOT_USED(protocol_version); in _nx_secure_generate_server_key_exchange()
225 status = _nx_secure_tls_ecc_generate_keys(ciphersuite, protocol_version, tls_1_3, in _nx_secure_generate_server_key_exchange()
Dnx_secure_dtls_process_clienthello.c111 USHORT protocol_version; in _nx_secure_dtls_process_clienthello() local
168 protocol_version = (USHORT)(((USHORT)packet_buffer[0] << 8) | packet_buffer[1]); in _nx_secure_dtls_process_clienthello()
173 status = _nx_secure_tls_check_protocol_version(tls_session, protocol_version, NX_SECURE_DTLS); in _nx_secure_dtls_process_clienthello()
184 …_nx_secure_tls_highest_supported_version_negotiate(tls_session, &protocol_version, NX_SECURE_DTLS); in _nx_secure_dtls_process_clienthello()
186 if (protocol_version == 0x0) in _nx_secure_dtls_process_clienthello()
201 tls_session -> nx_secure_tls_protocol_version = protocol_version; in _nx_secure_dtls_process_clienthello()
Dnx_secure_dtls_send_clienthello.c112 USHORT protocol_version; in _nx_secure_dtls_send_clienthello() local
147 _nx_secure_tls_protocol_version_get(tls_session, &protocol_version, NX_SECURE_DTLS); in _nx_secure_dtls_send_clienthello()
149 if (protocol_version == 0x0) in _nx_secure_dtls_send_clienthello()
154 tls_session -> nx_secure_tls_protocol_version = protocol_version; in _nx_secure_dtls_send_clienthello()
194 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_dtls_send_clienthello()
195 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_dtls_send_clienthello()
Dnx_secure_generate_session_keys.c79 …e_generate_session_keys(const NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, USHORT protocol_version, in _nx_secure_generate_session_keys() argument
92 NX_PARAMETER_NOT_USED(protocol_version); in _nx_secure_generate_session_keys()

12