1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-10 06:23:01 +03:00

base64: Use secure buffers

Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Aris Adamantiadis
2014-09-01 08:42:01 +02:00
committed by Andreas Schneider
parent ad8fa427dd
commit 8af829a42a

View File

@@ -78,6 +78,8 @@ ssh_buffer base64_to_bin(const char *source) {
} }
buffer = ssh_buffer_new(); buffer = ssh_buffer_new();
/* base64 buffer often used to contain sensitive data */
ssh_buffer_set_secure(buffer);
if (buffer == NULL) { if (buffer == NULL) {
SAFE_FREE(base64); SAFE_FREE(base64);
return NULL; return NULL;