aboutsummaryrefslogtreecommitdiff
path: root/src/wrapper.c
diff options
context:
space:
mode:
authorJon Simons <jon@jonsimons.org>2017-07-19 17:23:16 -0400
committerAndreas Schneider <asn@cryptomilk.org>2018-06-28 09:06:30 +0200
commitd4a4ce4d44a9c4431dd9884fbfc458e70c9a5eb5 (patch)
tree07f617187e204a6950422bbeff34e21c31b17825 /src/wrapper.c
parent7a2624dee44018980a499943f1db044f7a3802f7 (diff)
downloadlibssh-d4a4ce4d44a9c4431dd9884fbfc458e70c9a5eb5.tar.gz
libssh-d4a4ce4d44a9c4431dd9884fbfc458e70c9a5eb5.tar.xz
libssh-d4a4ce4d44a9c4431dd9884fbfc458e70c9a5eb5.zip
chacha: use a cipher cleanup callback
With this change there is less code specific to the chacha20-poly1305 cipher found in src/wrapper.c. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/wrapper.c')
-rw-r--r--src/wrapper.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/wrapper.c b/src/wrapper.c
index 5bf5cee5..7d771030 100644
--- a/src/wrapper.c
+++ b/src/wrapper.c
@@ -128,9 +128,6 @@ void ssh_cipher_clear(struct ssh_cipher_struct *cipher){
if (cipher->cleanup != NULL) {
cipher->cleanup(cipher);
}
- if (cipher->chacha20_schedule != NULL){
- SAFE_FREE(cipher->chacha20_schedule);
- }
}
static void cipher_free(struct ssh_cipher_struct *cipher) {