diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-02-09 23:40:23 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-02-09 23:40:23 +0800 |
commit | 4b021ae6f0b957eeab8bb6c6f20f20173c5e29f2 (patch) | |
tree | a258baa98812f93fd9cd53f2d0445ff40ad03abd /common-algo.c | |
parent | a36f182b369aab5b387dd75c1983d76d4fb28d10 (diff) |
Remove none cipher
Diffstat (limited to 'common-algo.c')
-rw-r--r-- | common-algo.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/common-algo.c b/common-algo.c index 48a92e8..e61fcaa 100644 --- a/common-algo.c +++ b/common-algo.c @@ -179,9 +179,6 @@ algo_type sshciphers[] = { {"blowfish-cbc", 0, &dropbear_blowfish, 1, &dropbear_mode_cbc}, #endif #endif /* DROPBEAR_ENABLE_CBC_MODE */ -#if DROPBEAR_NONE_CIPHER - {"none", 0, (void*)&dropbear_nocipher, 1, &dropbear_mode_none}, -#endif {NULL, 0, NULL, 0, NULL} }; @@ -466,38 +463,6 @@ out: return ret; } -#if DROPBEAR_NONE_CIPHER - -void -set_algo_usable(algo_type algos[], const char * algo_name, int usable) -{ - algo_type *a; - for (a = algos; a->name != NULL; a++) - { - if (strcmp(a->name, algo_name) == 0) - { - a->usable = usable; - return; - } - } -} - -int -get_algo_usable(algo_type algos[], const char * algo_name) -{ - algo_type *a; - for (a = algos; a->name != NULL; a++) - { - if (strcmp(a->name, algo_name) == 0) - { - return a->usable; - } - } - return 0; -} - -#endif /* DROPBEAR_NONE_CIPHER */ - #if DROPBEAR_USER_ALGO_LIST char * |