=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth-options.h,v retrieving revision 1.5.2.6 retrieving revision 1.6 diff -u -r1.5.2.6 -r1.6 --- src/usr.bin/ssh/auth-options.h 2002/03/08 17:04:41 1.5.2.6 +++ src/usr.bin/ssh/auth-options.h 2000/12/19 23:17:55 1.6 @@ -1,5 +1,3 @@ -/* $OpenBSD: auth-options.h,v 1.5.2.6 2002/03/08 17:04:41 brad Exp $ */ - /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -13,15 +11,10 @@ * called by a name other than "ssh" or "Secure Shell". */ +/* $OpenBSD: auth-options.h,v 1.6 2000/12/19 23:17:55 markus Exp $ */ + #ifndef AUTH_OPTIONS_H #define AUTH_OPTIONS_H - -/* Linked list of custom environment strings */ -struct envstring { - struct envstring *next; - char *s; -}; - /* Flags that may be set in authorized_keys options. */ extern int no_port_forwarding_flag; extern int no_agent_forwarding_flag; @@ -30,7 +23,9 @@ extern char *forced_command; extern struct envstring *custom_environment; -int auth_parse_options(struct passwd *, char *, char *, u_long); +/* return 1 if access is granted, 0 if not. side effect: sets key option flags */ +int auth_parse_options(struct passwd *pw, char *options, u_long linenum); +/* reset options flags */ void auth_clear_options(void); #endif