Home
last modified time | relevance | path

Searched refs:crt (Results 1 – 12 of 12) sorted by relevance

/AliOS-Things-master/components/mbedtls/library/
A Dx509_crt.c885 crt->raw.p = p = mbedtls_calloc( 1, crt->raw.len ); in x509_crt_parse_der_core()
908 crt->tbs.len = end - crt->tbs.p; in x509_crt_parse_der_core()
926 if( crt->version < 0 || crt->version > 2 ) in x509_crt_parse_der_core()
960 crt->issuer_raw.len = p - crt->issuer_raw.p; in x509_crt_parse_der_core()
993 crt->subject_raw.len = p - crt->subject_raw.p; in x509_crt_parse_der_core()
1012 if( crt->version == 2 || crt->version == 3 ) in x509_crt_parse_der_core()
1022 if( crt->version == 2 || crt->version == 3 ) in x509_crt_parse_der_core()
1108 while( crt->version != 0 && crt->next != NULL ) in mbedtls_x509_crt_parse_der()
1111 crt = crt->next; in mbedtls_x509_crt_parse_der()
1117 if( crt->version != 0 && crt->next == NULL ) in mbedtls_x509_crt_parse_der()
[all …]
A Ddebug.c343 const char *text, const mbedtls_x509_crt *crt ) in mbedtls_debug_print_crt() argument
348 if( ssl->conf == NULL || ssl->conf->f_dbg == NULL || crt == NULL || level > debug_threshold ) in mbedtls_debug_print_crt()
351 while( crt != NULL ) in mbedtls_debug_print_crt()
358 mbedtls_x509_crt_info( buf, sizeof( buf ) - 1, "", crt ); in mbedtls_debug_print_crt()
361 debug_print_pk( ssl, level, file, line, "crt->", &crt->pk ); in mbedtls_debug_print_crt()
363 crt = crt->next; in mbedtls_debug_print_crt()
A Dx509write_crt.c456 int mbedtls_x509write_crt_pem( mbedtls_x509write_cert *crt, unsigned char *buf, size_t size, in mbedtls_x509write_crt_pem() argument
464 if( ( ret = mbedtls_x509write_crt_der( crt, output_buf, sizeof(output_buf), in mbedtls_x509write_crt_pem()
A Dssl_srv.c2680 const mbedtls_x509_crt *crt; in ssl_write_certificate_request() local
2796 crt = ssl->handshake->sni_ca_chain; in ssl_write_certificate_request()
2799 crt = ssl->conf->ca_chain; in ssl_write_certificate_request()
2801 while( crt != NULL && crt->version != 0 ) in ssl_write_certificate_request()
2803 dn_size = crt->subject_raw.len; in ssl_write_certificate_request()
2815 memcpy( p, crt->subject_raw.p, dn_size ); in ssl_write_certificate_request()
2821 crt = crt->next; in ssl_write_certificate_request()
A Dssl_tls.c5328 const mbedtls_x509_crt *crt; in mbedtls_ssl_write_certificate() local
5395 crt = mbedtls_ssl_own_cert( ssl ); in mbedtls_ssl_write_certificate()
5397 while( crt != NULL ) in mbedtls_ssl_write_certificate()
5399 n = crt->raw.len; in mbedtls_ssl_write_certificate()
5411 i += 3; memcpy( ssl->out_msg + i, crt->raw.p, n ); in mbedtls_ssl_write_certificate()
5412 i += n; crt = crt->next; in mbedtls_ssl_write_certificate()
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dx509_crt.h150 mbedtls_x509_crt *crt; member
312 const mbedtls_x509_crt *crt );
329 const mbedtls_x509_crt *crt );
404 int mbedtls_x509_crt_verify( mbedtls_x509_crt *crt,
438 int mbedtls_x509_crt_verify_with_profile( mbedtls_x509_crt *crt,
468 int mbedtls_x509_crt_verify_restartable( mbedtls_x509_crt *crt,
499 int mbedtls_x509_crt_check_key_usage( const mbedtls_x509_crt *crt,
517 int mbedtls_x509_crt_check_extended_key_usage( const mbedtls_x509_crt *crt,
532 int mbedtls_x509_crt_is_revoked( const mbedtls_x509_crt *crt, const mbedtls_x509_crl *crl );
540 void mbedtls_x509_crt_init( mbedtls_x509_crt *crt );
[all …]
A Ddebug.h64 #define MBEDTLS_SSL_DEBUG_CRT( level, text, crt ) \ argument
65 mbedtls_debug_print_crt( ssl, level, __FILE__, __LINE__, text, crt )
80 #define MBEDTLS_SSL_DEBUG_CRT( level, text, crt ) do { } while( 0 ) argument
227 const char *text, const mbedtls_x509_crt *crt );
/AliOS-Things-master/components/mbedtls/programs/x509/
A Dcert_write.c208 if( ( ret = mbedtls_x509write_crt_pem( crt, output_buf, 4096, in write_certificate()
244 mbedtls_x509write_cert crt; in main() local
253 mbedtls_x509write_crt_init( &crt ); in main()
642 mbedtls_x509write_crt_set_subject_key( &crt, subject_key ); in main()
643 mbedtls_x509write_crt_set_issuer_key( &crt, issuer_key ); in main()
667 mbedtls_x509write_crt_set_version( &crt, opt.version ); in main()
668 mbedtls_x509write_crt_set_md_alg( &crt, opt.md ); in main()
670 ret = mbedtls_x509write_crt_set_serial( &crt, &serial ); in main()
716 ret = mbedtls_x509write_crt_set_subject_key_identifier( &crt ); in main()
791 if( ( ret = write_certificate( &crt, opt.output_file, in main()
[all …]
A Dcert_app.c141 static int my_verify( void *data, mbedtls_x509_crt *crt, int depth, uint32_t *flags ) in my_verify() argument
147 mbedtls_x509_crt_info( buf, sizeof( buf ) - 1, "", crt ); in my_verify()
306 mbedtls_x509_crt crt; in main() local
307 mbedtls_x509_crt *cur = &crt; in main()
308 mbedtls_x509_crt_init( &crt ); in main()
316 ret = mbedtls_x509_crt_parse_file( &crt, opt.filename ); in main()
321 mbedtls_x509_crt_free( &crt ); in main()
328 mbedtls_x509_crt_free( &crt ); in main()
345 mbedtls_x509_crt_free( &crt ); in main()
361 if( ( ret = mbedtls_x509_crt_verify( &crt, &cacert, &cacrl, NULL, &flags, in main()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/wpa_supplicant/
A Dwifi_eap_config.c349 static int eap_verify(void *data, x509_crt *crt, int depth, int *flags) in eap_verify() argument
499 static int eap_verify(void *data, mbedtls_x509_crt *crt, int depth, uint32_t *flags) in eap_verify() argument
/AliOS-Things-master/components/linkkit/wrappers/platform/ssl/
A DHAL_TLS_mbedtls.c262 static int _ssl_parse_crt(mbedtls_x509_crt *crt) in _ssl_parse_crt() argument
265 mbedtls_x509_crt *local_crt = crt; in _ssl_parse_crt()
/AliOS-Things-master/components/mbedtls/programs/ssl/
A Dssl_client2.c444 static int my_verify( void *data, mbedtls_x509_crt *crt, in my_verify() argument
451 mbedtls_x509_crt_info( buf, sizeof( buf ) - 1, "", crt ); in my_verify()

Completed in 44 milliseconds