From 6dd9303729b430af3eaf1014af5af99c9230e9c7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 30 Jun 2018 14:23:05 +0200 Subject: chachapoly: Use a function instead of an extern variable Signed-off-by: Andreas Schneider --- src/chachapoly.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/chachapoly.c') diff --git a/src/chachapoly.c b/src/chachapoly.c index ab4378e6..904303ef 100644 --- a/src/chachapoly.c +++ b/src/chachapoly.c @@ -205,3 +205,8 @@ const struct ssh_cipher_struct chacha20poly1305_cipher = { .aead_decrypt = chacha20_poly1305_aead_decrypt, .cleanup = chacha20_cleanup }; + +const struct ssh_cipher_struct *ssh_get_chacha20poly1305_cipher(void) +{ + return &chacha20poly1305_cipher; +} -- cgit v1.2.3