mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-02 05:21:08 +00:00
Fix small bug in base64_encode()
This commit is contained in:
parent
bbbb3cfba5
commit
65fc6a886a
|
@ -58,6 +58,7 @@ Bugfix
|
||||||
key exchanges enabled needs certificates. This fixes a possible interop
|
key exchanges enabled needs certificates. This fixes a possible interop
|
||||||
issue with some servers when a zero-length extension was sent. (Reported
|
issue with some servers when a zero-length extension was sent. (Reported
|
||||||
by Peter Dettman.)
|
by Peter Dettman.)
|
||||||
|
* On a 0-length input, base64_encode() did not correctly set output length.
|
||||||
|
|
||||||
Changes
|
Changes
|
||||||
* Use deterministic nonces for AEAD ciphers in TLS by default (possible to
|
* Use deterministic nonces for AEAD ciphers in TLS by default (possible to
|
||||||
|
|
|
@ -82,7 +82,10 @@ int base64_encode( unsigned char *dst, size_t *dlen,
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
if( slen == 0 )
|
if( slen == 0 )
|
||||||
|
{
|
||||||
|
*dlen = 0;
|
||||||
return( 0 );
|
return( 0 );
|
||||||
|
}
|
||||||
|
|
||||||
n = ( slen << 3 ) / 6;
|
n = ( slen << 3 ) / 6;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue