From c8a621c6063f205e631d83a8ccd4befc60056e93 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Fri, 1 Nov 2019 14:59:27 +0100 Subject: Use only one variable denoting the size of methods arrays Previously, there was non-consistent usage of constans SSH_KEX_METHODS, KEX_METHODS_SIZE and of magic number 10 to reference the arrays used for algorithm negotiation by peers. This commit settles down to the single constant and its usage throughout the whole codebase. Fixes T195 Signed-off-by: Jakub Jelen Reviewed-by: Andreas Schneider --- include/libssh/session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libssh/session.h') diff --git a/include/libssh/session.h b/include/libssh/session.h index af02237d..22256150 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -213,7 +213,7 @@ struct ssh_session_struct { char *sshdir; char *knownhosts; char *global_knownhosts; - char *wanted_methods[10]; + char *wanted_methods[SSH_KEX_METHODS]; char *pubkey_accepted_types; char *ProxyCommand; char *custombanner; -- cgit v1.2.3