/NetX-Duo-v6.3.0/nx_secure/src/ |
D | nx_secure_tls_process_remote_certificate.c | 107 NX_SECURE_X509_CERT *certificate; in _nx_secure_tls_process_remote_certificate() local 204 &certificate); in _nx_secure_tls_process_remote_certificate() 219 certificate = (NX_SECURE_X509_CERT*)(&cert_buffer[cert_buf_size]); in _nx_secure_tls_process_remote_certificate() 220 NX_SECURE_MEMSET(certificate, 0, sizeof(NX_SECURE_X509_CERT)); in _nx_secure_tls_process_remote_certificate() 225 certificate -> nx_secure_x509_certificate_raw_data_length = cert_length; in _nx_secure_tls_process_remote_certificate() 226 certificate -> nx_secure_x509_certificate_raw_data = &packet_buffer[length]; in _nx_secure_tls_process_remote_certificate() 227 certificate -> nx_secure_x509_certificate_raw_buffer_size = cert_length; in _nx_secure_tls_process_remote_certificate() 228 certificate -> nx_secure_x509_user_allocated_cert = NX_FALSE; in _nx_secure_tls_process_remote_certificate() 233 if (certificate -> nx_secure_x509_certificate_raw_buffer_size < cert_length) in _nx_secure_tls_process_remote_certificate() 239 certificate -> nx_secure_x509_certificate_raw_data_length = cert_length; in _nx_secure_tls_process_remote_certificate() [all …]
|
D | nx_secure_x509_certificate_initialize.c | 111 UINT _nx_secure_x509_certificate_initialize(NX_SECURE_X509_CERT *certificate, in _nx_secure_x509_certificate_initialize() argument 124 NX_SECURE_MEMSET(certificate, 0, sizeof(NX_SECURE_X509_CERT)); in _nx_secure_x509_certificate_initialize() 127 certificate -> nx_secure_x509_certificate_raw_data_length = length; in _nx_secure_x509_certificate_initialize() 131 certificate -> nx_secure_x509_certificate_raw_buffer_size = length; in _nx_secure_x509_certificate_initialize() 132 certificate -> nx_secure_x509_certificate_raw_data = certificate_data; in _nx_secure_x509_certificate_initialize() 142 certificate -> nx_secure_x509_certificate_raw_buffer_size = buffer_size; in _nx_secure_x509_certificate_initialize() 143 certificate -> nx_secure_x509_certificate_raw_data = raw_data_buffer; in _nx_secure_x509_certificate_initialize() 144 …NX_SECURE_MEMCPY(certificate -> nx_secure_x509_certificate_raw_data, certificate_data, length); /*… in _nx_secure_x509_certificate_initialize() 152 status = _nx_secure_x509_certificate_parse(certificate -> nx_secure_x509_certificate_raw_data, in _nx_secure_x509_certificate_initialize() 153 length, &bytes_processed, certificate); in _nx_secure_x509_certificate_initialize() [all …]
|
D | nx_secure_tls_trusted_certificate_add.c | 88 NX_SECURE_X509_CERT *certificate) in _nx_secure_tls_trusted_certificate_add() argument 99 …certificate -> nx_secure_x509_public_cipher_metadata_area = tls_session -> nx_secure_public_cipher… in _nx_secure_tls_trusted_certificate_add() 100 …certificate -> nx_secure_x509_public_cipher_metadata_size = tls_session -> nx_secure_public_cipher… in _nx_secure_tls_trusted_certificate_add() 102 …certificate -> nx_secure_x509_hash_metadata_area = tls_session -> nx_secure_hash_mac_metadata_area; in _nx_secure_tls_trusted_certificate_add() 103 …certificate -> nx_secure_x509_hash_metadata_size = tls_session -> nx_secure_hash_mac_metadata_size; in _nx_secure_tls_trusted_certificate_add() 106 …certificate -> nx_secure_x509_cipher_table = tls_session -> nx_secure_tls_crypto_table -> nx_secur… in _nx_secure_tls_trusted_certificate_add() 107 …certificate -> nx_secure_x509_cipher_table_size = tls_session -> nx_secure_tls_crypto_table -> nx_… in _nx_secure_tls_trusted_certificate_add() 112 …ficate_add(&tls_session -> nx_secure_tls_credentials.nx_secure_tls_certificate_store, certificate); in _nx_secure_tls_trusted_certificate_add() 120 NX_PARAMETER_NOT_USED(certificate); in _nx_secure_tls_trusted_certificate_add()
|
D | nx_secure_tls_local_certificate_add.c | 83 NX_SECURE_X509_CERT *certificate) in _nx_secure_tls_local_certificate_add() argument 92 …certificate -> nx_secure_x509_public_cipher_metadata_area = tls_session -> nx_secure_public_cipher… in _nx_secure_tls_local_certificate_add() 93 …certificate -> nx_secure_x509_public_cipher_metadata_size = tls_session -> nx_secure_public_cipher… in _nx_secure_tls_local_certificate_add() 95 …certificate -> nx_secure_x509_hash_metadata_area = tls_session -> nx_secure_hash_mac_metadata_area; in _nx_secure_tls_local_certificate_add() 96 …certificate -> nx_secure_x509_hash_metadata_size = tls_session -> nx_secure_hash_mac_metadata_size; in _nx_secure_tls_local_certificate_add() 99 …certificate -> nx_secure_x509_cipher_table = tls_session -> nx_secure_tls_crypto_table -> nx_secur… in _nx_secure_tls_local_certificate_add() 100 …certificate -> nx_secure_x509_cipher_table_size = tls_session -> nx_secure_tls_crypto_table -> nx_… in _nx_secure_tls_local_certificate_add() 104 …status = _nx_secure_x509_store_certificate_add(certificate, &tls_session -> nx_secure_tls_credenti… in _nx_secure_tls_local_certificate_add() 119 NX_PARAMETER_NOT_USED(certificate); in _nx_secure_tls_local_certificate_add()
|
D | nx_secure_x509_certificate_list_add.c | 83 NX_SECURE_X509_CERT *certificate, UINT duplicates_ok) in _nx_secure_x509_certificate_list_add() argument 93 *list_head = certificate; in _nx_secure_x509_certificate_list_add() 94 certificate -> nx_secure_x509_next_certificate = NULL; in _nx_secure_x509_certificate_list_add() 105 if (current_cert == certificate) in _nx_secure_x509_certificate_list_add() 117 if (certificate -> nx_secure_x509_cert_identifier != 0 && in _nx_secure_x509_certificate_list_add() 118 … current_cert -> nx_secure_x509_cert_identifier == certificate -> nx_secure_x509_cert_identifier) in _nx_secure_x509_certificate_list_add() 130 … &certificate -> nx_secure_x509_distinguished_name, NX_SECURE_X509_NAME_COMMON_NAME); in _nx_secure_x509_certificate_list_add() 149 previous_cert -> nx_secure_x509_next_certificate = certificate; in _nx_secure_x509_certificate_list_add() 150 certificate -> nx_secure_x509_next_certificate = NULL; in _nx_secure_x509_certificate_list_add()
|
D | nx_secure_x509_certificate_verify.c | 90 NX_SECURE_X509_CERT *certificate, in _nx_secure_x509_certificate_verify() argument 134 certificate_verify_data = certificate -> nx_secure_x509_certificate_data; in _nx_secure_x509_certificate_verify() 135 verify_data_length = certificate -> nx_secure_x509_certificate_data_length; in _nx_secure_x509_certificate_verify() 136 signature_data = certificate -> nx_secure_x509_signature_data; in _nx_secure_x509_certificate_verify() 137 signature_length = certificate -> nx_secure_x509_signature_data_length; in _nx_secure_x509_certificate_verify() 140 …status = _nx_secure_x509_find_certificate_methods(certificate, (USHORT)certificate -> nx_secure_x5… in _nx_secure_x509_certificate_verify() 159 certificate -> nx_secure_x509_hash_metadata_area, in _nx_secure_x509_certificate_verify() 160 certificate -> nx_secure_x509_hash_metadata_size); in _nx_secure_x509_certificate_verify() 181 certificate -> nx_secure_x509_hash_metadata_area, in _nx_secure_x509_certificate_verify() 182 certificate -> nx_secure_x509_hash_metadata_size, in _nx_secure_x509_certificate_verify() [all …]
|
D | nx_secure_tls_remote_certificate_allocate.c | 93 NX_SECURE_X509_CERT *certificate, in _nx_secure_tls_remote_certificate_allocate() argument 103 certificate -> nx_secure_x509_certificate_raw_data = raw_certificate_buffer; in _nx_secure_tls_remote_certificate_allocate() 104 certificate -> nx_secure_x509_certificate_raw_buffer_size = buffer_size; in _nx_secure_tls_remote_certificate_allocate() 107 certificate->nx_secure_x509_user_allocated_cert = NX_TRUE; in _nx_secure_tls_remote_certificate_allocate() 110 …status = _nx_secure_x509_store_certificate_add(certificate, &tls_session -> nx_secure_tls_credenti… in _nx_secure_tls_remote_certificate_allocate() 125 NX_PARAMETER_NOT_USED(certificate); in _nx_secure_tls_remote_certificate_allocate()
|
D | nx_secure_x509_crl_verify.c | 89 UINT _nx_secure_x509_crl_verify(NX_SECURE_X509_CERT *certificate, NX_SECURE_X509_CRL *crl, in _nx_secure_x509_crl_verify() argument 140 …status = _nx_secure_x509_find_certificate_methods(certificate, crl -> nx_secure_x509_crl_signature… in _nx_secure_x509_crl_verify() 156 certificate -> nx_secure_x509_hash_metadata_area, in _nx_secure_x509_crl_verify() 157 certificate -> nx_secure_x509_hash_metadata_size); in _nx_secure_x509_crl_verify() 178 certificate -> nx_secure_x509_hash_metadata_area, in _nx_secure_x509_crl_verify() 179 certificate -> nx_secure_x509_hash_metadata_size, in _nx_secure_x509_crl_verify() 190 status = hash_method -> nx_crypto_cleanup(certificate -> nx_secure_x509_hash_metadata_area); in _nx_secure_x509_crl_verify() 228 … certificate -> nx_secure_x509_public_cipher_metadata_area, in _nx_secure_x509_crl_verify() 229 … certificate -> nx_secure_x509_public_cipher_metadata_size); in _nx_secure_x509_crl_verify() 252 … certificate -> nx_secure_x509_public_cipher_metadata_area, in _nx_secure_x509_crl_verify() [all …]
|
D | nx_secure_tls_remote_certificate_free_all.c | 85 NX_SECURE_X509_CERT *certificate; in _nx_secure_tls_remote_certificate_free_all() local 94 certificate = store -> nx_secure_x509_remote_certificates; in _nx_secure_tls_remote_certificate_free_all() 97 while (certificate != NX_NULL) in _nx_secure_tls_remote_certificate_free_all() 99 …status = _nx_secure_tls_remote_certificate_free(tls_session, &certificate -> nx_secure_x509_distin… in _nx_secure_tls_remote_certificate_free_all() 107 certificate = store -> nx_secure_x509_remote_certificates; in _nx_secure_tls_remote_certificate_free_all()
|
D | nx_secure_x509_free_certificate_get.c | 75 NX_SECURE_X509_CERT **certificate) in _nx_secure_x509_free_certificate_get() argument 89 *certificate = list_head; in _nx_secure_x509_free_certificate_get() 92 store -> nx_secure_x509_free_certificates = (*certificate) -> nx_secure_x509_next_certificate; in _nx_secure_x509_free_certificate_get() 93 (*certificate) -> nx_secure_x509_next_certificate = NX_CRYPTO_NULL; in _nx_secure_x509_free_certificate_get()
|
D | nx_secure_x509_store_certificate_find.c | 80 NX_SECURE_X509_CERT **certificate, UINT *location) in _nx_secure_x509_store_certificate_find() argument 85 …if (name == NX_CRYPTO_NULL || store == NX_CRYPTO_NULL || certificate == NX_CRYPTO_NULL || location… in _nx_secure_x509_store_certificate_find() 97 …9_certificate_list_find(&store -> nx_secure_x509_trusted_certificates, name, cert_id, certificate); in _nx_secure_x509_store_certificate_find() 105 …509_certificate_list_find(&store -> nx_secure_x509_local_certificates, name, cert_id, certificate); in _nx_secure_x509_store_certificate_find() 113 …09_certificate_list_find(&store -> nx_secure_x509_remote_certificates, name, cert_id, certificate); in _nx_secure_x509_store_certificate_find()
|
D | nxe_secure_dtls_server_trusted_certificate_add.c | 71 NX_SECURE_X509_CERT *certificate, UINT cert_id) in _nxe_secure_dtls_server_trusted_certificate_add() argument 77 if(server_ptr == NX_NULL || certificate == NX_NULL) in _nxe_secure_dtls_server_trusted_certificate_add() 83 status = _nx_secure_dtls_server_trusted_certificate_add(server_ptr, certificate, cert_id); in _nxe_secure_dtls_server_trusted_certificate_add() 89 NX_PARAMETER_NOT_USED(certificate); in _nxe_secure_dtls_server_trusted_certificate_add()
|
D | nxe_secure_dtls_server_local_certificate_add.c | 70 NX_SECURE_X509_CERT *certificate, UINT cert_id) in _nxe_secure_dtls_server_local_certificate_add() argument 76 if(server_ptr == NX_NULL || certificate == NX_NULL) in _nxe_secure_dtls_server_local_certificate_add() 88 status = _nx_secure_dtls_server_local_certificate_add(server_ptr, certificate, cert_id); in _nxe_secure_dtls_server_local_certificate_add() 93 NX_PARAMETER_NOT_USED(certificate); in _nxe_secure_dtls_server_local_certificate_add()
|
D | nx_secure_dtls_session_trusted_certificate_add.c | 78 NX_SECURE_X509_CERT *certificate, UINT cert_id) in _nx_secure_dtls_session_trusted_certificate_add() argument 88 certificate->nx_secure_x509_cert_identifier = cert_id; in _nx_secure_dtls_session_trusted_certificate_add() 91 status = _nx_secure_tls_trusted_certificate_add(tls_session, certificate); in _nx_secure_dtls_session_trusted_certificate_add() 96 NX_PARAMETER_NOT_USED(certificate); in _nx_secure_dtls_session_trusted_certificate_add()
|
D | nxe_secure_dtls_session_local_certificate_add.c | 72 NX_SECURE_X509_CERT *certificate, UINT cert_id) in _nxe_secure_dtls_session_local_certificate_add() argument 77 if ((dtls_session == NX_NULL) || (certificate == NX_NULL)) in _nxe_secure_dtls_session_local_certificate_add() 96 status = _nx_secure_dtls_session_local_certificate_add(dtls_session, certificate, cert_id); in _nxe_secure_dtls_session_local_certificate_add() 101 NX_PARAMETER_NOT_USED(certificate); in _nxe_secure_dtls_session_local_certificate_add()
|
D | nxe_secure_dtls_session_trusted_certificate_add.c | 71 NX_SECURE_X509_CERT *certificate, UINT cert_id) in _nxe_secure_dtls_session_trusted_certificate_add() argument 76 if ((dtls_session == NX_NULL) || (certificate == NX_NULL)) in _nxe_secure_dtls_session_trusted_certificate_add() 94 status = _nx_secure_dtls_session_trusted_certificate_add(dtls_session, certificate, cert_id); in _nxe_secure_dtls_session_trusted_certificate_add() 99 NX_PARAMETER_NOT_USED(certificate); in _nxe_secure_dtls_session_trusted_certificate_add()
|
D | nx_secure_x509_local_device_certificate_get.c | 85 NX_SECURE_X509_CERT **certificate) in _nx_secure_x509_local_device_certificate_get() argument 112 if (certificate != NX_CRYPTO_NULL) in _nx_secure_x509_local_device_certificate_get() 115 *certificate = current_cert; in _nx_secure_x509_local_device_certificate_get() 132 status = _nx_secure_x509_certificate_list_find(&list_head, name, 0, certificate); in _nx_secure_x509_local_device_certificate_get()
|
D | nx_secure_x509_certificate_list_find.c | 84 NX_SECURE_X509_CERT **certificate) in _nx_secure_x509_certificate_list_find() argument 91 if (certificate == NX_CRYPTO_NULL) in _nx_secure_x509_certificate_list_find() 101 *certificate = NX_CRYPTO_NULL; in _nx_secure_x509_certificate_list_find() 133 *certificate = current_cert; in _nx_secure_x509_certificate_list_find()
|
D | nx_secure_x509_expiration_check.c | 77 UINT _nx_secure_x509_expiration_check(NX_SECURE_X509_CERT *certificate, ULONG current_time) in _nx_secure_x509_expiration_check() argument 84 …tatus = _nx_secure_x509_asn1_time_to_unix_convert(certificate -> nx_secure_x509_not_before, certif… in _nx_secure_x509_expiration_check() 85 … certificate -> nx_secure_x509_validity_format, ¬_before); in _nx_secure_x509_expiration_check() 92 …tatus = _nx_secure_x509_asn1_time_to_unix_convert(certificate -> nx_secure_x509_not_after, certifi… in _nx_secure_x509_expiration_check() 93 … certificate -> nx_secure_x509_validity_format, ¬_after); in _nx_secure_x509_expiration_check()
|
D | nx_secure_x509_common_name_dns_check.c | 89 UINT _nx_secure_x509_common_name_dns_check(NX_SECURE_X509_CERT *certificate, const UCHAR *dns_tld, in _nx_secure_x509_common_name_dns_check() argument 99 common_name = certificate -> nx_secure_x509_distinguished_name.nx_secure_x509_common_name; in _nx_secure_x509_common_name_dns_check() 100 …common_name_len = certificate -> nx_secure_x509_distinguished_name.nx_secure_x509_common_name_leng… in _nx_secure_x509_common_name_dns_check() 111 …status = _nx_secure_x509_extension_find(certificate, &alt_name_extension, NX_SECURE_TLS_X509_TYPE_… in _nx_secure_x509_common_name_dns_check()
|
D | nx_secure_tls_remote_certificate_free.c | 96 NX_SECURE_X509_CERT *certificate; in _nx_secure_tls_remote_certificate_free() local 105 status = _nx_secure_x509_certificate_list_find(&list_head, name, 0, &certificate); in _nx_secure_tls_remote_certificate_free() 122 if (certificate -> nx_secure_x509_user_allocated_cert) in _nx_secure_tls_remote_certificate_free() 126 …status = _nx_secure_x509_store_certificate_add(certificate, store, NX_SECURE_X509_CERT_LOCATION_FR… in _nx_secure_tls_remote_certificate_free()
|
D | nx_secure_tls_active_certificate_set.c | 85 NX_SECURE_X509_CERT *certificate) in _nx_secure_tls_active_certificate_set() argument 89 NX_PARAMETER_NOT_USED(certificate); in _nx_secure_tls_active_certificate_set() 94 tls_session -> nx_secure_tls_credentials.nx_secure_tls_active_certificate = certificate; in _nx_secure_tls_active_certificate_set()
|
D | nxe_secure_x509_extended_key_usage_extension_parse.c | 77 UINT _nxe_secure_x509_extended_key_usage_extension_parse(NX_SECURE_X509_CERT *certificate, in _nxe_secure_x509_extended_key_usage_extension_parse() argument 82 if (certificate == NX_CRYPTO_NULL) in _nxe_secure_x509_extended_key_usage_extension_parse() 95 status = _nx_secure_x509_extended_key_usage_extension_parse(certificate, key_usage); in _nxe_secure_x509_extended_key_usage_extension_parse()
|
D | nx_secure_tls_server_certificate_add.c | 75 NX_SECURE_X509_CERT *certificate, UINT cert_id) in _nx_secure_tls_server_certificate_add() argument 86 certificate -> nx_secure_x509_cert_identifier = cert_id; in _nx_secure_tls_server_certificate_add() 89 status = _nx_secure_tls_local_certificate_add(tls_session, certificate); in _nx_secure_tls_server_certificate_add()
|
/NetX-Duo-v6.3.0/nx_secure/inc/ |
D | nx_secure_x509.h | 907 NX_SECURE_X509_CERT **certificate); 910 NX_SECURE_X509_CERT **certificate, UINT cert_id); 914 NX_SECURE_X509_CERT **certificate); 917 UINT _nx_secure_x509_store_certificate_add(NX_SECURE_X509_CERT *certificate, 937 NX_SECURE_X509_CERT **certificate, UINT *location); 941 NX_SECURE_X509_CERT *certificate); 945 NX_SECURE_X509_CERT *certificate, 950 NX_SECURE_X509_CERT *certificate, ULONG current_time); 960 UINT _nx_secure_x509_certificate_initialize(NX_SECURE_X509_CERT *certificate, 975 NX_SECURE_X509_CERT **certificate); [all …]
|