]> andersk Git - openssh.git/commitdiff
- jakob@cvs.openbsd.org 2001/12/18 10:05:15
authordjm <djm>
Fri, 21 Dec 2001 01:48:54 +0000 (01:48 +0000)
committerdjm <djm>
Fri, 21 Dec 2001 01:48:54 +0000 (01:48 +0000)
     [auth2.c]
     log fingerprint on successful public key authentication; ok markus@

ChangeLog
auth2.c

index e7f54212151437dff198821d16afb60855a6f5cd..500b064d9fc78369b6f8af5d4bddeacdc8ff8c6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,9 @@
    - jakob@cvs.openbsd.org 2001/12/18 10:04:21
      [auth.h hostfile.c hostfile.h]
      remove auth_rsa_read_key, make hostfile_ready_key non static; ok markus@
+   - jakob@cvs.openbsd.org 2001/12/18 10:05:15
+     [auth2.c]
+     log fingerprint on successful public key authentication; ok markus@
 
 20011219
  - (stevesk) OpenBSD CVS sync X11 localhost display
diff --git a/auth2.c b/auth2.c
index 29bbdf4fb24382918703bca11a96625cd194086c..7a52c3b43d86cb1478ded321f22e4f72be4f6f35 100644 (file)
--- a/auth2.c
+++ b/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>
 
@@ -651,6 +651,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;
@@ -718,6 +719,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;
                }
        }
This page took 0.079604 seconds and 5 git commands to generate.