Home
last modified time | relevance | path

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

/AliOS-Things-master/components/mbedtls/programs/ssl/
A Dssl_server.c119 mbedtls_x509_crt srvcert; in main() local
132 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()
232 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
233 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
396 mbedtls_x509_crt_free( &srvcert ); in main()
A Ddtls_server.c130 mbedtls_x509_crt srvcert; in main() local
145 mbedtls_x509_crt_init( &srvcert ); in main()
165 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
173 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main()
245 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
246 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
424 mbedtls_x509_crt_free( &srvcert ); in main()
A Dssl_fork_server.c124 mbedtls_x509_crt srvcert; in main() local
133 mbedtls_x509_crt_init( &srvcert ); in main()
165 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
173 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_cas_pem, in main()
209 mbedtls_ssl_conf_ca_chain( &conf, srvcert.next, NULL ); in main()
210 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
418 mbedtls_x509_crt_free( &srvcert ); in main()
A Dssl_pthread_server.c340 mbedtls_x509_crt srvcert; in main() local
358 mbedtls_x509_crt_init( &srvcert ); in main()
387 ret = mbedtls_x509_crt_parse( &srvcert, (const unsigned char *) mbedtls_test_srv_crt, in main()
458 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, &pkey ) ) != 0 ) in main()
517 mbedtls_x509_crt_free( &srvcert ); in main()
A Dssl_server2.c1221 mbedtls_x509_crt srvcert; in main() local
1271 mbedtls_x509_crt_init( &srvcert ); in main()
2038 if( ( ret = mbedtls_x509_crt_parse_file( &srvcert, opt.crt_file ) ) != 0 ) in main()
2098 if( ( ret = mbedtls_x509_crt_parse( &srvcert, in main()
2392 ret = ssl_async_set_key( &ssl_async_keys, &srvcert, pk, 0, in main()
2403 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &srvcert, pk ) ) != 0 ) in main()
3123 mbedtls_x509_crt_free( &srvcert ); in main()

Completed in 16 milliseconds