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