/third_party/mbedtls/programs/fuzz/ |
D | fuzz_dtlsserver.c | 24 static mbedtls_x509_crt srvcert; variable 49 mbedtls_x509_crt_init( &srvcert ); in LLVMFuzzerTestOneInput() 51 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in LLVMFuzzerTestOneInput() 54 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in LLVMFuzzerTestOneInput() 88 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in LLVMFuzzerTestOneInput() 89 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
|
D | fuzz_server.c | 20 static mbedtls_x509_crt srvcert; variable 67 mbedtls_x509_crt_init( &srvcert ); in LLVMFuzzerTestOneInput() 69 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in LLVMFuzzerTestOneInput() 72 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in LLVMFuzzerTestOneInput() 105 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in LLVMFuzzerTestOneInput() 106 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
|
/third_party/mbedtls/programs/ssl/ |
D | ssl_server.c | 101 mbedtls_x509_crt srvcert; in main() local 114 mbedtls_x509_crt_init( &srvcert ); in main() 150 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 158 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 215 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 216 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 379 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | dtls_server.c | 113 mbedtls_x509_crt srvcert; in main() local 128 mbedtls_x509_crt_init( &srvcert ); in main() 164 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 172 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 229 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 230 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 408 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | ssl_fork_server.c | 107 mbedtls_x509_crt srvcert; in main() local 116 mbedtls_x509_crt_init( &srvcert ); in main() 148 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 156 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 193 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 194 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 403 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | ssl_pthread_server.c | 322 mbedtls_x509_crt srvcert; in main() local 340 mbedtls_x509_crt_init( &srvcert ); in main() 385 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 441 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 501 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | ssl_server2.c | 1321 mbedtls_x509_crt srvcert; in main() local 1417 mbedtls_x509_crt_init( &srvcert ); in main() 2392 if( ( ret = mbedtls_x509_crt_parse_file( &srvcert, opt.crt_file ) ) != 0 ) in main() 2450 if( ( ret = mbedtls_x509_crt_parse( &srvcert, in main() 2803 ret = ssl_async_set_key( &ssl_async_keys, &srvcert, pk, 0, in main() 2814 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, pk ) ) != 0 ) in main() 3982 mbedtls_x509_crt_free( &srvcert ); in main()
|
/third_party/lwip/src/apps/altcp_tls/ |
D | altcp_tls_mbedtls.c | 805 mbedtls_x509_crt *srvcert; in altcp_tls_config_server_add_privkey_cert() local 815 srvcert = config->cert + config->cert_count; in altcp_tls_config_server_add_privkey_cert() 816 mbedtls_x509_crt_init(srvcert); in altcp_tls_config_server_add_privkey_cert() 822 ret = mbedtls_x509_crt_parse(srvcert, cert, cert_len); in altcp_tls_config_server_add_privkey_cert() 831 mbedtls_x509_crt_free(srvcert); in altcp_tls_config_server_add_privkey_cert() 835 ret = mbedtls_ssl_conf_own_cert(&config->conf, srvcert, pkey); in altcp_tls_config_server_add_privkey_cert() 838 mbedtls_x509_crt_free(srvcert); in altcp_tls_config_server_add_privkey_cert()
|