Home
last modified time | relevance | path

Searched refs:certificate (Results 1 – 25 of 68) sorted by relevance

123

/NetX-Duo-v6.3.0/nx_secure/src/
Dnx_secure_tls_process_remote_certificate.c107 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 …]
Dnx_secure_x509_certificate_initialize.c111 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 …]
Dnx_secure_tls_trusted_certificate_add.c88 NX_SECURE_X509_CERT *certificate) in _nx_secure_tls_trusted_certificate_add() argument
99certificate -> nx_secure_x509_public_cipher_metadata_area = tls_session -> nx_secure_public_cipher… in _nx_secure_tls_trusted_certificate_add()
100certificate -> nx_secure_x509_public_cipher_metadata_size = tls_session -> nx_secure_public_cipher… in _nx_secure_tls_trusted_certificate_add()
102certificate -> nx_secure_x509_hash_metadata_area = tls_session -> nx_secure_hash_mac_metadata_area; in _nx_secure_tls_trusted_certificate_add()
103certificate -> nx_secure_x509_hash_metadata_size = tls_session -> nx_secure_hash_mac_metadata_size; in _nx_secure_tls_trusted_certificate_add()
106certificate -> nx_secure_x509_cipher_table = tls_session -> nx_secure_tls_crypto_table -> nx_secur… in _nx_secure_tls_trusted_certificate_add()
107certificate -> 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()
Dnx_secure_tls_local_certificate_add.c83 NX_SECURE_X509_CERT *certificate) in _nx_secure_tls_local_certificate_add() argument
92certificate -> nx_secure_x509_public_cipher_metadata_area = tls_session -> nx_secure_public_cipher… in _nx_secure_tls_local_certificate_add()
93certificate -> nx_secure_x509_public_cipher_metadata_size = tls_session -> nx_secure_public_cipher… in _nx_secure_tls_local_certificate_add()
95certificate -> nx_secure_x509_hash_metadata_area = tls_session -> nx_secure_hash_mac_metadata_area; in _nx_secure_tls_local_certificate_add()
96certificate -> nx_secure_x509_hash_metadata_size = tls_session -> nx_secure_hash_mac_metadata_size; in _nx_secure_tls_local_certificate_add()
99certificate -> nx_secure_x509_cipher_table = tls_session -> nx_secure_tls_crypto_table -> nx_secur… in _nx_secure_tls_local_certificate_add()
100certificate -> 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()
Dnx_secure_x509_certificate_list_add.c83 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()
Dnx_secure_x509_certificate_verify.c90 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 …]
Dnx_secure_tls_remote_certificate_allocate.c93 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()
Dnx_secure_x509_crl_verify.c89 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()
228certificate -> nx_secure_x509_public_cipher_metadata_area, in _nx_secure_x509_crl_verify()
229certificate -> nx_secure_x509_public_cipher_metadata_size); in _nx_secure_x509_crl_verify()
252certificate -> nx_secure_x509_public_cipher_metadata_area, in _nx_secure_x509_crl_verify()
[all …]
Dnx_secure_tls_remote_certificate_free_all.c85 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()
Dnx_secure_x509_free_certificate_get.c75 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()
Dnx_secure_x509_store_certificate_find.c80 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()
Dnxe_secure_dtls_server_trusted_certificate_add.c71 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()
Dnxe_secure_dtls_server_local_certificate_add.c70 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()
Dnx_secure_dtls_session_trusted_certificate_add.c78 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()
Dnxe_secure_dtls_session_local_certificate_add.c72 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()
Dnxe_secure_dtls_session_trusted_certificate_add.c71 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()
Dnx_secure_x509_local_device_certificate_get.c85 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()
Dnx_secure_x509_certificate_list_find.c84 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()
Dnx_secure_x509_expiration_check.c77 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()
85certificate -> nx_secure_x509_validity_format, &not_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()
93certificate -> nx_secure_x509_validity_format, &not_after); in _nx_secure_x509_expiration_check()
Dnx_secure_x509_common_name_dns_check.c89 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()
Dnx_secure_tls_remote_certificate_free.c96 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()
Dnx_secure_tls_active_certificate_set.c85 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()
Dnxe_secure_x509_extended_key_usage_extension_parse.c77 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()
Dnx_secure_tls_server_certificate_add.c75 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/
Dnx_secure_x509.h907 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 …]

123