From d783aec96c3a69d44cc0008321b98054cd915b1b Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Thu, 23 May 2019 11:53:46 +0200 Subject: [PATCH] kex: Remove unused code Signed-off-by: Anderson Toshiyuki Sasaki Reviewed-by: Jakub Jelen --- src/kex.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/kex.c b/src/kex.c index c49b63bd..321187d9 100644 --- a/src/kex.c +++ b/src/kex.c @@ -812,23 +812,6 @@ int ssh_send_rekex(ssh_session session) return SSH_OK; } -/* returns 1 if at least one of the name algos is in the default algorithms table */ -int ssh_verify_existing_algo(enum ssh_kex_types_e algo, const char *name) -{ - char *ptr; - - if (algo > SSH_LANG_S_C) { - return -1; - } - - ptr=ssh_find_matching(supported_methods[algo],name); - if(ptr){ - free(ptr); - return 1; - } - return 0; -} - /* returns a copy of the provided list if everything is supported, * otherwise a new list of the supported algorithms */ char *ssh_keep_known_algos(enum ssh_kex_types_e algo, const char *list)