Lines Matching refs:san
233 int verify_parse_san( mbedtls_x509_subject_alternative_name *san,
241 ret = mbedtls_snprintf( p, n, "type : %d", san->type );
244 switch( san->type )
251 &san->san.other_name.value.hardware_module_name.oid ) != 0 )
259 &san->san.other_name.value.hardware_module_name.oid );
265 if( san->san.other_name.value.hardware_module_name.val.len >= n )
271 for( i=0; i < san->san.other_name.value.hardware_module_name.val.len; i++ )
273 *p++ = san->san.other_name.value.hardware_module_name.val.p[i];
275 n -= san->san.other_name.value.hardware_module_name.val.len;
281 if( san->san.unstructured_name.len >= n )
286 n -= san->san.unstructured_name.len;
287 for( i = 0; i < san->san.unstructured_name.len; i++ )
288 *p++ = san->san.unstructured_name.p[i];
408 mbedtls_x509_subject_alternative_name san;
424 ret = mbedtls_x509_parse_subject_alt_name( &cur->buf, &san );
427 * If san type not supported, ignore.
430 TEST_ASSERT( verify_parse_san( &san, &p, &n ) == 0 );