aboutsummaryrefslogtreecommitdiff
path: root/src/pki.c
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-04-30 15:31:19 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-05-13 16:37:51 +0200
commit0ea9e39e81a4d6e7a57e733be02da1d7e969aef2 (patch)
tree2cc9747f9694678e520de98560cb1bb9419d84c6 /src/pki.c
parente775182c2e07bed49e94733cc36e05d2f720d3cf (diff)
downloadlibssh-0ea9e39e81a4d6e7a57e733be02da1d7e969aef2.tar.gz
libssh-0ea9e39e81a4d6e7a57e733be02da1d7e969aef2.tar.xz
libssh-0ea9e39e81a4d6e7a57e733be02da1d7e969aef2.zip
pki: Add a common place to store raw signatures
This is a preparation to store the raw signature for all algorithms in the same place in ssh_signature. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki.c')
-rw-r--r--src/pki.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pki.c b/src/pki.c
index 9dbcd317..a8da2b93 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -629,6 +629,9 @@ void ssh_signature_free(ssh_signature sig)
break;
}
+ /* Explicitly zero the signature content before free */
+ ssh_string_burn(sig->raw_sig);
+ ssh_string_free(sig->raw_sig);
SAFE_FREE(sig);
}