Home
last modified time | relevance | path

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

/mbedtls-3.7.0/programs/fuzz/
Dfuzz_dtlsserver.c23 static mbedtls_x509_crt srvcert; variable
52 mbedtls_x509_crt_init(&srvcert); in LLVMFuzzerTestOneInput()
74 if (mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_srv_crt, in LLVMFuzzerTestOneInput()
78 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()
167 mbedtls_x509_crt_free(&srvcert); in LLVMFuzzerTestOneInput()
Dfuzz_server.c18 static mbedtls_x509_crt srvcert; variable
60 mbedtls_x509_crt_init(&srvcert); in LLVMFuzzerTestOneInput()
83 if (mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_srv_crt, in LLVMFuzzerTestOneInput()
87 if (mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_cas_pem, in LLVMFuzzerTestOneInput()
118 mbedtls_ssl_conf_ca_chain(&conf, srvcert.next, NULL); in LLVMFuzzerTestOneInput()
119 if (mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey) != 0) { in LLVMFuzzerTestOneInput()
203 mbedtls_x509_crt_free(&srvcert); in LLVMFuzzerTestOneInput()
/mbedtls-3.7.0/programs/ssl/
Dssl_server.c77 mbedtls_x509_crt srvcert; in main() local
90 mbedtls_x509_crt_init(&srvcert); in main()
135 ret = mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
142 ret = mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main()
195 mbedtls_ssl_conf_ca_chain(&conf, srvcert.next, NULL); in main()
196 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main()
344 mbedtls_x509_crt_free(&srvcert); in main()
Dssl_fork_server.c84 mbedtls_x509_crt srvcert; in main() local
93 mbedtls_x509_crt_init(&srvcert); in main()
133 ret = mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
140 ret = mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main()
174 mbedtls_ssl_conf_ca_chain(&conf, srvcert.next, NULL); in main()
175 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main()
366 mbedtls_x509_crt_free(&srvcert); in main()
Ddtls_server.c90 mbedtls_x509_crt srvcert; in main() local
105 mbedtls_x509_crt_init(&srvcert); in main()
150 ret = mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
157 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()
384 mbedtls_x509_crt_free(&srvcert); in main()
Dssl_pthread_server.c287 mbedtls_x509_crt srvcert; in main() local
305 mbedtls_x509_crt_init(&srvcert); in main()
359 ret = mbedtls_x509_crt_parse(&srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
411 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main()
466 mbedtls_x509_crt_free(&srvcert); in main()
Dssl_server2.c1541 mbedtls_x509_crt srvcert; in main() local
1638 mbedtls_x509_crt_init(&srvcert); in main()
2623 if ((ret = mbedtls_x509_crt_parse_file(&srvcert, opt.crt_file)) != 0) { in main()
2672 if ((ret = mbedtls_x509_crt_parse(&srvcert, in main()
3074 ret = ssl_async_set_key(&ssl_async_keys, &srvcert, pk, 0, in main()
3084 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, pk)) != 0) { in main()
4235 mbedtls_x509_crt_free(&srvcert); in main()