/NetX-Duo-v6.2.1/test/regression/nx_secure_test/ |
D | nx_secure_dtls_sliding_window_test.c | 19 static NX_SECURE_DTLS_SESSION dtls_session; variable 81 dtls_session.nx_secure_dtls_sliding_window = 0; in ntest_0_entry() 85 dtls_session.nx_secure_dtls_tls_session.nx_secure_tls_remote_sequence_number[0] = 0; in ntest_0_entry() 86 dtls_session.nx_secure_dtls_tls_session.nx_secure_tls_remote_sequence_number[1] = 0; in ntest_0_entry() 89 status = _nx_secure_dtls_session_sliding_window_check(&dtls_session, remote_number); in ntest_0_entry() 93 dtls_session.nx_secure_dtls_tls_session.nx_secure_tls_remote_sequence_number[0] = 0; in ntest_0_entry() 94 dtls_session.nx_secure_dtls_tls_session.nx_secure_tls_remote_sequence_number[1] = 0; in ntest_0_entry() 97 status = _nx_secure_dtls_session_sliding_window_check(&dtls_session, remote_number); in ntest_0_entry() 101 dtls_session.nx_secure_dtls_tls_session.nx_secure_tls_remote_sequence_number[0] = 0; in ntest_0_entry() 102 dtls_session.nx_secure_dtls_tls_session.nx_secure_tls_remote_sequence_number[1] = 3; in ntest_0_entry() [all …]
|
/NetX-Duo-v6.2.1/nx_secure/src/ |
D | nx_secure_dtls_session_reset.c | 78 UINT _nx_secure_dtls_session_reset(NX_SECURE_DTLS_SESSION *dtls_session) in _nx_secure_dtls_session_reset() argument 88 dtls_session -> nx_secure_dtls_local_ip_address_index = 0xffffffff; in _nx_secure_dtls_session_reset() 89 dtls_session -> nx_secure_dtls_local_port = 0; in _nx_secure_dtls_session_reset() 92 dtls_session -> nx_secure_dtls_remote_ip_address.nxd_ip_version = 0; in _nx_secure_dtls_session_reset() 93 dtls_session -> nx_secure_dtls_remote_port = 0; in _nx_secure_dtls_session_reset() 96 dtls_session -> nx_secure_dtls_session_in_use = NX_FALSE; in _nx_secure_dtls_session_reset() 99 dtls_session -> nx_secure_dtls_cookie_length = 0; in _nx_secure_dtls_session_reset() 100 …NX_SECURE_MEMSET(dtls_session -> nx_secure_dtls_cookie, 0, sizeof(dtls_session -> nx_secure_dtls_c… in _nx_secure_dtls_session_reset() 101 dtls_session -> nx_secure_dtls_client_cookie_ptr = NX_NULL; in _nx_secure_dtls_session_reset() 104 dtls_session -> nx_secure_dtls_fragment_length = 0; in _nx_secure_dtls_session_reset() [all …]
|
D | nx_secure_dtls_retransmit.c | 76 VOID _nx_secure_dtls_retransmit(NX_SECURE_DTLS_SESSION *dtls_session) in _nx_secure_dtls_retransmit() argument 82 packet_ptr = dtls_session -> nx_secure_dtls_transmit_sent_head; in _nx_secure_dtls_retransmit() 106 if (dtls_session -> nx_secure_dtls_local_ip_address_index == 0xffffffff) in _nx_secure_dtls_retransmit() 110 _nxd_udp_socket_send(dtls_session -> nx_secure_dtls_udp_socket, packet_ptr, in _nx_secure_dtls_retransmit() 111 &dtls_session -> nx_secure_dtls_remote_ip_address, in _nx_secure_dtls_retransmit() 112 dtls_session -> nx_secure_dtls_remote_port); in _nx_secure_dtls_retransmit() 118 _nxd_udp_socket_source_send(dtls_session -> nx_secure_dtls_udp_socket, packet_ptr, in _nx_secure_dtls_retransmit() 119 &dtls_session -> nx_secure_dtls_remote_ip_address, in _nx_secure_dtls_retransmit() 120 dtls_session -> nx_secure_dtls_remote_port, in _nx_secure_dtls_retransmit() 121 dtls_session -> nx_secure_dtls_local_ip_address_index); in _nx_secure_dtls_retransmit() [all …]
|
D | nx_secure_dtls_server_handshake.c | 126 UINT _nx_secure_dtls_server_handshake(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *packet_buffer, in _nx_secure_dtls_server_handshake() argument 156 tls_session = &dtls_session -> nx_secure_dtls_tls_session; in _nx_secure_dtls_server_handshake() 171 if (message_seq < dtls_session -> nx_secure_dtls_remote_handshake_sequence) in _nx_secure_dtls_server_handshake() 197 if(message_seq != dtls_session -> nx_secure_dtls_expected_handshake_sequence) in _nx_secure_dtls_server_handshake() 204 …if (message_seq > dtls_session -> nx_secure_dtls_remote_handshake_sequence || (message_seq == 0 &&… in _nx_secure_dtls_server_handshake() 207 dtls_session -> nx_secure_dtls_remote_handshake_sequence = message_seq; in _nx_secure_dtls_server_handshake() 208 dtls_session -> nx_secure_dtls_fragment_length = message_length; in _nx_secure_dtls_server_handshake() 211 if (fragment_length > dtls_session -> nx_secure_dtls_fragment_length) in _nx_secure_dtls_server_handshake() 217 dtls_session -> nx_secure_dtls_fragment_length -= fragment_length; in _nx_secure_dtls_server_handshake() 223 if (dtls_session -> nx_secure_dtls_fragment_length > 0) in _nx_secure_dtls_server_handshake() [all …]
|
D | nx_secure_dtls_session_delete.c | 69 UINT _nx_secure_dtls_session_delete(NX_SECURE_DTLS_SESSION *dtls_session) in _nx_secure_dtls_session_delete() argument 76 _nx_secure_dtls_session_reset(dtls_session); in _nx_secure_dtls_session_delete() 79 status = _nx_secure_tls_session_delete(&dtls_session -> nx_secure_dtls_tls_session); in _nx_secure_dtls_session_delete() 86 if (dtls_session == dtls_session -> nx_secure_dtls_created_next) in _nx_secure_dtls_session_delete() 96 if (dtls_session -> nx_secure_dtls_created_next != NX_NULL) in _nx_secure_dtls_session_delete() 98 (dtls_session -> nx_secure_dtls_created_next) -> nx_secure_dtls_created_previous = in _nx_secure_dtls_session_delete() 99 dtls_session -> nx_secure_dtls_created_previous; in _nx_secure_dtls_session_delete() 102 (dtls_session -> nx_secure_dtls_created_previous) -> nx_secure_dtls_created_next = in _nx_secure_dtls_session_delete() 103 dtls_session -> nx_secure_dtls_created_next; in _nx_secure_dtls_session_delete() 106 if (_nx_secure_dtls_created_ptr == dtls_session) in _nx_secure_dtls_session_delete() [all …]
|
D | nx_secure_dtls_client_handshake.c | 123 UINT _nx_secure_dtls_client_handshake(NX_SECURE_DTLS_SESSION *dtls_session, UCHAR *packet_buffer, in _nx_secure_dtls_client_handshake() argument 147 tls_session = &dtls_session -> nx_secure_dtls_tls_session; in _nx_secure_dtls_client_handshake() 172 if (message_seq < dtls_session -> nx_secure_dtls_remote_handshake_sequence) in _nx_secure_dtls_client_handshake() 192 if(message_seq != dtls_session -> nx_secure_dtls_expected_handshake_sequence) in _nx_secure_dtls_client_handshake() 199 …if (message_seq > dtls_session -> nx_secure_dtls_remote_handshake_sequence || (message_seq == 0 &&… in _nx_secure_dtls_client_handshake() 202 dtls_session -> nx_secure_dtls_remote_handshake_sequence = message_seq; in _nx_secure_dtls_client_handshake() 203 dtls_session -> nx_secure_dtls_fragment_length = message_length; in _nx_secure_dtls_client_handshake() 206 if (fragment_length > dtls_session -> nx_secure_dtls_fragment_length) in _nx_secure_dtls_client_handshake() 212 dtls_session -> nx_secure_dtls_fragment_length -= fragment_length; in _nx_secure_dtls_client_handshake() 218 if (dtls_session -> nx_secure_dtls_fragment_length > 0) in _nx_secure_dtls_client_handshake() [all …]
|
D | nx_secure_dtls_session_receive.c | 94 UINT _nx_secure_dtls_session_receive(NX_SECURE_DTLS_SESSION *dtls_session, in _nx_secure_dtls_session_receive() argument 121 tls_session = &(dtls_session -> nx_secure_dtls_tls_session); in _nx_secure_dtls_session_receive() 142 if (dtls_session -> nx_secure_dtls_receive_queue_head == NX_NULL) in _nx_secure_dtls_session_receive() 155 if (dtls_session -> nx_secure_dtls_thread_suspended) in _nx_secure_dtls_session_receive() 165 dtls_session -> nx_secure_dtls_thread_suspended = tx_thread_identify(); in _nx_secure_dtls_session_receive() 181 if (!dtls_session -> nx_secure_dtls_session_in_use) in _nx_secure_dtls_session_receive() 189 … if ((volatile NX_PACKET *)dtls_session -> nx_secure_dtls_receive_queue_head == NX_NULL) in _nx_secure_dtls_session_receive() 193 dtls_session -> nx_secure_dtls_thread_suspended = NX_NULL; in _nx_secure_dtls_session_receive() 200 packet_ptr = dtls_session -> nx_secure_dtls_receive_queue_head; in _nx_secure_dtls_session_receive() 203 dtls_session -> nx_secure_dtls_receive_queue_head = packet_ptr -> nx_packet_queue_next; in _nx_secure_dtls_session_receive() [all …]
|
D | nx_secure_dtls_session_send.c | 77 UINT _nx_secure_dtls_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr, in _nx_secure_dtls_session_send() argument 87 if (dtls_session -> nx_secure_dtls_remote_ip_address.nxd_ip_version == 0) in _nx_secure_dtls_session_send() 91 …NX_SECURE_MEMCPY(&dtls_session -> nx_secure_dtls_remote_ip_address, ip_address, sizeof(NXD_ADDRESS… in _nx_secure_dtls_session_send() 92 dtls_session -> nx_secure_dtls_local_port = port; in _nx_secure_dtls_session_send() 94 …else if ((dtls_session -> nx_secure_dtls_remote_ip_address.nxd_ip_version != ip_address -> nxd_ip_… in _nx_secure_dtls_session_send() 95 (dtls_session -> nx_secure_dtls_remote_port != port)) in _nx_secure_dtls_session_send() 109 …if (dtls_session -> nx_secure_dtls_remote_ip_address.nxd_ip_address.v4 != ip_address -> nxd_ip_add… in _nx_secure_dtls_session_send() 124 …if ((dtls_session -> nx_secure_dtls_remote_ip_address.nxd_ip_address.v6[0] != ip_address -> nxd_ip… in _nx_secure_dtls_session_send() 125 …(dtls_session -> nx_secure_dtls_remote_ip_address.nxd_ip_address.v6[1] != ip_address -> nxd_ip_add… in _nx_secure_dtls_session_send() 126 …(dtls_session -> nx_secure_dtls_remote_ip_address.nxd_ip_address.v6[2] != ip_address -> nxd_ip_add… in _nx_secure_dtls_session_send() [all …]
|
D | nx_secure_dtls_session_start.c | 82 UINT _nx_secure_dtls_session_start(NX_SECURE_DTLS_SESSION *dtls_session, NX_UDP_SOCKET *udp_socket, in _nx_secure_dtls_session_start() argument 101 tls_session = &dtls_session -> nx_secure_dtls_tls_session; in _nx_secure_dtls_session_start() 116 dtls_session -> nx_secure_dtls_udp_socket = udp_socket; in _nx_secure_dtls_session_start() 140 …status = _nx_secure_dtls_allocate_handshake_packet(dtls_session, tls_session -> nx_secure_tls_pack… in _nx_secure_dtls_session_start() 151 status = _nx_secure_dtls_send_clienthello(dtls_session, send_packet); in _nx_secure_dtls_session_start() 157 …status = _nx_secure_dtls_send_handshake_record(dtls_session, send_packet, NX_SECURE_TLS_CLIENT_HEL… in _nx_secure_dtls_session_start() 195 if ((dtls_session -> nx_secure_dtls_handshake_timeout > wait_option) || in _nx_secure_dtls_session_start() 196 (dtls_session -> nx_secure_dtls_handshake_timeout == 0) || in _nx_secure_dtls_session_start() 197 (dtls_session -> nx_secure_dtls_transmit_sent_head == NX_NULL)) in _nx_secure_dtls_session_start() 203 minimum_wait_option = dtls_session -> nx_secure_dtls_handshake_timeout; in _nx_secure_dtls_session_start() [all …]
|
D | nx_secure_dtls_send_record.c | 97 UINT _nx_secure_dtls_send_record(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *send_packet, in _nx_secure_dtls_send_record() argument 121 tls_session = &dtls_session -> nx_secure_dtls_tls_session; in _nx_secure_dtls_send_record() 153 record_header[3] = (UCHAR)(dtls_session -> nx_secure_dtls_local_epoch >> 8); in _nx_secure_dtls_send_record() 154 record_header[4] = (UCHAR)(dtls_session -> nx_secure_dtls_local_epoch); in _nx_secure_dtls_send_record() 218 …_nx_secure_dtls_hash_record(dtls_session, tls_session -> nx_secure_tls_local_sequence_number, reco… in _nx_secure_dtls_send_record() 264 if (dtls_session -> nx_secure_dtls_transmit_sent_head) in _nx_secure_dtls_send_record() 267 …(dtls_session -> nx_secure_dtls_transmit_sent_tail) -> nx_packet_union_next.nx_packet_tcp_queue_ne… in _nx_secure_dtls_send_record() 268 dtls_session -> nx_secure_dtls_transmit_sent_tail = send_packet; in _nx_secure_dtls_send_record() 273 dtls_session -> nx_secure_dtls_transmit_sent_head = send_packet; in _nx_secure_dtls_send_record() 274 dtls_session -> nx_secure_dtls_transmit_sent_tail = send_packet; in _nx_secure_dtls_send_record() [all …]
|
D | nx_secure_dtls_send_helloverifyrequest.c | 69 UINT _nx_secure_dtls_send_helloverifyrequest(NX_SECURE_DTLS_SESSION *dtls_session, in _nx_secure_dtls_send_helloverifyrequest() argument 85 (3u + dtls_session -> nx_secure_dtls_cookie_length)) in _nx_secure_dtls_send_helloverifyrequest() 106 dtls_session -> nx_secure_dtls_cookie_length = 20; in _nx_secure_dtls_send_helloverifyrequest() 107 packet_buffer[length] = (UCHAR)(dtls_session -> nx_secure_dtls_cookie_length); in _nx_secure_dtls_send_helloverifyrequest() 111 for (i = 0; i < dtls_session -> nx_secure_dtls_cookie_length; i += (UINT)sizeof(random_value)) in _nx_secure_dtls_send_helloverifyrequest() 115 NX_SECURE_MEMCPY(&dtls_session -> nx_secure_dtls_cookie[i], in _nx_secure_dtls_send_helloverifyrequest() 119 … if (dtls_session -> nx_secure_dtls_cookie_length > sizeof(dtls_session -> nx_secure_dtls_cookie)) in _nx_secure_dtls_send_helloverifyrequest() 127 …NX_SECURE_MEMCPY(&packet_buffer[length], dtls_session -> nx_secure_dtls_cookie, dtls_session -> nx… in _nx_secure_dtls_send_helloverifyrequest() 128 length += dtls_session -> nx_secure_dtls_cookie_length; in _nx_secure_dtls_send_helloverifyrequest()
|
D | nx_secure_dtls_process_helloverifyrequest.c | 73 UINT _nx_secure_dtls_process_helloverifyrequest(NX_SECURE_DTLS_SESSION *dtls_session, in _nx_secure_dtls_process_helloverifyrequest() argument 92 dtls_session -> nx_secure_dtls_cookie_length = packet_buffer[length]; in _nx_secure_dtls_process_helloverifyrequest() 95 if (dtls_session -> nx_secure_dtls_cookie_length > NX_SECURE_DTLS_MAX_COOKIE_LENGTH) in _nx_secure_dtls_process_helloverifyrequest() 97 dtls_session -> nx_secure_dtls_cookie_length = 0; in _nx_secure_dtls_process_helloverifyrequest() 101 if ((3u + dtls_session -> nx_secure_dtls_cookie_length) > message_length) in _nx_secure_dtls_process_helloverifyrequest() 103 dtls_session -> nx_secure_dtls_cookie_length = 0; in _nx_secure_dtls_process_helloverifyrequest() 108 dtls_session -> nx_secure_dtls_client_cookie_ptr = &packet_buffer[length]; in _nx_secure_dtls_process_helloverifyrequest() 111 …dtls_session -> nx_secure_dtls_tls_session.nx_secure_tls_client_state = NX_SECURE_TLS_CLIENT_STATE… in _nx_secure_dtls_process_helloverifyrequest()
|
D | nx_secure_dtls_session_end.c | 83 UINT _nx_secure_dtls_session_end(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option) in _nx_secure_dtls_session_end() argument 94 tls_session = &dtls_session -> nx_secure_dtls_tls_session; in _nx_secure_dtls_session_end() 114 if(!dtls_session -> nx_secure_dtls_tls_session.nx_secure_tls_remote_session_active) in _nx_secure_dtls_session_end() 118 status = _nx_secure_dtls_session_reset(dtls_session); in _nx_secure_dtls_session_end() 127 …status = _nx_secure_dtls_packet_allocate(dtls_session, tls_session -> nx_secure_tls_packet_pool, &… in _nx_secure_dtls_session_end() 132 _nx_secure_dtls_session_reset(dtls_session); in _nx_secure_dtls_session_end() 143 … status = _nx_secure_dtls_send_record(dtls_session, send_packet, NX_SECURE_TLS_ALERT, wait_option); in _nx_secure_dtls_session_end() 149 _nx_secure_dtls_session_reset(dtls_session); in _nx_secure_dtls_session_end() 165 status = _nx_secure_dtls_session_receive(dtls_session, &incoming_packet, wait_option); in _nx_secure_dtls_session_end() 180 status = _nx_secure_dtls_session_reset(dtls_session); in _nx_secure_dtls_session_end() [all …]
|
D | nxe_secure_dtls_server_session_start.c | 66 UINT _nxe_secure_dtls_server_session_start(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option) in _nxe_secure_dtls_server_session_start() argument 72 if (dtls_session == NX_NULL) in _nxe_secure_dtls_server_session_start() 78 if (dtls_session->nx_secure_dtls_udp_socket == NX_NULL || in _nxe_secure_dtls_server_session_start() 79 (!dtls_session -> nx_secure_dtls_session_in_use) || in _nxe_secure_dtls_server_session_start() 80 dtls_session->nx_secure_dtls_tls_session.nx_secure_tls_id != NX_SECURE_TLS_ID) in _nxe_secure_dtls_server_session_start() 86 status = _nx_secure_dtls_server_session_start(dtls_session, wait_option); in _nxe_secure_dtls_server_session_start() 90 NX_PARAMETER_NOT_USED(dtls_session); in _nxe_secure_dtls_server_session_start()
|
D | nx_secure_dtls_receive_callback.c | 101 NX_SECURE_DTLS_SESSION *dtls_session; in _nx_secure_dtls_receive_callback() local 130 …status = nx_secure_dtls_session_cache_find(dtls_server, &dtls_session, &ip_address, remote_port, l… in _nx_secure_dtls_receive_callback() 168 …status = nx_secure_dtls_session_cache_get_new(dtls_server, &dtls_session, &ip_address, remote_port… in _nx_secure_dtls_receive_callback() 279 dtls_session -> nx_secure_dtls_receive_queue_head = packet_ptr; in _nx_secure_dtls_receive_callback() 286 dtls_server -> nx_secure_dtls_connect_notify(dtls_session, &ip_address, remote_port); in _nx_secure_dtls_receive_callback() 301 if (!dtls_session -> nx_secure_dtls_session_in_use) in _nx_secure_dtls_receive_callback() 310 if (dtls_session -> nx_secure_dtls_receive_queue_head == NX_NULL) in _nx_secure_dtls_receive_callback() 312 dtls_session -> nx_secure_dtls_receive_queue_head = packet_ptr; in _nx_secure_dtls_receive_callback() 316 temp_packet_ptr = dtls_session -> nx_secure_dtls_receive_queue_head; in _nx_secure_dtls_receive_callback() 329 if (dtls_session -> nx_secure_dtls_thread_suspended) in _nx_secure_dtls_receive_callback() [all …]
|
D | nx_secure_dtls_session_sliding_window_update.c | 69 UINT _nx_secure_dtls_session_sliding_window_update(NX_SECURE_DTLS_SESSION *dtls_session, ULONG *seq… in _nx_secure_dtls_session_sliding_window_update() argument 76 tls_session = &dtls_session -> nx_secure_dtls_tls_session; in _nx_secure_dtls_session_sliding_window_update() 108 …dtls_session -> nx_secure_dtls_sliding_window = dtls_session -> nx_secure_dtls_sliding_window | ma… in _nx_secure_dtls_session_sliding_window_update() 126 if(delta > (sizeof(dtls_session -> nx_secure_dtls_sliding_window) * 8)) in _nx_secure_dtls_session_sliding_window_update() 129 dtls_session -> nx_secure_dtls_sliding_window = 1; in _nx_secure_dtls_session_sliding_window_update() 134 dtls_session -> nx_secure_dtls_sliding_window <<= delta; in _nx_secure_dtls_session_sliding_window_update() 135 dtls_session -> nx_secure_dtls_sliding_window |= 0x1; in _nx_secure_dtls_session_sliding_window_update()
|
D | nxe_secure_dtls_session_end.c | 74 UINT _nxe_secure_dtls_session_end(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option) in _nxe_secure_dtls_session_end() argument 79 if (dtls_session == NX_NULL) in _nxe_secure_dtls_session_end() 85 if (dtls_session->nx_secure_dtls_tls_session.nx_secure_tls_id != NX_SECURE_TLS_ID || in _nxe_secure_dtls_session_end() 86 !dtls_session -> nx_secure_dtls_session_in_use) in _nxe_secure_dtls_session_end() 91 status = _nx_secure_dtls_session_end(dtls_session, wait_option); in _nxe_secure_dtls_session_end() 96 NX_PARAMETER_NOT_USED(dtls_session); in _nxe_secure_dtls_session_end()
|
D | nxe_secure_dtls_session_client_info_get.c | 70 UINT _nxe_secure_dtls_session_client_info_get(NX_SECURE_DTLS_SESSION *dtls_session, in _nxe_secure_dtls_session_client_info_get() argument 78 if (dtls_session == NX_NULL || client_ip_address == NX_NULL || in _nxe_secure_dtls_session_client_info_get() 85 if (dtls_session->nx_secure_dtls_tls_session.nx_secure_tls_id != NX_SECURE_TLS_ID) in _nxe_secure_dtls_session_client_info_get() 91 socket_ptr = dtls_session->nx_secure_dtls_udp_socket; in _nxe_secure_dtls_session_client_info_get() 100 …status = _nx_secure_dtls_session_client_info_get(dtls_session, client_ip_address, client_port, loc… in _nxe_secure_dtls_session_client_info_get() 104 NX_PARAMETER_NOT_USED(dtls_session); in _nxe_secure_dtls_session_client_info_get()
|
D | nx_secure_dtls_process_record.c | 91 UINT _nx_secure_dtls_process_record(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr, in _nx_secure_dtls_process_record() argument 115 tls_session = &dtls_session -> nx_secure_dtls_tls_session; in _nx_secure_dtls_process_record() 122 window_rewind = dtls_session -> nx_secure_dtls_sliding_window; in _nx_secure_dtls_process_record() 125 …status = _nx_secure_dtls_process_header(dtls_session, packet_ptr, record_offset, &message_type, &m… in _nx_secure_dtls_process_record() 202 …status = _nx_secure_dtls_verify_mac(dtls_session, header_data, header_length, packet_data, &messag… in _nx_secure_dtls_process_record() 210 dtls_session -> nx_secure_dtls_sliding_window = window_rewind; in _nx_secure_dtls_process_record() 251 …dtls_session -> nx_secure_dtls_remote_epoch = (USHORT)(dtls_session -> nx_secure_dtls_remote_epoch… in _nx_secure_dtls_process_record() 269 … status = _nx_secure_dtls_server_handshake(dtls_session, packet_data, message_length, wait_option); in _nx_secure_dtls_process_record() 276 … status = _nx_secure_dtls_client_handshake(dtls_session, packet_data, message_length, wait_option); in _nx_secure_dtls_process_record() 304 dtls_session -> nx_secure_dtls_sliding_window = window_rewind; in _nx_secure_dtls_process_record()
|
D | nx_secure_dtls_server_session_send.c | 68 UINT _nx_secure_dtls_server_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_pt… in _nx_secure_dtls_server_session_send() argument 73 … = _nx_secure_dtls_session_send(dtls_session, packet_ptr, &(dtls_session->nx_secure_dtls_remote_ip… in _nx_secure_dtls_server_session_send() 77 NX_PARAMETER_NOT_USED(dtls_session); in _nx_secure_dtls_server_session_send()
|
D | nx_secure_dtls_session_client_info_get.c | 70 UINT _nx_secure_dtls_session_client_info_get(NX_SECURE_DTLS_SESSION *dtls_session, in _nx_secure_dtls_session_client_info_get() argument 78 socket_ptr = dtls_session->nx_secure_dtls_udp_socket; in _nx_secure_dtls_session_client_info_get() 88 ip_address = &(dtls_session->nx_secure_dtls_remote_ip_address); in _nx_secure_dtls_session_client_info_get() 110 *client_port = dtls_session->nx_secure_dtls_remote_port; in _nx_secure_dtls_session_client_info_get() 111 *local_port = dtls_session->nx_secure_dtls_local_port; in _nx_secure_dtls_session_client_info_get() 115 NX_PARAMETER_NOT_USED(dtls_session); in _nx_secure_dtls_session_client_info_get()
|
D | nx_secure_dtls_client_session_start.c | 71 UINT _nx_secure_dtls_client_session_start(NX_SECURE_DTLS_SESSION *dtls_session, NX_UDP_SOCKET *udp_… in _nx_secure_dtls_client_session_start() argument 78 remote_ip = &(dtls_session->nx_secure_dtls_remote_ip_address); in _nx_secure_dtls_client_session_start() 102 dtls_session->nx_secure_dtls_remote_port = port; in _nx_secure_dtls_client_session_start() 105 dtls_session -> nx_secure_dtls_session_in_use = NX_TRUE; in _nx_secure_dtls_client_session_start() 108 status = _nx_secure_dtls_session_start(dtls_session, udp_socket, NX_TRUE, wait_option); in _nx_secure_dtls_client_session_start() 112 NX_PARAMETER_NOT_USED(dtls_session); in _nx_secure_dtls_client_session_start()
|
D | nxe_secure_dtls_server_session_send.c | 67 UINT _nxe_secure_dtls_server_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_p… in _nxe_secure_dtls_server_session_send() argument 72 if (dtls_session == NX_NULL || packet_ptr == NX_NULL) in _nxe_secure_dtls_server_session_send() 78 if (dtls_session->nx_secure_dtls_tls_session.nx_secure_tls_id != NX_SECURE_TLS_ID) in _nxe_secure_dtls_server_session_send() 84 status = _nx_secure_dtls_server_session_send(dtls_session, packet_ptr); in _nxe_secure_dtls_server_session_send() 88 NX_PARAMETER_NOT_USED(dtls_session); in _nxe_secure_dtls_server_session_send()
|
/NetX-Duo-v6.2.1/nx_secure/inc/ |
D | nx_secure_dtls.h | 223 …UINT (*nx_secure_dtls_connect_notify)(struct NX_SECURE_DTLS_SESSION_STRUCT *dtls_session, NXD_ADDR… 224 UINT (*nx_secure_dtls_receive_notify)(struct NX_SECURE_DTLS_SESSION_STRUCT *dtls_session); 225 UINT (*nx_secure_dtls_disconnect_notify)(struct NX_SECURE_DTLS_SESSION_STRUCT *dtls_session); 226 …UINT (*nx_secure_dtls_error_notify)(struct NX_SECURE_DTLS_SESSION_STRUCT *dtls_session, UINT error… 252 … UINT (*connect_notify)(NX_SECURE_DTLS_SESSION *dtls_session, NXD_ADDRESS *ip_address, UINT port), 253 UINT (*receive_notify)(NX_SECURE_DTLS_SESSION *dtls_session)); 268 UINT _nx_secure_dtls_session_delete(NX_SECURE_DTLS_SESSION *dtls_session); 269 UINT _nx_secure_dtls_session_end(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option); 270 UINT _nx_secure_dtls_session_receive(NX_SECURE_DTLS_SESSION *dtls_session, 273 UINT _nx_secure_dtls_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr, [all …]
|
D | nx_secure_dtls_api.h | 155 UINT nx_secure_dtls_session_delete(NX_SECURE_DTLS_SESSION *dtls_session); 156 UINT nx_secure_dtls_session_end(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option); 157 UINT nx_secure_dtls_session_receive(NX_SECURE_DTLS_SESSION *dtls_session, 160 UINT nx_secure_dtls_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr, 162 UINT nx_secure_dtls_server_session_send(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET *packet_ptr… 163 UINT nx_secure_dtls_session_start(NX_SECURE_DTLS_SESSION *dtls_session, NX_UDP_SOCKET *udp_socket, 165 UINT nx_secure_dtls_packet_allocate(NX_SECURE_DTLS_SESSION *dtls_session, NX_PACKET_POOL *pool_ptr, 168 UINT nx_secure_dtls_client_session_start(NX_SECURE_DTLS_SESSION *dtls_session, NX_UDP_SOCKET *udp_s… 169 UINT nx_secure_dtls_server_session_start(NX_SECURE_DTLS_SESSION *dtls_session, UINT wait_option); 176 … UINT (*connect_notify)(NX_SECURE_DTLS_SESSION *dtls_session, NXD_ADDRESS *ip_address, UINT port), [all …]
|