mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 16:05:43 +01:00
- * If certificate serial is longer than 32 octets, serial number is now appended with '....' after first 28 octets
This commit is contained in:
parent
fe3256e54b
commit
03c7c25243
@ -38,6 +38,8 @@ Bugfix
|
|||||||
standard 1 byte version sometimes used by Microsoft. (Closes ticket #38)
|
standard 1 byte version sometimes used by Microsoft. (Closes ticket #38)
|
||||||
* Fixed incorrect behaviour in case of RSASSA-PSS with a salt length
|
* Fixed incorrect behaviour in case of RSASSA-PSS with a salt length
|
||||||
smaller than the hash length. (Closes ticket #41)
|
smaller than the hash length. (Closes ticket #41)
|
||||||
|
* If certificate serial is longer than 32 octets, serial number is now
|
||||||
|
appended with '....' after first 28 octets
|
||||||
|
|
||||||
= Version 1.0.0 released on 2011-07-27
|
= Version 1.0.0 released on 2011-07-27
|
||||||
Features
|
Features
|
||||||
|
@ -2362,7 +2362,7 @@ int x509parse_serial_gets( char *buf, size_t size, const x509_buf *serial )
|
|||||||
n = size;
|
n = size;
|
||||||
|
|
||||||
nr = ( serial->len <= 32 )
|
nr = ( serial->len <= 32 )
|
||||||
? serial->len : 32;
|
? serial->len : 28;
|
||||||
|
|
||||||
for( i = 0; i < nr; i++ )
|
for( i = 0; i < nr; i++ )
|
||||||
{
|
{
|
||||||
@ -2371,6 +2371,12 @@ int x509parse_serial_gets( char *buf, size_t size, const x509_buf *serial )
|
|||||||
SAFE_SNPRINTF();
|
SAFE_SNPRINTF();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( nr != serial->len )
|
||||||
|
{
|
||||||
|
ret = snprintf( p, n, "...." );
|
||||||
|
SAFE_SNPRINTF();
|
||||||
|
}
|
||||||
|
|
||||||
return( (int) ( size - n ) );
|
return( (int) ( size - n ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user