mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 19:04:19 +01:00
x509: IP in SAN: fix typos caught by János
This commit is contained in:
parent
a245dae702
commit
faaf5fc590
@ -1252,7 +1252,7 @@ static int x509_info_subject_alt_name( char **buf, size_t *size,
|
|||||||
{
|
{
|
||||||
ret = mbedtls_snprintf( p, n, "%sIP:%d.%d.%d.%d", sep,
|
ret = mbedtls_snprintf( p, n, "%sIP:%d.%d.%d.%d", sep,
|
||||||
cur->buf.p[0], cur->buf.p[1],
|
cur->buf.p[0], cur->buf.p[1],
|
||||||
cur->buf.p[2], cur->buf.p[4] );
|
cur->buf.p[2], cur->buf.p[3] );
|
||||||
MBEDTLS_X509_SAFE_SNPRINTF;
|
MBEDTLS_X509_SAFE_SNPRINTF;
|
||||||
}
|
}
|
||||||
else if( cur->buf.len == 16 )
|
else if( cur->buf.len == 16 )
|
||||||
@ -1287,8 +1287,8 @@ static int x509_info_subject_alt_name( char **buf, size_t *size,
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_X509_SAN_IP_ADDRESS_SUPPORT */
|
#endif /* MBEDTLS_X509_SAN_IP_ADDRESS_SUPPORT */
|
||||||
/*
|
/*
|
||||||
* tag == 0 happens when the extension is present but with only unknow
|
* tag == 0 happens when the extension is present but with only
|
||||||
* types: we get a list with one uninitialized element
|
* unknown types: we get a list with one uninitialized element
|
||||||
*/
|
*/
|
||||||
else if( cur->buf.tag != 0 )
|
else if( cur->buf.tag != 0 )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user