diff options
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index e81064dae..2a5943e7e 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sshconnect2.c,v 1.179 2010/01/13 01:20:20 dtucker Exp $ */ | 1 | /* $OpenBSD: sshconnect2.c,v 1.180 2010/02/26 20:29:54 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2008 Damien Miller. All rights reserved. | 4 | * Copyright (c) 2008 Damien Miller. All rights reserved. |
@@ -1311,6 +1311,8 @@ pubkey_prepare(Authctxt *authctxt) | |||
1311 | key = options.identity_keys[i]; | 1311 | key = options.identity_keys[i]; |
1312 | if (key && key->type == KEY_RSA1) | 1312 | if (key && key->type == KEY_RSA1) |
1313 | continue; | 1313 | continue; |
1314 | if (key && key->cert && key->cert->type != SSH2_CERT_TYPE_USER) | ||
1315 | continue; | ||
1314 | options.identity_keys[i] = NULL; | 1316 | options.identity_keys[i] = NULL; |
1315 | id = xcalloc(1, sizeof(*id)); | 1317 | id = xcalloc(1, sizeof(*id)); |
1316 | id->key = key; | 1318 | id->key = key; |