xref: /titanic_44/usr/src/cmd/ssh/include/sshlogin.h (revision b9aa66a73c9016cf5c71fe80efe90ce9f2ca5c73)
17c478bd9Sstevel@tonic-gate /*
27c478bd9Sstevel@tonic-gate  * Author: Tatu Ylonen <ylo@cs.hut.fi>
37c478bd9Sstevel@tonic-gate  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
47c478bd9Sstevel@tonic-gate  *                    All rights reserved
57c478bd9Sstevel@tonic-gate  *
67c478bd9Sstevel@tonic-gate  * As far as I am concerned, the code I have written for this software
77c478bd9Sstevel@tonic-gate  * can be used freely for any purpose.  Any derived versions of this
87c478bd9Sstevel@tonic-gate  * software must be clearly marked as such, and if the derived work is
97c478bd9Sstevel@tonic-gate  * incompatible with the protocol description in the RFC file, it must be
107c478bd9Sstevel@tonic-gate  * called by a name other than "ssh" or "Secure Shell".
117c478bd9Sstevel@tonic-gate  */
127c478bd9Sstevel@tonic-gate /*
13*b9aa66a7SJan Pechanec  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
147c478bd9Sstevel@tonic-gate  * Use is subject to license terms.
157c478bd9Sstevel@tonic-gate  */
167c478bd9Sstevel@tonic-gate 
17*b9aa66a7SJan Pechanec /*	$OpenBSD: sshlogin.h,v 1.4 2002/08/29 15:57:25 stevesk Exp $	*/
18*b9aa66a7SJan Pechanec 
19*b9aa66a7SJan Pechanec #ifndef	_SSHLOGIN_H
20*b9aa66a7SJan Pechanec #define	_SSHLOGIN_H
21*b9aa66a7SJan Pechanec 
22*b9aa66a7SJan Pechanec #ifdef __cplusplus
23*b9aa66a7SJan Pechanec extern "C" {
24*b9aa66a7SJan Pechanec #endif
25*b9aa66a7SJan Pechanec 
267c478bd9Sstevel@tonic-gate void
277c478bd9Sstevel@tonic-gate record_login(pid_t pid, const char *ttyname, const char *progname,
287c478bd9Sstevel@tonic-gate 		const char *user);
297c478bd9Sstevel@tonic-gate void
307c478bd9Sstevel@tonic-gate record_logout(pid_t pid, const char *ttyname, const char *progname,
317c478bd9Sstevel@tonic-gate 		const char *user);
327c478bd9Sstevel@tonic-gate 
337c478bd9Sstevel@tonic-gate u_long
347c478bd9Sstevel@tonic-gate get_last_login_time(uid_t uid, const char *logname, char *buf, u_int bufsize);
357c478bd9Sstevel@tonic-gate 
367c478bd9Sstevel@tonic-gate #ifdef __cplusplus
377c478bd9Sstevel@tonic-gate }
387c478bd9Sstevel@tonic-gate #endif
397c478bd9Sstevel@tonic-gate 
407c478bd9Sstevel@tonic-gate #endif /* _SSHLOGIN_H */
41