Home
last modified time | relevance | path

Searched refs:clicert (Results 1 – 10 of 10) sorted by relevance

/AliOS-Things-master/components/mbedtls/programs/test/
A Dssl_cert_test.c155 mbedtls_x509_crt clicert; in main() local
158 mbedtls_x509_crt_init( &clicert ); in main()
166 ret = mbedtls_x509_crt_parse_file( &clicert, name ); in main()
181 ret = mbedtls_x509_crt_verify( &clicert, &cacert, &crl, NULL, &flags, NULL, in main()
227 if( ! mbedtls_pk_can_do( &clicert.pk, MBEDTLS_PK_RSA ) ) in main()
233 ret = mbedtls_mpi_cmp_mpi(&mbedtls_pk_rsa( pk )->N, &mbedtls_pk_rsa( clicert.pk )->N); in main()
240 ret = mbedtls_mpi_cmp_mpi(&mbedtls_pk_rsa( pk )->E, &mbedtls_pk_rsa( clicert.pk )->E); in main()
256 mbedtls_x509_crt_free( &clicert ); in main()
/AliOS-Things-master/components/http/src/
A Dhttp_aos_wrapper.c32 mbedtls_x509_crt clicert; /**< x509 client cacert */ member
270 mbedtls_x509_crt_init(&ssl->clicert); in http_ssl_conn_wrapper()
291 …ret = mbedtls_x509_crt_parse(&ssl->clicert, (const unsigned char *)client->client_cert, client->cl… in http_ssl_conn_wrapper()
353 …if (client->client_cert && (ret = mbedtls_ssl_conf_own_cert(&ssl->ssl_conf, &ssl->clicert, &ssl->p… in http_ssl_conn_wrapper()
421 mbedtls_x509_crt_free(&ssl->clicert); in http_ssl_close_wrapper()
/AliOS-Things-master/components/mbedtls/programs/ssl/
A Dssl_mail_client.c390 mbedtls_x509_crt clicert; in main() local
405 mbedtls_x509_crt_init( &clicert ); in main()
551 ret = mbedtls_x509_crt_parse_file( &clicert, opt.crt_file ); in main()
555 ret = mbedtls_x509_crt_parse( &clicert, (const unsigned char *) mbedtls_test_cli_crt, in main()
633 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &clicert, &pkey ) ) != 0 ) in main()
854 mbedtls_x509_crt_free( &clicert ); in main()
A Dssl_client2.c568 mbedtls_x509_crt clicert; in main() local
584 mbedtls_x509_crt_init( &clicert ); in main()
1264 ret = mbedtls_x509_crt_parse_file( &clicert, opt.crt_file ); in main()
1268 ret = mbedtls_x509_crt_parse( &clicert, in main()
1466 if( ( ret = mbedtls_ssl_conf_own_cert( &conf, &clicert, &pkey ) ) != 0 ) in main()
2113 mbedtls_x509_crt_free( &clicert ); in main()
/AliOS-Things-master/components/linkkit/wrappers/platform/ssl/
A DHAL_TLS_mbedtls.c43 mbedtls_x509_crt clicert; /**< mbed TLS Client certification. */ member
417 ca_crt_len, &(pTlsData->clicert), client_crt, in _TLSConnectNetwork()
464 &(pTlsData->conf), &(pTlsData->clicert), &(pTlsData->pkey)); in _TLSConnectNetwork()
603 mbedtls_x509_crt_free(&(pTlsData->clicert)); in _network_ssl_disconnect()
667 mbedtls_x509_crt_free(&(pTlsData->clicert)); in HAL_SSL_Establish()
/AliOS-Things-master/components/uvoice/stream/
A Duvoice_ssl.c31 mbedtls_x509_crt clicert; /**< mbed TLS Client certification. */ member
318 &(pTlsData->cacertl), ca_crt, ca_crt_len, &(pTlsData->clicert), in _TLSConnectNetwork()
381 &(pTlsData->conf), &(pTlsData->clicert), &(pTlsData->pkey))) != 0) { in _TLSConnectNetwork()
524 mbedtls_x509_crt_free(&(pTlsData->clicert)); in _network_ssl_disconnect()
/AliOS-Things-master/components/mbedtls/library/
A Dx509.c1008 mbedtls_x509_crt clicert; in mbedtls_x509_self_test() local
1013 mbedtls_x509_crt_init( &clicert ); in mbedtls_x509_self_test()
1015 ret = mbedtls_x509_crt_parse( &clicert, (const unsigned char *) mbedtls_test_cli_crt, in mbedtls_x509_self_test()
1040 ret = mbedtls_x509_crt_verify( &clicert, &cacert, NULL, NULL, &flags, NULL, NULL ); in mbedtls_x509_self_test()
1053 mbedtls_x509_crt_free( &clicert ); in mbedtls_x509_self_test()
/AliOS-Things-master/components/linkkit/wrappers/os/
A DHAL_TLS_mbedtls.c47 mbedtls_x509_crt clicert; /**< mbed TLS Client certification. */ member
429 ca_crt_len, &(pTlsData->clicert), client_crt, in _TLSConnectNetwork()
514 &(pTlsData->conf), &(pTlsData->clicert), &(pTlsData->pkey)); in _TLSConnectNetwork()
824 mbedtls_x509_crt_free(&(pTlsData->clicert)); in _network_ssl_disconnect()
/AliOS-Things-master/components/websocket/include/
A Drws_socket.h74 mbedtls_x509_crt clicert; member
/AliOS-Things-master/components/websocket/src/
A Drws_socketpriv.c1130 mbedtls_x509_crt_init(&ssl->clicert); in rws_ssl_conn()
1149 …ret = mbedtls_x509_crt_parse(&ssl->clicert, (const unsigned char *)s->client_cert, s->client_cert_… in rws_ssl_conn()
1217 …if (s->client_cert && (ret = mbedtls_ssl_conf_own_cert(&ssl->ssl_conf, &ssl->clicert, &ssl->pkey))… in rws_ssl_conn()
1296 mbedtls_x509_crt_free(&ssl->clicert); in rws_ssl_close()

Completed in 21 milliseconds