Searched refs:srvcert (Results 1 – 6 of 6) sorted by relevance
/net-tools-3.5.0/mbedtls-2.4.0/programs/ssl/ |
D | ssl_server.c | 104 mbedtls_x509_crt srvcert; in main() local 117 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() 217 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 218 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 381 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() 192 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 193 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 399 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | dtls_server.c | 106 mbedtls_x509_crt srvcert; in main() local 121 mbedtls_x509_crt_init( &srvcert ); in main() 141 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 149 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main() 221 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main() 222 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 400 mbedtls_x509_crt_free( &srvcert ); in main()
|
D | ssl_pthread_server.c | 324 mbedtls_x509_crt srvcert; in main() local 342 mbedtls_x509_crt_init( &srvcert ); in main() 371 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main() 442 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 | 810 mbedtls_x509_crt srvcert; in main() local 853 mbedtls_x509_crt_init( &srvcert ); in main() 1444 if( ( ret = mbedtls_x509_crt_parse_file( &srvcert, opt.crt_file ) ) != 0 ) in main() 1505 if( ( ret = mbedtls_x509_crt_parse( &srvcert, in main() 1772 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main() 2286 mbedtls_x509_crt_free( &srvcert ); in main()
|
/net-tools-3.5.0/ |
D | dtls-server.c | 117 mbedtls_x509_crt srvcert; in main() local 173 mbedtls_x509_crt_init(&srvcert); in main() 188 ret = mbedtls_x509_crt_parse_file(&srvcert, srv_cert_file); in main() 258 mbedtls_ssl_conf_ca_chain(&conf, srvcert.next, NULL); in main() 259 if ((ret = mbedtls_ssl_conf_own_cert(&conf, &srvcert, &pkey)) != 0) { in main() 437 mbedtls_x509_crt_free(&srvcert); in main()
|