xref: /onnv-gate/usr/src/cmd/ssh/include/sshlogin.h (revision 9845:0d705da26956)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * Author: Tatu Ylonen <ylo@cs.hut.fi>
30Sstevel@tonic-gate  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
40Sstevel@tonic-gate  *                    All rights reserved
50Sstevel@tonic-gate  *
60Sstevel@tonic-gate  * As far as I am concerned, the code I have written for this software
70Sstevel@tonic-gate  * can be used freely for any purpose.  Any derived versions of this
80Sstevel@tonic-gate  * software must be clearly marked as such, and if the derived work is
90Sstevel@tonic-gate  * incompatible with the protocol description in the RFC file, it must be
100Sstevel@tonic-gate  * called by a name other than "ssh" or "Secure Shell".
110Sstevel@tonic-gate  */
120Sstevel@tonic-gate /*
13*9845SJan.Pechanec@Sun.COM  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
140Sstevel@tonic-gate  * Use is subject to license terms.
150Sstevel@tonic-gate  */
160Sstevel@tonic-gate 
17*9845SJan.Pechanec@Sun.COM /*	$OpenBSD: sshlogin.h,v 1.4 2002/08/29 15:57:25 stevesk Exp $	*/
18*9845SJan.Pechanec@Sun.COM 
19*9845SJan.Pechanec@Sun.COM #ifndef	_SSHLOGIN_H
20*9845SJan.Pechanec@Sun.COM #define	_SSHLOGIN_H
21*9845SJan.Pechanec@Sun.COM 
22*9845SJan.Pechanec@Sun.COM #ifdef __cplusplus
23*9845SJan.Pechanec@Sun.COM extern "C" {
24*9845SJan.Pechanec@Sun.COM #endif
25*9845SJan.Pechanec@Sun.COM 
260Sstevel@tonic-gate void
270Sstevel@tonic-gate record_login(pid_t pid, const char *ttyname, const char *progname,
280Sstevel@tonic-gate 		const char *user);
290Sstevel@tonic-gate void
300Sstevel@tonic-gate record_logout(pid_t pid, const char *ttyname, const char *progname,
310Sstevel@tonic-gate 		const char *user);
320Sstevel@tonic-gate 
330Sstevel@tonic-gate u_long
340Sstevel@tonic-gate get_last_login_time(uid_t uid, const char *logname, char *buf, u_int bufsize);
350Sstevel@tonic-gate 
360Sstevel@tonic-gate #ifdef __cplusplus
370Sstevel@tonic-gate }
380Sstevel@tonic-gate #endif
390Sstevel@tonic-gate 
400Sstevel@tonic-gate #endif /* _SSHLOGIN_H */
41