mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-03 01:10:21 +00:00
Add comment about X.509 name comparison of buffer with itself
This commit is contained in:
parent
bc6b59859f
commit
3aa121660e
|
@ -1283,6 +1283,7 @@ static int x509_crt_parse_frame( unsigned char *start,
|
||||||
p += len;
|
p += len;
|
||||||
frame->issuer_raw.len = p - frame->issuer_raw.p;
|
frame->issuer_raw.len = p - frame->issuer_raw.p;
|
||||||
|
|
||||||
|
/* Comparing the raw buffer to itself amounts to structural validation. */
|
||||||
ret = mbedtls_x509_name_cmp_raw( &frame->issuer_raw,
|
ret = mbedtls_x509_name_cmp_raw( &frame->issuer_raw,
|
||||||
&frame->issuer_raw,
|
&frame->issuer_raw,
|
||||||
NULL, NULL );
|
NULL, NULL );
|
||||||
|
@ -1313,6 +1314,7 @@ static int x509_crt_parse_frame( unsigned char *start,
|
||||||
p += len;
|
p += len;
|
||||||
frame->subject_raw.len = p - frame->subject_raw.p;
|
frame->subject_raw.len = p - frame->subject_raw.p;
|
||||||
|
|
||||||
|
/* Comparing the raw buffer to itself amounts to structural validation. */
|
||||||
ret = mbedtls_x509_name_cmp_raw( &frame->subject_raw,
|
ret = mbedtls_x509_name_cmp_raw( &frame->subject_raw,
|
||||||
&frame->subject_raw,
|
&frame->subject_raw,
|
||||||
NULL, NULL );
|
NULL, NULL );
|
||||||
|
|
Loading…
Reference in a new issue