Searched refs:srvcert (Results 1 – 7 of 7) sorted by relevance
/mbedtls-3.4.0/programs/fuzz/ |
D | fuzz_dtlsserver.c | 26 static mbedtls_x509_crt srvcert; variable 60 mbedtls_x509_crt_init( &srvcert ); in LLVMFuzzerTestOneInput() 62 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in LLVMFuzzerTestOneInput() 65 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in LLVMFuzzerTestOneInput() 92 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in LLVMFuzzerTestOneInput() 93 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
|
D | fuzz_server.c | 20 static mbedtls_x509_crt srvcert; variable 68 mbedtls_x509_crt_init( &srvcert ); in LLVMFuzzerTestOneInput() 70 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in LLVMFuzzerTestOneInput() 73 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in LLVMFuzzerTestOneInput() 106 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in LLVMFuzzerTestOneInput() 107 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
|
/mbedtls-3.4.0/programs/ssl/ |
D | ssl_server.c | 89 mbedtls_x509_crt srvcert; in main() local 102 mbedtls_x509_crt_init( &srvcert ); in main() 138 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 146 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 203 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 204 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 367 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | ssl_fork_server.c | 96 mbedtls_x509_crt srvcert; in main() local 105 mbedtls_x509_crt_init( &srvcert ); in main() 137 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 145 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 182 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 183 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 392 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | dtls_server.c | 102 mbedtls_x509_crt srvcert; in main() local 117 mbedtls_x509_crt_init( &srvcert ); in main() 153 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 161 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 218 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 219 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 397 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | ssl_pthread_server.c | 311 mbedtls_x509_crt srvcert; in main() local 329 mbedtls_x509_crt_init( &srvcert ); in main() 374 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 430 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 490 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | ssl_server2.c | 1474 mbedtls_x509_crt srvcert; in main() local 1573 mbedtls_x509_crt_init( &srvcert ); in main() 2690 if( ( ret = mbedtls_x509_crt_parse_file( &srvcert, opt.crt_file ) ) != 0 ) in main() 2748 if( ( ret = mbedtls_x509_crt_parse( &srvcert, in main() 3176 ret = ssl_async_set_key( &ssl_async_keys, &srvcert, pk, 0, in main() 3187 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, pk ) ) != 0 ) in main() 4379 mbedtls_x509_crt_free( &srvcert ); in main()
|