summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.c8
-rw-r--r--src/options.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/config.c b/src/config.c
index cfe2cc5..03e6e90 100644
--- a/src/config.c
+++ b/src/config.c
@@ -40,7 +40,7 @@ enum ssh_config_opcode_e {
SOC_COMPRESSION,
SOC_TIMEOUT,
SOC_PROTOCOL,
- SOC_HOSTKEYCHECK,
+ SOC_STRICTHOSTKEYCHECK,
SOC_KNOWNHOSTS,
SOC_PROXYCOMMAND
};
@@ -60,7 +60,7 @@ static struct ssh_config_keyword_table_s ssh_config_keyword_table[] = {
{ "compression", SOC_COMPRESSION },
{ "connecttimeout", SOC_TIMEOUT },
{ "protocol", SOC_PROTOCOL },
- { "stricthostkeychecking", SOC_HOSTKEYCHECK },
+ { "stricthostkeychecking", SOC_STRICTHOSTKEYCHECK },
{ "userknownhostsfile", SOC_KNOWNHOSTS },
{ "proxycommand", SOC_PROXYCOMMAND },
{ NULL, SOC_UNSUPPORTED }
@@ -284,10 +284,10 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
ssh_options_set(session, SSH_OPTIONS_TIMEOUT, &i);
}
break;
- case SOC_HOSTKEYCHECK:
+ case SOC_STRICTHOSTKEYCHECK:
i = ssh_config_get_yesno(&s, -1);
if (i >= 0 && *parsing) {
- ssh_options_set(session, SSH_OPTIONS_HOSTKEYCHECK, &i);
+ ssh_options_set(session, SSH_OPTIONS_STRICTHOSTKEYCHECK, &i);
}
break;
case SOC_KNOWNHOSTS:
diff --git a/src/options.c b/src/options.c
index eae9280..85375c5 100644
--- a/src/options.c
+++ b/src/options.c
@@ -318,7 +318,7 @@ int ssh_options_set_algo(ssh_session session, int algo,
* Set the compression to use for server to client
* communication (string, "none" or "zlib").
*
- * - SSH_OPTIONS_HOSTKEYCHECK:
+ * - SSH_OPTIONS_STRICTHOSTKEYCHECK:
* Set the parameter StrictHostKeyChecking to avoid
* asking about a fingerprint (integer, 0 = false).
*
@@ -588,7 +588,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type,
return -1;
}
break;
- case SSH_OPTIONS_HOSTKEYCHECK:
+ case SSH_OPTIONS_STRICTHOSTKEYCHECK:
if (value == NULL) {
ssh_set_error_invalid(session, __FUNCTION__);
return -1;