/NetX-Duo-v6.2.1/test/regression/nx_secure_test/ |
D | nx_secure_tls_nxe_api_test.c | 18 extern void test_control_return(UINT status); 86 UINT status; in thread_0_entry() local 102 status = _nxe_secure_tls_active_certificate_set(&tls_uninitialized_session, &certificate); in thread_0_entry() 103 EXPECT_EQ(NX_SECURE_TLS_SESSION_UNINITIALIZED, status); in thread_0_entry() 106 …status = _nxe_secure_tls_client_psk_set(&tls_uninitialized_session, "psk", 3, "psk id", 5, "hint",… in thread_0_entry() 107 EXPECT_EQ(NX_SECURE_TLS_SESSION_UNINITIALIZED, status); in thread_0_entry() 109 status = _nxe_secure_tls_psk_add(&tls_uninitialized_session, "psk", 3, "psk id", 5, "hint", 4); in thread_0_entry() 110 EXPECT_EQ(NX_SECURE_TLS_SESSION_UNINITIALIZED, status); in thread_0_entry() 113 status = _nxe_secure_tls_local_certificate_add(&tls_uninitialized_session, &certificate); in thread_0_entry() 114 EXPECT_EQ(NX_SECURE_TLS_SESSION_UNINITIALIZED, status); in thread_0_entry() [all …]
|
D | nx_secure_tls_error_checking_2_test.c | 7 extern VOID test_control_return(UINT status); 81 UINT status; in ntest_0_entry() local 103 status = nx_secure_tls_session_delete(&tls_session); in ntest_0_entry() local 104 EXPECT_EQ(NX_PTR_ERROR, status); in ntest_0_entry() 106 …status = nx_secure_tls_session_create(&tls_session, &nx_crypto_tls_ciphers, NX_NULL, sizeof(crypto… in ntest_0_entry() 107 EXPECT_EQ(NX_PTR_ERROR, status); in ntest_0_entry() 109 …status = nx_secure_tls_session_create(&tls_session, &nx_crypto_tls_ciphers, crypto_metadata, sizeo… in ntest_0_entry() 110 EXPECT_EQ(NX_SECURE_TLS_SUCCESS, status); in ntest_0_entry() 113 …status = nx_secure_tls_session_create(&tls_session, &nx_crypto_tls_ciphers, crypto_metadata, sizeo… in ntest_0_entry() 114 EXPECT_EQ(NX_PTR_ERROR, status); in ntest_0_entry() [all …]
|
D | nx_secure_tls_handshake_fail_test.c | 15 extern void test_control_return(UINT status); 694 UINT status; local 728 …status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 1536, pool_area[0], sizeof(pool_a… 730 if(status) 732 printf("Error in function nx_packet_pool_create: 0x%x\n", status); 737 …status = nx_packet_pool_create(&pool_1, "NetX Main Packet Pool", 1536, pool_area[1], sizeof(pool_a… 739 if(status) 741 printf("Error in function nx_packet_pool_create: 0x%x\n", status); 746 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, &pool_0, … 751 …status += nx_ip_create(&ip_1, "NetX IP Instance 1", IP_ADDRESS(1, 2, 3, 5), 0xFFFFFF00UL, &pool_1,… [all …]
|
D | nx_secure_dtls_nxe_api_test.c | 7 extern void test_control_return(UINT status); 43 UINT status; in thread_0_entry() local 58 …status = _nxe_secure_dtls_client_protocol_version_override(&dtls_uninitialized_session, NX_SECURE_… in thread_0_entry() 59 EXPECT_EQ(NX_SECURE_TLS_SESSION_UNINITIALIZED, status); in thread_0_entry() 61 …status = _nxe_secure_dtls_client_session_start(&dtls_uninitialized_session, &udp_socket, &address,… in thread_0_entry() 62 EXPECT_EQ(NX_SECURE_TLS_SESSION_UNINITIALIZED, status); in thread_0_entry() 64 …status = _nxe_secure_dtls_packet_allocate(&dtls_uninitialized_session, &pool_0, &test_packet_recv,… in thread_0_entry() 65 EXPECT_EQ(NX_SECURE_TLS_SESSION_UNINITIALIZED, status); in thread_0_entry() 67 … status = _nxe_secure_dtls_psk_add(&dtls_uninitialized_session, "psk", 3, "psk id", 5, "hint", 4); in thread_0_entry() 68 EXPECT_EQ(NX_SECURE_TLS_SESSION_UNINITIALIZED, status); in thread_0_entry() [all …]
|
D | nx_secure_tls_ecc_client_cert_test.c | 7 extern VOID test_control_return(UINT status); 69 #define ERROR_COUNTER(status) _ERROR_COUNTER(status, __FILE__, __LINE__) argument 71 static VOID _ERROR_COUNTER(UINT status, const char *file, int line) in _ERROR_COUNTER() argument 73 printf("Error (status = 0x%x) at %s:%d\n", status, file, line); in _ERROR_COUNTER() 84 UINT status; in test_application_define() local 108 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", PACKET_SIZE, in test_application_define() 110 if (status) in test_application_define() 112 ERROR_COUNTER(status); in test_application_define() 116 status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, in test_application_define() 119 if (status) in test_application_define() [all …]
|
D | nx_secure_tls_rsa_4096_test.c | 6 extern VOID test_control_return(UINT status); 843 #define ERROR_COUNTER(status) _ERROR_COUNTER(status, __FILE__, __LINE__) argument 845 static VOID _ERROR_COUNTER(UINT status, const char *file, int line) in _ERROR_COUNTER() argument 847 printf("Error (status = 0x%x) at %s:%d\n", status, file, line); in _ERROR_COUNTER() 858 UINT status; in test_application_define() local 882 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", PACKET_SIZE, in test_application_define() 884 if (status) in test_application_define() 886 ERROR_COUNTER(status); in test_application_define() 890 status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, in test_application_define() 893 if (status) in test_application_define() [all …]
|
D | nx_secure_tls_two_way_test.c | 15 extern void test_control_return(UINT status); 320 UINT status; local 349 …status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 1536, pool_area[0], sizeof(pool_a… 351 if(status) 353 printf("Error in function nx_packet_pool_create: 0x%x\n", status); 358 …status = nx_packet_pool_create(&pool_1, "NetX Main Packet Pool", 1536, pool_area[1], sizeof(pool_a… 360 if(status) 362 printf("Error in function nx_packet_pool_create: 0x%x\n", status); 367 …status = nx_packet_pool_create(&pool_2, "NetX TLS Packet Pool", 1536, pool_area[2], sizeof(pool_ar… 369 if(status) [all …]
|
D | nx_secure_tls_error_checking_test.c | 9 extern void test_control_return(UINT status); 381 UINT status; local 410 …status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 1536, pointer, NX_PACKET_POOL_BYT… 413 if(status) 415 printf("Failed nx_packet_pool_create with error: 0x%0x\n", status); 419 …status = nx_packet_pool_create(&unused_pool, "Unused Packet Pool", 1536, pointer, NX_PACKET_POOL_B… 422 if(status) 424 printf("Failed nx_packet_pool_create with error: 0x%0x\n", status); 429 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, &pool_0, … 434 …status += nx_ip_create(&ip_1, "NetX IP Instance 1", IP_ADDRESS(1, 2, 3, 5), 0xFFFFFF00UL, &pool_0,… [all …]
|
D | nx_secure_tls_rsa_private_key_test.c | 9 extern void test_control_return(UINT status); 582 UINT status; local 611 …status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 1536, pool_area[0], sizeof(pool_a… 613 if(status) 615 printf("Error in function nx_packet_pool_create: 0x%x\n", status); 620 …status = nx_packet_pool_create(&pool_1, "NetX Main Packet Pool", 1536, pool_area[1], sizeof(pool_a… 622 if(status) 624 printf("Error in function nx_packet_pool_create: 0x%x\n", status); 629 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, &pool_0, … 634 …status += nx_ip_create(&ip_1, "NetX IP Instance 1", IP_ADDRESS(1, 2, 3, 5), 0xFFFFFF00UL, &pool_1,… [all …]
|
D | nx_secure_tls_record_layer_version_test.c | 8 extern VOID test_control_return(UINT status); 69 #define ERROR_COUNTER(status) _ERROR_COUNTER(status, __FILE__, __LINE__) argument 71 static VOID _ERROR_COUNTER(UINT status, const char *file, int line) in _ERROR_COUNTER() argument 73 printf("Error (status = 0x%x) at %s:%d\n", status, file, line); in _ERROR_COUNTER() 84 UINT status; in test_application_define() local 108 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", PACKET_SIZE, in test_application_define() 110 if (status) in test_application_define() 112 ERROR_COUNTER(status); in test_application_define() 116 status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, in test_application_define() 119 if (status) in test_application_define() [all …]
|
D | nx_secure_tls_hash_clone_test.c | 8 extern void test_control_return(UINT status); 312 UINT status; local 341 …status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 1536, pool_area[0], sizeof(pool_a… 343 if(status) 345 printf("Error in function nx_packet_pool_create: 0x%x\n", status); 350 …status = nx_packet_pool_create(&pool_1, "NetX Main Packet Pool", 1536, pool_area[1], sizeof(pool_a… 352 if(status) 354 printf("Error in function nx_packet_pool_create: 0x%x\n", status); 359 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, &pool_0, … 364 …status += nx_ip_create(&ip_1, "NetX IP Instance 1", IP_ADDRESS(1, 2, 3, 5), 0xFFFFFF00UL, &pool_1,… [all …]
|
/NetX-Duo-v6.2.1/test/regression/netxduo_test/ |
D | netx_ip_nxe_api_test.c | 9 extern void test_control_return(UINT status); 44 UINT status; in test_application_define() local 62 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 256, pointer, 2048); in test_application_define() 66 if (status) in test_application_define() 70 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFF000UL, &pool_0, … in test_application_define() 73 if (status) in test_application_define() 77 …status = nx_ip_create(&ip_1, "NetX IP Instance 0", IP_ADDRESS(255, 255, 255, 255), 0xFFFFF000UL, &… in test_application_define() 80 if (status != NX_IP_ADDRESS_ERROR) in test_application_define() 84 …status = nx_ip_create(&ip_1, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFF000UL, &pool_0, … in test_application_define() 87 if (status != NX_PTR_ERROR) in test_application_define() [all …]
|
D | netx_udp_nxe_api_test.c | 14 extern void test_control_return(UINT status); 57 UINT status; in test_application_define() local 75 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 256, pointer, 2048); in test_application_define() 79 if (status) in test_application_define() 83 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFF000UL, &pool_0, … in test_application_define() 88 if (status) in test_application_define() 92 status = nx_udp_enable(&ip_0); in test_application_define() 95 if (status) in test_application_define() 100 status = nxd_ipv6_enable(&ip_0); in test_application_define() 103 status += nxd_icmp_enable(&ip_0); in test_application_define() [all …]
|
D | netx_ipv6_util_api_test.c | 6 extern void test_control_return(UINT status); 50 UINT status; in thread_0_entry() local 70 status = CHECK_IP_ADDRESSES_BY_PREFIX(ipv6_address_1, ipv6_address_2, 48); in thread_0_entry() 73 if (status != 1) in thread_0_entry() 80 status = CHECK_IP_ADDRESSES_BY_PREFIX(ipv6_address_1, ipv6_address_2, 64); in thread_0_entry() 83 if (status != 1) in thread_0_entry() 90 status = CHECK_IP_ADDRESSES_BY_PREFIX(ipv6_address_1, ipv6_address_2, 96); in thread_0_entry() 93 if (status != 0) in thread_0_entry() 112 status = CHECK_IP_ADDRESSES_BY_PREFIX(ipv6_address_1, ipv6_address_2, 127); in thread_0_entry() 115 if (status != 0) in thread_0_entry() [all …]
|
D | netx_tcp_nxe_api_test.c | 9 extern void test_control_return(UINT status); 56 UINT status; in test_application_define() local 73 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 256, pointer, 8192); in test_application_define() 76 if (status) in test_application_define() 80 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, &pool_0, … in test_application_define() 85 …status += nx_ip_create(&ip_1, "NetX IP Instance 1", IP_ADDRESS(1, 2, 3, 5), 0xFFFFFF00UL, &pool_0,… in test_application_define() 89 if (status) in test_application_define() 93 status = nx_arp_enable(&ip_0, (void *) pointer, 1024); in test_application_define() 97 status += nx_arp_enable(&ip_1, (void *) pointer, 1024); in test_application_define() 101 if (status) in test_application_define() [all …]
|
D | netx_forward_udp_test.c | 39 extern void test_control_return(UINT status); 49 UINT status; in test_application_define() local 76 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 256, pointer, 2048); in test_application_define() 80 if (status) in test_application_define() 84 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, &pool_0, … in test_application_define() 86 if (status) in test_application_define() 90 …status = nx_ip_interface_attach(&ip_0, "Second Interface", IP_ADDRESS(2, 2, 3, 4), 0xFFFFFF00UL, _… in test_application_define() 91 if (status) in test_application_define() 95 …status = nx_ip_create(&ip_1, "NetX IP Instance 1", IP_ADDRESS(1, 2, 3, 5), 0xFFFFFF00UL, &pool_0, … in test_application_define() 97 if (status) in test_application_define() [all …]
|
D | netx_igmp_multicast_basic_test.c | 5 extern void test_control_return(UINT status); 42 UINT status; in test_application_define() local 60 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 256, pointer, 8192); in test_application_define() 63 if (status) in test_application_define() 67 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFFF00UL, &pool_0, … in test_application_define() 72 …status += nx_ip_interface_attach(&ip_0, "Second Interface", IP_ADDRESS(2, 2, 3, 4), 0xFFFFFF00UL, … in test_application_define() 75 status = nx_arp_enable(&ip_0, (void *) pointer, 1024); in test_application_define() 77 if (status) in test_application_define() 81 status = nx_igmp_enable(&ip_0); in test_application_define() 84 if (status) in test_application_define() [all …]
|
D | netx_arp_nxe_api_test.c | 8 extern void test_control_return(UINT status); 43 UINT status; in test_application_define() local 61 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 256, pointer, 2048); in test_application_define() 65 if (status) in test_application_define() 69 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFF000UL, &pool_0, … in test_application_define() 74 if (status) in test_application_define() 83 UINT status; in thread_0_entry() local 113 status = nx_arp_enable(NX_NULL, cache_memory, 1024); in thread_0_entry() 116 if (status != NX_PTR_ERROR) in thread_0_entry() 124 status = nx_arp_enable(&invalid_ip, cache_memory, 1024); in thread_0_entry() [all …]
|
D | netx_igmp_nxe_api_test.c | 9 extern void test_control_return(UINT status); 42 UINT status; in test_application_define() local 59 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 256, pointer, 2048); in test_application_define() 63 if (status) in test_application_define() 67 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFF000UL, &pool_0, … in test_application_define() 72 if (status) in test_application_define() 81 UINT status; in thread_0_entry() local 104 status = nx_icmp_enable(NX_NULL); in thread_0_entry() 107 if (status != NX_PTR_ERROR) in thread_0_entry() 118 status = nx_igmp_enable(&invalid_ip); in thread_0_entry() [all …]
|
D | netx_udp_multiple_ports_test.c | 6 extern void test_control_return(UINT status); 54 UINT status; in test_application_define() local 81 status = nx_packet_pool_create(&pool_0, "NetX Main Packet Pool", 256, pointer, 2048); in test_application_define() 85 if (status) in test_application_define() 89 …status = nx_ip_create(&ip_0, "NetX IP Instance 0", IP_ADDRESS(1, 2, 3, 4), 0xFFFFF000UL, &pool_0, … in test_application_define() 94 …status += nx_ip_create(&ip_1, "NetX IP Instance 1", IP_ADDRESS(1, 2, 3, 5), 0xFFFFF000UL, &pool_0,… in test_application_define() 99 if (status) in test_application_define() 103 status = nx_arp_enable(&ip_0, (void *) pointer, 1024); in test_application_define() 107 status += nx_arp_enable(&ip_1, (void *) pointer, 1024); in test_application_define() 111 if (status) in test_application_define() [all …]
|
/NetX-Duo-v6.2.1/test/regression/web_test/ |
D | netx_https_api_test.c | 34 extern void test_control_return(UINT status); 117 UINT status; in test_application_define() local 131 status = tx_thread_create(&test_thread, "HTTPS API Test Thread", test_thread_entry, 0, in test_application_define() 135 if (status) in test_application_define() 139 status = nx_packet_pool_create(&pool_0, "HTTP Server Packet Pool", SERVER_PACKET_SIZE, in test_application_define() 142 if (status) in test_application_define() 146 status = nx_ip_create(&ip_0, "HTTP Client IP", HTTP_SERVER_ADDRESS, in test_application_define() 150 if (status) in test_application_define() 154 status = nx_arp_enable(&ip_0, (void *) pointer, 1024); in test_application_define() 156 if (status) in test_application_define() [all …]
|
/NetX-Duo-v6.2.1/test/regression/interoperability_test/nx_secure_test/ |
D | demo_shared_buffer_test.c | 7 INT status, exit_status; in main() local 14 status = tls_test_instance_create(&ins0, /* test instance ptr */ in main() 21 return_value_if_fail(TLS_TEST_SUCCESS == status, status); in main() 23 status = tls_test_instance_get_shared_buffer_offset(ins0, &offset); in main() 24 … return_value_if_fail((TLS_TEST_SUCCESS == status) && (0 == offset), TLS_TEST_UNKNOWN_TYPE_ERROR); in main() 27 status = tls_test_instance_get_shared_buffer(ins0, &shared_buffer); in main() 28 return_value_if_fail(TLS_TEST_SUCCESS == status, status); in main() 32 status = tls_test_instance_append_data_to_shared_buffer(ins0, "hello", &length); in main() 33 return_value_if_fail((TLS_TEST_SUCCESS == status) && (5 == length), status); in main() 36 status = tls_test_instance_get_shared_buffer_offset(ins0, &offset); in main() [all …]
|
/NetX-Duo-v6.2.1/samples/ |
D | demo_netx_secure_tls.c | 385 UINT status; in tx_application_define() local 404 status = nx_packet_pool_create(&server_pool, "TLS Server Packet Pool", NX_PACKET_SIZE, in tx_application_define() 407 if (status) in tx_application_define() 411 status = nx_ip_create(&server_ip, "TLS Server IP", TLS_SERVER_ADDRESS, in tx_application_define() 415 if (status) in tx_application_define() 419 status = nx_arp_enable(&server_ip, (void *) pointer, 1024); in tx_application_define() 421 if (status) in tx_application_define() 425 status = nx_tcp_enable(&server_ip); in tx_application_define() 426 if (status) in tx_application_define() 430 status = tx_thread_create(&client_thread, "TLS Client", tls_client_thread_entry, 0, in tx_application_define() [all …]
|
/NetX-Duo-v6.2.1/nx_secure/src/ |
D | nx_secure_tls_1_3_server_handshake.c | 121 UINT status; in _nx_secure_tls_1_3_server_handshake() local 193 …status = _nx_secure_tls_process_handshake_header(packet_buffer, &message_type, &header_bytes, &mes… in _nx_secure_tls_1_3_server_handshake() 195 if (status != NX_SECURE_TLS_SUCCESS) in _nx_secure_tls_1_3_server_handshake() 197 return(status); in _nx_secure_tls_1_3_server_handshake() 221 status = NX_SECURE_TLS_SUCCESS; in _nx_secure_tls_1_3_server_handshake() 229 status = _nx_secure_tls_process_clienthello(tls_session, packet_buffer, message_length); in _nx_secure_tls_1_3_server_handshake() 231 if(status != NX_SUCCESS) in _nx_secure_tls_1_3_server_handshake() 259 …status = _nx_secure_tls_process_remote_certificate(tls_session, packet_buffer, message_length, dat… in _nx_secure_tls_1_3_server_handshake() 262 if (status == NX_SECURE_TLS_EMPTY_REMOTE_CERTIFICATE_RECEIVED) in _nx_secure_tls_1_3_server_handshake() 264 status = NX_SECURE_TLS_CERTIFICATE_REQUIRED; in _nx_secure_tls_1_3_server_handshake() [all …]
|
/NetX-Duo-v6.2.1/crypto_libraries/src/ |
D | nx_crypto_method_self_test.c | 66 #define NX_CRYPTO_FUNCTIONAL_TEST_CHECK(status) \ argument 67 if(status) \ 121 UINT status; in _nx_crypto_method_self_test() local 133 status = _nx_crypto_method_self_test_des(&crypto_method_des, metadata, metadata_size); in _nx_crypto_method_self_test() local 134 NX_CRYPTO_FUNCTIONAL_TEST_CHECK(status) in _nx_crypto_method_self_test() 136 status = _nx_crypto_method_self_test_aes(&crypto_method_aes_cbc_256, metadata, metadata_size); in _nx_crypto_method_self_test() 137 NX_CRYPTO_FUNCTIONAL_TEST_CHECK(status) in _nx_crypto_method_self_test() 139 status = _nx_crypto_method_self_test_3des(&crypto_method_3des, metadata, metadata_size); in _nx_crypto_method_self_test() 140 NX_CRYPTO_FUNCTIONAL_TEST_CHECK(status) in _nx_crypto_method_self_test() 142 status = _nx_crypto_method_self_test_rsa(&crypto_method_rsa, metadata, metadata_size); in _nx_crypto_method_self_test() [all …]
|