aboutsummaryrefslogtreecommitdiff
path: root/src/pki_crypto.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-03 17:51:43 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-04 19:57:43 +0200
commit1acb82e38a7969115e439af148d1d6a703ddba72 (patch)
tree0710e21e4acd3cfc1c1fae3963f2fac59d2f4955 /src/pki_crypto.c
parenta6d59811bb76f9ca30e1707caa94034f9c9f1caf (diff)
downloadlibssh-1acb82e38a7969115e439af148d1d6a703ddba72.tar.gz
libssh-1acb82e38a7969115e439af148d1d6a703ddba72.tar.xz
libssh-1acb82e38a7969115e439af148d1d6a703ddba72.zip
pki_crypto: Use explicit_bzero()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src/pki_crypto.c')
-rw-r--r--src/pki_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index 8e1e16ad..082f84ff 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -1230,7 +1230,7 @@ static ssh_string _RSA_do_sign_hash(const unsigned char *digest,
}
ssh_string_fill(sig_blob, sig, slen);
- memset(sig, 'd', slen);
+ explicit_bzero(sig, slen);
SAFE_FREE(sig);
return sig_blob;