diff options
author | 2001-12-18 10:05:15 +0000 | |
---|---|---|
committer | 2001-12-18 10:05:15 +0000 | |
commit | 397d78a934fc85d21f3949d186ffcd6317047a40 (patch) | |
tree | 0fc718a244d73e1e7d035e1389724324fc46903d | |
parent | remove auth_rsa_read_key, make hostfile_ready_key non static; ok markus@ (diff) | |
download | wireguard-openbsd-397d78a934fc85d21f3949d186ffcd6317047a40.tar.xz wireguard-openbsd-397d78a934fc85d21f3949d186ffcd6317047a40.zip |
log fingerprint on successful public key authentication; ok markus@
-rw-r--r-- | usr.bin/ssh/auth2.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/ssh/auth2.c b/usr.bin/ssh/auth2.c index 59acf87c445..2b43af60f53 100644 --- a/usr.bin/ssh/auth2.c +++ b/usr.bin/ssh/auth2.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth2.c,v 1.75 2001/12/09 18:45:56 markus Exp $"); +RCSID("$OpenBSD: auth2.c,v 1.76 2001/12/18 10:05:15 jakob Exp $"); #include <openssl/evp.h> @@ -596,6 +596,7 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file) u_long linenum = 0; struct stat st; Key *found; + char *fp; if (pw == NULL) return 0; @@ -663,6 +664,10 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file) found_key = 1; debug("matching key found: file %s, line %lu", file, linenum); + fp = key_fingerprint(found, SSH_FP_MD5, SSH_FP_HEX); + verbose("Found matching %s key: %s", + key_type(found), fp); + xfree(fp); break; } } |