summaryrefslogtreecommitdiff
path: root/auth2.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth2.c')
-rw-r--r--auth2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/auth2.c b/auth2.c
index 29bbdf4fb..7a52c3b43 100644
--- a/auth2.c
+++ b/auth2.c
@@ -23,7 +23,7 @@
23 */ 23 */
24 24
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2.c,v 1.75 2001/12/09 18:45:56 markus Exp $"); 26RCSID("$OpenBSD: auth2.c,v 1.76 2001/12/18 10:05:15 jakob Exp $");
27 27
28#include <openssl/evp.h> 28#include <openssl/evp.h>
29 29
@@ -651,6 +651,7 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file)
651 u_long linenum = 0; 651 u_long linenum = 0;
652 struct stat st; 652 struct stat st;
653 Key *found; 653 Key *found;
654 char *fp;
654 655
655 if (pw == NULL) 656 if (pw == NULL)
656 return 0; 657 return 0;
@@ -718,6 +719,10 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file)
718 found_key = 1; 719 found_key = 1;
719 debug("matching key found: file %s, line %lu", 720 debug("matching key found: file %s, line %lu",
720 file, linenum); 721 file, linenum);
722 fp = key_fingerprint(found, SSH_FP_MD5, SSH_FP_HEX);
723 verbose("Found matching %s key: %s",
724 key_type(found), fp);
725 xfree(fp);
721 break; 726 break;
722 } 727 }
723 } 728 }