mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 18:29:50 +09:00
kex: Improved naming of variables.
Signed-off-by: David Wedderwille <davidwe@posteo.de> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
d02163546d
commit
0b91ba779c
35
src/kex.c
35
src/kex.c
@@ -275,38 +275,39 @@ static const char *ssh_kex_descriptions[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
const char *ssh_kex_get_default_methods(uint32_t algo)
|
||||
const char *ssh_kex_get_default_methods(enum ssh_kex_types_e type)
|
||||
{
|
||||
if (algo >= SSH_KEX_METHODS) {
|
||||
if (type >= SSH_KEX_METHODS) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return default_methods[algo];
|
||||
return default_methods[type];
|
||||
}
|
||||
|
||||
const char *ssh_kex_get_supported_method(uint32_t algo)
|
||||
const char *ssh_kex_get_supported_method(enum ssh_kex_types_e type)
|
||||
{
|
||||
if (algo >= SSH_KEX_METHODS) {
|
||||
if (type >= SSH_KEX_METHODS) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return supported_methods[algo];
|
||||
return supported_methods[type];
|
||||
}
|
||||
|
||||
const char *ssh_kex_get_description(uint32_t algo) {
|
||||
if (algo >= SSH_KEX_METHODS) {
|
||||
return NULL;
|
||||
}
|
||||
const char *ssh_kex_get_description(enum ssh_kex_types_e type)
|
||||
{
|
||||
if (type >= SSH_KEX_METHODS) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return ssh_kex_descriptions[algo];
|
||||
return ssh_kex_descriptions[type];
|
||||
}
|
||||
|
||||
const char *ssh_kex_get_fips_methods(uint32_t algo) {
|
||||
if (algo >= SSH_KEX_METHODS) {
|
||||
return NULL;
|
||||
}
|
||||
const char *ssh_kex_get_fips_methods(enum ssh_kex_types_e type)
|
||||
{
|
||||
if (type >= SSH_KEX_METHODS) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return fips_methods[algo];
|
||||
return fips_methods[type];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user