Home
last modified time | relevance | path

Searched refs:srvcert (Results 1 – 7 of 7) sorted by relevance

/openthread-3.4.0/third_party/mbedtls/repo/programs/fuzz/
Dfuzz_dtlsserver.c22 static mbedtls_x509_crt srvcert; variable
47 mbedtls_x509_crt_init( &srvcert ); in LLVMFuzzerTestOneInput()
49 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in LLVMFuzzerTestOneInput()
52 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in LLVMFuzzerTestOneInput()
85 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in LLVMFuzzerTestOneInput()
86 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
Dfuzz_server.c18 static mbedtls_x509_crt srvcert; variable
58 mbedtls_x509_crt_init( &srvcert ); in LLVMFuzzerTestOneInput()
60 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in LLVMFuzzerTestOneInput()
63 if (mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in LLVMFuzzerTestOneInput()
102 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in LLVMFuzzerTestOneInput()
103 if( mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) != 0 ) in LLVMFuzzerTestOneInput()
/openthread-3.4.0/third_party/mbedtls/repo/programs/ssl/
Dssl_server.c106 mbedtls_x509_crt srvcert; in main() local
119 mbedtls_x509_crt_init( &srvcert ); in main()
139 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
147 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main()
219 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
220 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
383 mbedtls_x509_crt_free( &srvcert ); in main()
Ddtls_server.c118 mbedtls_x509_crt srvcert; in main() local
133 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()
234 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
235 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
413 mbedtls_x509_crt_free( &srvcert ); in main()
Dssl_fork_server.c111 mbedtls_x509_crt srvcert; in main() local
120 mbedtls_x509_crt_init( &srvcert ); in main()
152 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
160 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main()
196 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
197 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
406 mbedtls_x509_crt_free( &srvcert ); in main()
Dssl_pthread_server.c327 mbedtls_x509_crt srvcert; in main() local
345 mbedtls_x509_crt_init( &srvcert ); in main()
374 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
445 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
505 mbedtls_x509_crt_free( &srvcert ); in main()
Dssl_server2.c1301 mbedtls_x509_crt srvcert; in main() local
1390 mbedtls_x509_crt_init( &srvcert ); in main()
2377 if( ( ret = mbedtls_x509_crt_parse_file( &srvcert, opt.crt_file ) ) != 0 ) in main()
2439 if( ( ret = mbedtls_x509_crt_parse( &srvcert, in main()
2828 ret = ssl_async_set_key( &ssl_async_keys, &srvcert, pk, 0, in main()
2839 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, pk ) ) != 0 ) in main()
3966 mbedtls_x509_crt_free( &srvcert ); in main()