summaryrefslogtreecommitdiff
path: root/sshlogin.h
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-18 19:13:33 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-18 19:13:33 +0000
commitd95c09cc83ec07b42feb07c4ff71d23720b37e8e (patch)
tree73b15e75f83356fa59b0d17ffd88409d8f4fc5de /sshlogin.h
parentc32a5b1a1568258481df6316dc008fc7cd3825fd (diff)
- (bal) Markus' blessing to rename login.[ch] -> sshlogin.[ch] and
pty.[ch] -> sshpty.[ch]
Diffstat (limited to 'sshlogin.h')
-rw-r--r--sshlogin.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/sshlogin.h b/sshlogin.h
new file mode 100644
index 000000000..4630eedf4
--- /dev/null
+++ b/sshlogin.h
@@ -0,0 +1,40 @@
1/* $OpenBSD: login.h,v 1.2 2001/01/29 01:58:16 niklas Exp $ */
2
3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
5 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
6 * All rights reserved
7 *
8 * As far as I am concerned, the code I have written for this software
9 * can be used freely for any purpose. Any derived versions of this
10 * software must be clearly marked as such, and if the derived work is
11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell".
13 */
14#ifndef LOGIN_H
15#define LOGIN_H
16
17/*
18 * Returns the time when the user last logged in. Returns 0 if the
19 * information is not available. This must be called before record_login.
20 * The host from which the user logged in is stored in buf.
21 */
22u_long
23get_last_login_time(uid_t uid, const char *logname,
24 char *buf, u_int bufsize);
25
26/*
27 * Records that the user has logged in. This does many things normally done
28 * by login(1).
29 */
30void
31record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid,
32 const char *host, struct sockaddr *addr);
33
34/*
35 * Records that the user has logged out. This does many thigs normally done
36 * by login(1) or init.
37 */
38void record_logout(pid_t pid, const char *ttyname);
39
40#endif