1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +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();
/* base64 buffer often used to contain sensitive data */
ssh_buffer_set_secure(buffer);
if (buffer == NULL) {
SAFE_FREE(base64);
return NULL;