- * If certificate serial is longer than 32 octets, serial number is now appended with '....' after first 28 octets

This commit is contained in:
Paul Bakker 2011-11-25 12:37:37 +00:00
parent fe3256e54b
commit 03c7c25243
2 changed files with 9 additions and 1 deletions

View File

@ -38,6 +38,8 @@ Bugfix
standard 1 byte version sometimes used by Microsoft. (Closes ticket #38)
* Fixed incorrect behaviour in case of RSASSA-PSS with a salt length
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
Features

View File

@ -2362,7 +2362,7 @@ int x509parse_serial_gets( char *buf, size_t size, const x509_buf *serial )
n = size;
nr = ( serial->len <= 32 )
? serial->len : 32;
? serial->len : 28;
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();
}
if( nr != serial->len )
{
ret = snprintf( p, n, "...." );
SAFE_SNPRINTF();
}
return( (int) ( size - n ) );
}