summaryrefslogtreecommitdiffstats
path: root/readconf.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2022-02-20 03:30:52 +0100
committerDarren Tucker <dtucker@dtucker.net>2022-02-20 03:30:52 +0100
commit336685d223a59f893faeedf0a562e053fd84058e (patch)
tree5e1ad69b3dd46f1dd7f258950f3fc867dabfa7ff /readconf.c
parentAdd test configs for MUSL C library. (diff)
downloadopenssh-336685d223a59f893faeedf0a562e053fd84058e.tar.xz
openssh-336685d223a59f893faeedf0a562e053fd84058e.zip
Really move DSA to end of list.
In commit ad16a84e syncing from OpenBSD, RSA was accidentally moved to the end of the list instead of DSA. Spotted by andrew at fyfe.gb.net.
Diffstat (limited to '')
-rw-r--r--readconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c
index ef6bcfea3..f26fabaa6 100644
--- a/readconf.c
+++ b/readconf.c
@@ -2531,7 +2531,7 @@ fill_default_options(Options * options)
options->add_keys_to_agent_lifespan = 0;
}
if (options->num_identity_files == 0) {
- add_identity_file(options, "~/", _PATH_SSH_CLIENT_ID_DSA, 0);
+ add_identity_file(options, "~/", _PATH_SSH_CLIENT_ID_RSA, 0);
#ifdef OPENSSL_HAS_ECC
add_identity_file(options, "~/", _PATH_SSH_CLIENT_ID_ECDSA, 0);
add_identity_file(options, "~/",
@@ -2542,7 +2542,7 @@ fill_default_options(Options * options)
add_identity_file(options, "~/",
_PATH_SSH_CLIENT_ID_ED25519_SK, 0);
add_identity_file(options, "~/", _PATH_SSH_CLIENT_ID_XMSS, 0);
- add_identity_file(options, "~/", _PATH_SSH_CLIENT_ID_RSA, 0);
+ add_identity_file(options, "~/", _PATH_SSH_CLIENT_ID_DSA, 0);
}
if (options->escape_char == -1)
options->escape_char = '~';