Home
last modified time | relevance | path

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

/mbedtls-development/programs/fuzz/
A Dfuzz_dtlsserver.c24 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()
A Dfuzz_server.c20 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()
/mbedtls-development/programs/ssl/
A Dssl_server.c101 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()
A Dssl_fork_server.c107 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()
A Ddtls_server.c113 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()
A Dssl_pthread_server.c322 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()
A Dssl_server2.c1317 mbedtls_x509_crt srvcert; in main() local
1414 mbedtls_x509_crt_init( &srvcert ); in main()
2391 if( ( ret = mbedtls_x509_crt_parse_file( &srvcert, opt.crt_file ) ) != 0 ) in main()
2449 if( ( ret = mbedtls_x509_crt_parse( &srvcert, in main()
2802 ret = ssl_async_set_key( &ssl_async_keys, &srvcert, pk, 0, in main()
2813 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, pk ) ) != 0 ) in main()
3955 mbedtls_x509_crt_free( &srvcert ); in main()

Completed in 13 milliseconds