summaryrefslogtreecommitdiff
path: root/auth-rsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-rsa.c')
-rw-r--r--auth-rsa.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/auth-rsa.c b/auth-rsa.c
index 5d7bdcbfc..4cf2163c7 100644
--- a/auth-rsa.c
+++ b/auth-rsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth-rsa.c,v 1.88 2014/07/15 15:54:14 millert Exp $ */ 1/* $OpenBSD: auth-rsa.c,v 1.90 2015/01/28 22:36:00 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -16,6 +16,8 @@
16 16
17#include "includes.h" 17#include "includes.h"
18 18
19#ifdef WITH_SSH1
20
19#include <sys/types.h> 21#include <sys/types.h>
20#include <sys/stat.h> 22#include <sys/stat.h>
21 23
@@ -238,7 +240,9 @@ rsa_key_allowed_in_file(struct passwd *pw, char *file,
238 "actual %d vs. announced %d.", 240 "actual %d vs. announced %d.",
239 file, linenum, BN_num_bits(key->rsa->n), bits); 241 file, linenum, BN_num_bits(key->rsa->n), bits);
240 242
241 fp = key_fingerprint(key, SSH_FP_MD5, SSH_FP_HEX); 243 if ((fp = sshkey_fingerprint(key, options.fingerprint_hash,
244 SSH_FP_DEFAULT)) == NULL)
245 continue;
242 debug("matching key found: file %s, line %lu %s %s", 246 debug("matching key found: file %s, line %lu %s %s",
243 file, linenum, key_type(key), fp); 247 file, linenum, key_type(key), fp);
244 free(fp); 248 free(fp);
@@ -343,3 +347,5 @@ auth_rsa(Authctxt *authctxt, BIGNUM *client_n)
343 packet_send_debug("RSA authentication accepted."); 347 packet_send_debug("RSA authentication accepted.");
344 return (1); 348 return (1);
345} 349}
350
351#endif /* WITH_SSH1 */