mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05: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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user