Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
6d43b701
Commit
6d43b701
authored
Mar 15, 2002
by
Mac Newbold
Browse files
Add one more line that ssh2 uses.
parent
e3bf0d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
security/genlastlog.c
View file @
6d43b701
...
...
@@ -248,14 +248,16 @@ doit(gzFile *infp)
* FreeBSD: "Accepted rsa for USER"
* Linux 6.2: "log: RSA authentication for USER"
* Linux 7.1: "session opened for user USER"
* (several): "Accepted publickey for USER"
* (several): "Accepted password for USER"
* (several ssh2): "Accepted publickey for USER"
* (several ssh2): "Accepted password for USER"
* (several ssh2): "Accepted keyboard-interactive for USER"
*/
#define L1 "Accepted rsa for "
#define L2 "session opened for user "
#define L3 "log: RSA authentication for "
#define L4 "Accepted publickey for "
#define L5 "Accepted password for "
#define L6 "Accepted keyboard-interactive for "
/* Skip to end of program[pid]: and trailing space */
bp
=
strchr
(
bp
,
':'
);
...
...
@@ -281,6 +283,10 @@ doit(gzFile *infp)
/*fprintf(stdout,"Hit L5: ");*/
bp
+=
strlen
(
L5
);
}
else
if
(
strncmp
(
bp
,
L6
,
strlen
(
L6
))
==
0
)
{
/*fprintf(stdout,"Hit L6: ");*/
bp
+=
strlen
(
L6
);
}
else
{
continue
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment