1 /*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 *
6 * As far as I am concerned, the code I have written for this software
7 * can be used freely for any purpose. Any derived versions of this
8 * software must be clearly marked as such, and if the derived work is
9 * incompatible with the protocol description in the RFC file, it must be
10 * called by a name other than "ssh" or "Secure Shell".
11 */
12 /*
13 * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
14 * Use is subject to license terms.
15 */
16
17 /* $OpenBSD: sshlogin.h,v 1.4 2002/08/29 15:57:25 stevesk Exp $ */
18
19 #ifndef _SSHLOGIN_H
20 #define _SSHLOGIN_H
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 void
27 record_login(pid_t pid, const char *ttyname, const char *progname,
28 const char *user);
29 void
30 record_logout(pid_t pid, const char *ttyname, const char *progname,
31 const char *user);
32
33 u_long
34 get_last_login_time(uid_t uid, const char *logname, char *buf, u_int bufsize);
35
36 #ifdef __cplusplus
37 }
38 #endif
39
40 #endif /* _SSHLOGIN_H */