mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 10:55:38 +01: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
|
||||
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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user