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/libgcrypt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libgcrypt.c') diff --git a/src/libgcrypt.c b/src/libgcrypt.c index 6bf4f8a0..4b84cd40 100644 --- a/src/libgcrypt.c +++ b/src/libgcrypt.c @@ -35,8 +35,6 @@ #ifdef HAVE_LIBGCRYPT #include -extern const struct ssh_cipher_struct chacha20poly1305_cipher; - struct ssh_mac_ctx_struct { enum ssh_mac_e mac_type; gcry_md_hd_t ctx; @@ -544,7 +542,7 @@ void libgcrypt_init(void) cmp = strcmp(ssh_ciphertab[i].name, "chacha20-poly1305@openssh.com"); if (cmp == 0) { memcpy(&ssh_ciphertab[i], - &chacha20poly1305_cipher, + ssh_get_chacha20poly1305_cipher(), sizeof(struct ssh_cipher_struct)); break; } -- cgit v1.2.3