mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
- jakob@cvs.openbsd.org 2001/12/18 10:05:15
[auth2.c] log fingerprint on successful public key authentication; ok markus@
This commit is contained in:
parent
5b2aea9494
commit
da9edcabf8
@ -21,6 +21,9 @@
|
|||||||
- jakob@cvs.openbsd.org 2001/12/18 10:04:21
|
- jakob@cvs.openbsd.org 2001/12/18 10:04:21
|
||||||
[auth.h hostfile.c hostfile.h]
|
[auth.h hostfile.c hostfile.h]
|
||||||
remove auth_rsa_read_key, make hostfile_ready_key non static; ok markus@
|
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
|
20011219
|
||||||
- (stevesk) OpenBSD CVS sync X11 localhost display
|
- (stevesk) OpenBSD CVS sync X11 localhost display
|
||||||
@ -7049,4 +7052,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1698 2001/12/21 01:47:09 djm Exp $
|
$Id: ChangeLog,v 1.1699 2001/12/21 01:48:54 djm Exp $
|
||||||
|
7
auth2.c
7
auth2.c
@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#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>
|
#include <openssl/evp.h>
|
||||||
|
|
||||||
@ -651,6 +651,7 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file)
|
|||||||
u_long linenum = 0;
|
u_long linenum = 0;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
Key *found;
|
Key *found;
|
||||||
|
char *fp;
|
||||||
|
|
||||||
if (pw == NULL)
|
if (pw == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
@ -718,6 +719,10 @@ user_key_allowed2(struct passwd *pw, Key *key, char *file)
|
|||||||
found_key = 1;
|
found_key = 1;
|
||||||
debug("matching key found: file %s, line %lu",
|
debug("matching key found: file %s, line %lu",
|
||||||
file, linenum);
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user