mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
kex: Reformat ssh_kex_get_supported_method()
This commit is contained in:
committed by
Andreas Schneider
parent
53cee7c9a3
commit
85241c19e9
11
src/kex.c
11
src/kex.c
@@ -264,12 +264,13 @@ const char *ssh_kex_get_default_methods(uint32_t algo)
|
|||||||
return default_methods[algo];
|
return default_methods[algo];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *ssh_kex_get_supported_method(uint32_t algo) {
|
const char *ssh_kex_get_supported_method(uint32_t algo)
|
||||||
if (algo >= KEX_METHODS_SIZE) {
|
{
|
||||||
return NULL;
|
if (algo >= KEX_METHODS_SIZE) {
|
||||||
}
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return supported_methods[algo];
|
return supported_methods[algo];
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *ssh_kex_get_description(uint32_t algo) {
|
const char *ssh_kex_get_description(uint32_t algo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user