Lines Matching refs:crt

23 int verify_none( void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags )
26 ((void) crt);
33 int verify_all( void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags )
36 ((void) crt);
85 int verify_print( void *data, mbedtls_x509_crt *crt, int certificate_depth, uint32_t *flags )
96 ret = mbedtls_x509_serial_gets( p, n, &crt->serial );
102 ret = mbedtls_x509_dn_gets( p, n, &crt->subject );
123 mbedtls_x509_crt crt;
127 mbedtls_x509_crt_init( &crt );
130 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == 0 );
131 res = mbedtls_x509_crt_info( buf, 2000, "", &crt );
139 mbedtls_x509_crt_free( &crt );
210 mbedtls_x509_crt crt;
218 mbedtls_x509_crt_init( &crt );
234 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == 0 );
238 …res = mbedtls_x509_crt_verify_with_profile( &crt, &ca, &crl, &compat_profile, cn_name, &flags, f_v…
244 mbedtls_x509_crt_free( &crt );
255 mbedtls_x509_crt crt;
260 mbedtls_x509_crt_init( &crt );
264 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == 0 );
267 ret = mbedtls_x509_crt_verify( &crt, &ca, NULL, NULL, &flags,
274 mbedtls_x509_crt_free( &crt );
282 mbedtls_x509_crt crt;
286 mbedtls_x509_crt_init( &crt );
289 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == 0 );
291 res = mbedtls_x509_dn_gets( buf, 2000, &crt.subject );
293 res = mbedtls_x509_dn_gets( buf, 2000, &crt.issuer );
303 mbedtls_x509_crt_free( &crt );
310 mbedtls_x509_crt crt;
312 mbedtls_x509_crt_init( &crt );
314 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == 0 );
317 TEST_ASSERT( mbedtls_x509_time_is_past( &crt.valid_from ) == result );
319 TEST_ASSERT( mbedtls_x509_time_is_past( &crt.valid_to ) == result );
324 mbedtls_x509_crt_free( &crt );
331 mbedtls_x509_crt crt;
333 mbedtls_x509_crt_init( &crt );
335 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == 0 );
338 TEST_ASSERT( mbedtls_x509_time_is_future( &crt.valid_from ) == result );
340 TEST_ASSERT( mbedtls_x509_time_is_future( &crt.valid_to ) == result );
345 mbedtls_x509_crt_free( &crt );
352 mbedtls_x509_crt crt;
354 mbedtls_x509_crt_init( &crt );
356 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == result );
359 mbedtls_x509_crt_free( &crt );
366 mbedtls_x509_crt crt;
371 mbedtls_x509_crt_init( &crt );
377 TEST_ASSERT( mbedtls_x509_crt_parse( &crt, buf, data_len ) == ( result ) );
380 res = mbedtls_x509_crt_info( (char *) output, 2000, "", &crt );
389 mbedtls_x509_crt_free( &crt );
561 mbedtls_x509_crt crt;
563 mbedtls_x509_crt_init( &crt );
565 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == 0 );
567 TEST_ASSERT( mbedtls_x509_crt_check_key_usage( &crt, usage ) == ret );
570 mbedtls_x509_crt_free( &crt );
577 mbedtls_x509_crt crt;
581 mbedtls_x509_crt_init( &crt );
585 TEST_ASSERT( mbedtls_x509_crt_parse_file( &crt, crt_file ) == 0 );
587 TEST_ASSERT( mbedtls_x509_crt_check_extended_key_usage( &crt, oid, len ) == ret );
590 mbedtls_x509_crt_free( &crt );