/NetX-Duo-v6.4.1/nx_secure/src/ |
D | nx_secure_tls_session_reset.c | 90 UINT _nx_secure_tls_session_reset(NX_SECURE_TLS_SESSION *session_ptr) in _nx_secure_tls_session_reset() argument 110 if (session_ptr -> nx_secure_tls_remote_session_active) in _nx_secure_tls_session_reset() 112 if (session_ptr -> nx_secure_tls_session_ciphersuite != NX_NULL) in _nx_secure_tls_session_reset() 114 …if (session_ptr -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_session_cipher -> nx_crypto_… in _nx_secure_tls_session_reset() 116 …temp_status = session_ptr -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_session_cipher -> … in _nx_secure_tls_session_reset() 122 …temp_status = session_ptr -> nx_secure_tls_session_ciphersuite -> nx_secure_tls_session_cipher -> … in _nx_secure_tls_session_reset() 133 session_ptr -> nx_secure_tls_socket_type = NX_SECURE_TLS_SESSION_TYPE_NONE; in _nx_secure_tls_session_reset() 136 session_ptr -> nx_secure_tls_protocol_version = 0; in _nx_secure_tls_session_reset() 140 session_ptr -> nx_secure_tls_remote_session_active = 0; in _nx_secure_tls_session_reset() 141 session_ptr -> nx_secure_tls_local_session_active = 0; in _nx_secure_tls_session_reset() [all …]
|
D | nx_secure_dtls_session_create.c | 86 UINT _nx_secure_dtls_session_create(NX_SECURE_DTLS_SESSION *session_ptr, in _nx_secure_dtls_session_create() argument 98 NX_SECURE_MEMSET(session_ptr, 0, sizeof(NX_SECURE_DTLS_SESSION)); in _nx_secure_dtls_session_create() 101 tls_session = &session_ptr -> nx_secure_dtls_tls_session; in _nx_secure_dtls_session_create() 147 _nx_secure_dtls_created_ptr -> nx_secure_dtls_created_previous = session_ptr; in _nx_secure_dtls_session_create() 148 tail_ptr -> nx_secure_dtls_created_next = session_ptr; in _nx_secure_dtls_session_create() 151 session_ptr -> nx_secure_dtls_created_previous = tail_ptr; in _nx_secure_dtls_session_create() 152 session_ptr -> nx_secure_dtls_created_next = _nx_secure_dtls_created_ptr; in _nx_secure_dtls_session_create() 158 _nx_secure_dtls_created_ptr = session_ptr; in _nx_secure_dtls_session_create() 159 session_ptr -> nx_secure_dtls_created_previous = session_ptr; in _nx_secure_dtls_session_create() 160 session_ptr -> nx_secure_dtls_created_next = session_ptr; in _nx_secure_dtls_session_create() [all …]
|
D | nx_secure_tls_newest_supported_version.c | 75 VOID _nx_secure_tls_newest_supported_version(NX_SECURE_TLS_SESSION *session_ptr, in _nx_secure_tls_newest_supported_version() argument 80 NX_PARAMETER_NOT_USED(session_ptr); in _nx_secure_tls_newest_supported_version() 83 if(session_ptr -> nx_secure_tls_socket_type == NX_SECURE_TLS_SESSION_TYPE_SERVER && in _nx_secure_tls_newest_supported_version() 84 session_ptr -> nx_secure_tls_protocol_version_override != 0) in _nx_secure_tls_newest_supported_version() 88 (*protocol_version) = session_ptr -> nx_secure_tls_protocol_version_override; in _nx_secure_tls_newest_supported_version() 151 void _nx_secure_tls_highest_supported_version_negotiate(NX_SECURE_TLS_SESSION *session_ptr, in _nx_secure_tls_highest_supported_version_negotiate() argument 159 NX_PARAMETER_NOT_USED(session_ptr); in _nx_secure_tls_highest_supported_version_negotiate() 162 if(session_ptr -> nx_secure_tls_socket_type == NX_SECURE_TLS_SESSION_TYPE_SERVER && in _nx_secure_tls_highest_supported_version_negotiate() 163 session_ptr -> nx_secure_tls_negotiated_highest_protocol_version != 0) in _nx_secure_tls_highest_supported_version_negotiate() 167 (*protocol_version) = session_ptr -> nx_secure_tls_negotiated_highest_protocol_version; in _nx_secure_tls_highest_supported_version_negotiate() [all …]
|
D | nxe_secure_tls_session_delete.c | 75 NX_SECURE_TLS_SESSION *session_ptr; in _nxe_secure_tls_session_delete() local 82 session_ptr = _nx_secure_tls_created_ptr; in _nxe_secure_tls_session_delete() 85 if (session_ptr == NX_NULL) in _nxe_secure_tls_session_delete() 92 if (session_ptr == tls_session) in _nxe_secure_tls_session_delete() 99 session_ptr = session_ptr -> nx_secure_tls_created_next; in _nxe_secure_tls_session_delete() 101 if (session_ptr == _nx_secure_tls_created_ptr) in _nxe_secure_tls_session_delete()
|
D | nxe_secure_dtls_session_delete.c | 77 NX_SECURE_DTLS_SESSION *session_ptr; in _nxe_secure_dtls_session_delete() local 84 session_ptr = _nx_secure_dtls_created_ptr; in _nxe_secure_dtls_session_delete() 87 if (session_ptr == NX_NULL) in _nxe_secure_dtls_session_delete() 94 if (session_ptr == dtls_session) in _nxe_secure_dtls_session_delete() 101 session_ptr = session_ptr -> nx_secure_dtls_created_next; in _nxe_secure_dtls_session_delete() 103 if (session_ptr == _nx_secure_dtls_created_ptr) in _nxe_secure_dtls_session_delete()
|
D | nxe_secure_dtls_session_reset.c | 72 UINT _nxe_secure_dtls_session_reset(NX_SECURE_DTLS_SESSION *session_ptr) in _nxe_secure_dtls_session_reset() argument 77 if (session_ptr == NX_NULL) in _nxe_secure_dtls_session_reset() 83 if (session_ptr->nx_secure_dtls_tls_session.nx_secure_tls_id != NX_SECURE_TLS_ID) in _nxe_secure_dtls_session_reset() 88 status = _nx_secure_dtls_session_reset(session_ptr); in _nxe_secure_dtls_session_reset() 93 NX_PARAMETER_NOT_USED(session_ptr); in _nxe_secure_dtls_session_reset()
|
D | nx_secure_tls_protocol_version_get.c | 73 VOID _nx_secure_tls_protocol_version_get(NX_SECURE_TLS_SESSION *session_ptr, in _nx_secure_tls_protocol_version_get() argument 79 if (session_ptr -> nx_secure_tls_protocol_version_override != 0) in _nx_secure_tls_protocol_version_get() 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()
|
D | nxe_secure_tls_session_reset.c | 72 UINT _nxe_secure_tls_session_reset(NX_SECURE_TLS_SESSION *session_ptr) in _nxe_secure_tls_session_reset() argument 76 if (session_ptr == NX_NULL) in _nxe_secure_tls_session_reset() 82 if(session_ptr -> nx_secure_tls_id != NX_SECURE_TLS_ID) in _nxe_secure_tls_session_reset() 90 status = _nx_secure_tls_session_reset(session_ptr); in _nxe_secure_tls_session_reset()
|
D | nx_secure_tls_session_create.c | 76 UINT _nx_secure_tls_session_create(NX_SECURE_TLS_SESSION *session_ptr, in _nx_secure_tls_session_create() argument 83 NX_SECURE_MEMSET(session_ptr, 0, sizeof(NX_SECURE_TLS_SESSION)); in _nx_secure_tls_session_create() 87 session_ptr -> nx_secure_tls_crypto_table = (NX_SECURE_TLS_CRYPTO *)(crypto_table); in _nx_secure_tls_session_create() 89 …status = _nx_secure_tls_session_create_ext(session_ptr, NX_NULL, 0, NX_NULL, 0, metadata_buffer, m… in _nx_secure_tls_session_create()
|
D | nxe_secure_dtls_session_create.c | 81 UINT _nxe_secure_dtls_session_create(NX_SECURE_DTLS_SESSION *session_ptr, in _nxe_secure_dtls_session_create() argument 94 if ((session_ptr == NX_NULL) || (crypto_table == NX_NULL) || in _nxe_secure_dtls_session_create() 108 if (session_ptr == created_dtls_session) in _nxe_secure_dtls_session_create() 119 … status = _nx_secure_dtls_session_create(session_ptr, crypto_table, metadata_buffer, metadata_size, in _nxe_secure_dtls_session_create() 126 NX_PARAMETER_NOT_USED(session_ptr); in _nxe_secure_dtls_session_create()
|
D | nxe_secure_tls_session_packet_buffer_set.c | 77 UINT _nxe_secure_tls_session_packet_buffer_set(NX_SECURE_TLS_SESSION *session_ptr, in _nxe_secure_tls_session_packet_buffer_set() argument 82 if (session_ptr == NX_NULL || buffer_ptr == NX_NULL) in _nxe_secure_tls_session_packet_buffer_set() 93 if(session_ptr -> nx_secure_tls_id != NX_SECURE_TLS_ID) in _nxe_secure_tls_session_packet_buffer_set() 101 status = _nx_secure_tls_session_packet_buffer_set(session_ptr, buffer_ptr, buffer_size); in _nxe_secure_tls_session_packet_buffer_set()
|
D | nx_secure_tls_session_packet_buffer_set.c | 71 UINT _nx_secure_tls_session_packet_buffer_set(NX_SECURE_TLS_SESSION *session_ptr, in _nx_secure_tls_session_packet_buffer_set() argument 90 session_ptr -> nx_secure_tls_packet_buffer = buffer_ptr; in _nx_secure_tls_session_packet_buffer_set() 91 session_ptr -> nx_secure_tls_packet_buffer_size = buffer_size; in _nx_secure_tls_session_packet_buffer_set() 94 session_ptr -> nx_secure_tls_packet_buffer_original_size = buffer_size; in _nx_secure_tls_session_packet_buffer_set()
|
D | nxe_secure_tls_session_create.c | 76 UINT _nxe_secure_tls_session_create(NX_SECURE_TLS_SESSION *session_ptr, in _nxe_secure_tls_session_create() argument 85 if ((session_ptr == NX_NULL) || (cipher_table == NX_NULL) || (metadata_area == NX_NULL)) in _nxe_secure_tls_session_create() 97 if (session_ptr == created_tls_session) in _nxe_secure_tls_session_create() 111 status = _nx_secure_tls_session_create(session_ptr, cipher_table, metadata_area, metadata_size); in _nxe_secure_tls_session_create()
|
/NetX-Duo-v6.4.1/addons/web/ |
D | nx_tcpserver.h | 136 …*nx_tcpserver_new_connection)(struct NX_TCPSERVER_STRUCT *server_ptr, NX_TCP_SESSION *session_ptr); 137 … (*nx_tcpserver_receive_data)(struct NX_TCPSERVER_STRUCT *server_ptr, NX_TCP_SESSION *session_ptr); 138 …*nx_tcpserver_connection_end)(struct NX_TCPSERVER_STRUCT *server_ptr, NX_TCP_SESSION *session_ptr); 139 …tcpserver_connection_timeout)(struct NX_TCPSERVER_STRUCT *server_ptr, NX_TCP_SESSION *session_ptr); 172 … VOID (*new_connection)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), 173 … VOID (*receive_data)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), 174 … VOID (*connection_end)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), 175 … VOID (*connection_timeout)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), 202 … VOID (*new_connection)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), 203 … VOID (*receive_data)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), [all …]
|
D | nx_tcpserver.c | 174 NX_TCP_SESSION *session_ptr; in _nx_tcpserver_relisten() local 181 status = _nx_tcpserver_session_allocate(server_ptr, &session_ptr); in _nx_tcpserver_relisten() 189 &session_ptr -> nx_tcp_session_socket); in _nx_tcpserver_relisten() 196 server_ptr -> nx_tcpserver_listen_session = session_ptr; in _nx_tcpserver_relisten() 291 … VOID (*new_connection)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), in _nx_tcpserver_create() argument 292 … VOID (*receive_data)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), in _nx_tcpserver_create() 293 … VOID (*connection_end)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), in _nx_tcpserver_create() 294 … VOID (*connection_timeout)(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr), in _nx_tcpserver_create() 672 NX_TCP_SESSION *session_ptr; in _nx_tcpserver_start() local 679 status = _nx_tcpserver_session_allocate(server_ptr, &session_ptr); in _nx_tcpserver_start() [all …]
|
D | nx_web_http_server.h | 620 …erver_connection_reset(NX_WEB_HTTP_SERVER *server_ptr, NX_TCP_SESSION *session_ptr, UINT wait_opti… 621 …_connection_disconnect(NX_WEB_HTTP_SERVER *server_ptr, NX_TCP_SESSION *session_ptr, UINT wait_opti… 647 … _nx_web_http_server_receive_data(NX_TCPSERVER *tcpserver_ptr, NX_TCP_SESSION *session_ptr); 648 … _nx_web_http_server_connection_end(NX_TCPSERVER *tcpserver_ptr, NX_TCP_SESSION *session_ptr); 649 … _nx_web_http_server_connection_timeout(NX_TCPSERVER *tcpserver_ptr, NX_TCP_SESSION *session_ptr);
|
/NetX-Duo-v6.4.1/test/regression/web_test/ |
D | netx_web_tcpserver_tls_fail_rst_test.c | 101 static void connection_end(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr) in connection_end() argument 103 nx_secure_tls_session_end(&(session_ptr -> nx_tcp_session_tls_session), NX_NO_WAIT); in connection_end() 104 nx_tcp_socket_disconnect(&session_ptr -> nx_tcp_session_socket, NX_NO_WAIT); in connection_end() 105 nx_tcp_server_socket_unaccept(&session_ptr -> nx_tcp_session_socket); in connection_end() 111 NX_SECURE_TLS_SESSION *session_ptr = &test_session[thread_input]; in thread_test_entry() local 115 …status = nx_secure_tls_session_create(session_ptr, &nx_crypto_tls_ciphers, crypto_metadata_client,… in thread_test_entry() 124 …status = nx_secure_tls_session_packet_buffer_set(session_ptr, tls_packet_buffer, sizeof(tls_packet… in thread_test_entry() 133 …nx_secure_tls_remote_certificate_allocate(session_ptr, &remote_certificate, remote_cert_buffer, si… in thread_test_entry() 134 …nx_secure_tls_remote_certificate_allocate(session_ptr, &remote_issuer, remote_issuer_buffer, sizeo… in thread_test_entry() 165 status = nx_secure_tls_session_start(session_ptr, socket_ptr, NX_IP_PERIODIC_RATE); in thread_test_entry() [all …]
|
D | netx_web_tcpserver_two_listen_test.c | 53 static void receive_data(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr); 54 static void connection_end(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr); 248 static void receive_data(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr) in receive_data() argument 253 static void connection_end(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr) in connection_end() argument 255 nx_tcp_socket_disconnect(&session_ptr -> nx_tcp_session_socket, NX_NO_WAIT); in connection_end() 256 nx_tcp_server_socket_unaccept(&session_ptr -> nx_tcp_session_socket); in connection_end()
|
D | netx_web_tcpserver_rst_test.c | 89 static void connection_end(NX_TCPSERVER *server_ptr, NX_TCP_SESSION *session_ptr) in connection_end() argument 91 nx_tcp_socket_disconnect(&session_ptr -> nx_tcp_session_socket, NX_NO_WAIT); in connection_end() 92 nx_tcp_server_socket_unaccept(&session_ptr -> nx_tcp_session_socket); in connection_end()
|
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/ |
D | nx_secure_dtls_multiple_sessions_reuse_test.c | 307 NX_SECURE_DTLS_SESSION *session_ptr; in server_thread_entry() local 352 session_ptr = connect_session[(server_connect_count - 1) & 0x7]; in server_thread_entry() 355 status = nx_secure_dtls_server_session_start(session_ptr, NX_WAIT_FOREVER); in server_thread_entry() 362 nx_secure_dtls_session_end(session_ptr, NX_NO_WAIT); in server_thread_entry()
|
D | nx_secure_tls_newest_supported_version_coverage_test.c | 60 extern void _nx_secure_tls_highest_supported_version_negotiate(NX_SECURE_TLS_SESSION* session_ptr, …
|
/NetX-Duo-v6.4.1/nx_secure/inc/ |
D | nx_secure_dtls.h | 261 UINT _nx_secure_dtls_session_create(NX_SECURE_DTLS_SESSION *session_ptr, 272 UINT _nx_secure_dtls_session_reset(NX_SECURE_DTLS_SESSION *session_ptr); 339 UINT _nxe_secure_dtls_session_create(NX_SECURE_DTLS_SESSION *session_ptr, 351 UINT _nxe_secure_dtls_session_reset(NX_SECURE_DTLS_SESSION *session_ptr);
|
D | nx_secure_dtls_api.h | 148 UINT nx_secure_dtls_session_create(NX_SECURE_DTLS_SESSION *session_ptr, 159 UINT nx_secure_dtls_session_reset(NX_SECURE_DTLS_SESSION *session_ptr);
|
D | nx_secure_tls_api.h | 217 UINT nx_secure_tls_session_create(NX_SECURE_TLS_SESSION *session_ptr, 223 UINT nx_secure_tls_session_packet_buffer_set(NX_SECURE_TLS_SESSION *session_ptr,
|
D | nx_secure_tls.h | 1532 VOID _nx_secure_tls_newest_supported_version(NX_SECURE_TLS_SESSION *session_ptr, 1534 VOID _nx_secure_tls_highest_supported_version_negotiate(NX_SECURE_TLS_SESSION *session_ptr, 1537 VOID _nx_secure_tls_protocol_version_get(NX_SECURE_TLS_SESSION *session_ptr, 1700 UINT _nx_secure_tls_session_create(NX_SECURE_TLS_SESSION *session_ptr, 1713 UINT _nx_secure_tls_session_packet_buffer_set(NX_SECURE_TLS_SESSION *session_ptr, 1801 UINT _nxe_secure_tls_session_create(NX_SECURE_TLS_SESSION *session_ptr, 1807 UINT _nxe_secure_tls_session_packet_buffer_set(NX_SECURE_TLS_SESSION *session_ptr,
|