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