kex: Reformat ssh_kex_get_supported_method()

This commit is contained in:
Jakub Jelen
2019-05-29 13:48:06 +02:00
committed by Andreas Schneider
parent 53cee7c9a3
commit 85241c19e9

View File

@@ -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) {