Fix small bug in base64_encode()

This commit is contained in:
Manuel Pégourié-Gonnard 2015-01-28 16:49:26 +00:00
parent bbbb3cfba5
commit 65fc6a886a
2 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,7 @@ Bugfix
key exchanges enabled needs certificates. This fixes a possible interop
issue with some servers when a zero-length extension was sent. (Reported
by Peter Dettman.)
* On a 0-length input, base64_encode() did not correctly set output length.
Changes
* Use deterministic nonces for AEAD ciphers in TLS by default (possible to

View File

@ -82,7 +82,10 @@ int base64_encode( unsigned char *dst, size_t *dlen,
unsigned char *p;
if( slen == 0 )
{
*dlen = 0;
return( 0 );
}
n = ( slen << 3 ) / 6;