aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-05-23 11:53:46 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-06-12 10:17:54 +0200
commitd783aec96c3a69d44cc0008321b98054cd915b1b (patch)
tree5b45d4e3a08c4821b74461707ff4550b57b78c0c /src
parentdc35bbbeb1342be08051bfc25ca562e9ad3fcfa7 (diff)
downloadlibssh-d783aec96c3a69d44cc0008321b98054cd915b1b.tar.gz
libssh-d783aec96c3a69d44cc0008321b98054cd915b1b.tar.xz
libssh-d783aec96c3a69d44cc0008321b98054cd915b1b.zip
kex: Remove unused code
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/kex.c17
1 files changed, 0 insertions, 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)