mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
base64: Use a secure buffer.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
86ae6b2251
commit
e9b2d164e0
@@ -82,6 +82,11 @@ ssh_buffer base64_to_bin(const char *source) {
|
||||
SAFE_FREE(base64);
|
||||
return NULL;
|
||||
}
|
||||
/*
|
||||
* The base64 buffer often contains sensitive data. Make sure we don't leak
|
||||
* sensitive data
|
||||
*/
|
||||
ssh_buffer_set_secure(buffer);
|
||||
|
||||
len = strlen(ptr);
|
||||
while (len > 4) {
|
||||
|
||||
Reference in New Issue
Block a user