summaryrefslogtreecommitdiff
path: root/sshconnect2.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2008-06-02 13:04:55 +0000
committerColin Watson <cjwatson@debian.org>2008-06-02 13:04:55 +0000
commitda162da0416abb367ea8a415eb90d072a01fa020 (patch)
treea6a649302f33b74be5052b54c66f074f2b788b11 /sshconnect2.c
parent15d091acca07091e7f196168bdf08788f1ae8367 (diff)
Check compromised key blacklist in ssh or ssh-add, as well as in the
server (LP: #232391). To override the blacklist check in ssh temporarily, use 'ssh -o UseBlacklistedKeys=yes'; there is no override for the blacklist check in ssh-add.
Diffstat (limited to 'sshconnect2.c')
-rw-r--r--sshconnect2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sshconnect2.c b/sshconnect2.c
index e11cfaa00..97073e401 100644
--- a/sshconnect2.c
+++ b/sshconnect2.c
@@ -1156,6 +1156,8 @@ pubkey_prepare(Authctxt *authctxt)
1156 1156
1157 /* list of keys stored in the filesystem */ 1157 /* list of keys stored in the filesystem */
1158 for (i = 0; i < options.num_identity_files; i++) { 1158 for (i = 0; i < options.num_identity_files; i++) {
1159 if (options.identity_files[i] == NULL)
1160 continue;
1159 key = options.identity_keys[i]; 1161 key = options.identity_keys[i];
1160 if (key && key->type == KEY_RSA1) 1162 if (key && key->type == KEY_RSA1)
1161 continue; 1163 continue;
@@ -1246,7 +1248,7 @@ userauth_pubkey(Authctxt *authctxt)
1246 if (id->key && id->key->type != KEY_RSA1) { 1248 if (id->key && id->key->type != KEY_RSA1) {
1247 debug("Offering public key: %s", id->filename); 1249 debug("Offering public key: %s", id->filename);
1248 sent = send_pubkey_test(authctxt, id); 1250 sent = send_pubkey_test(authctxt, id);
1249 } else if (id->key == NULL) { 1251 } else if (id->key == NULL && id->filename) {
1250 debug("Trying private key: %s", id->filename); 1252 debug("Trying private key: %s", id->filename);
1251 id->key = load_identity_file(id->filename); 1253 id->key = load_identity_file(id->filename);
1252 if (id->key != NULL) { 1254 if (id->key != NULL) {