systems.h revision 85991
1224110Sjchandra/*- 2224110Sjchandra * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 3224110Sjchandra * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 4224110Sjchandra * Internet Initiative Japan, Inc (IIJ) 5224110Sjchandra * All rights reserved. 6224110Sjchandra * 7224110Sjchandra * Redistribution and use in source and binary forms, with or without 8224110Sjchandra * modification, are permitted provided that the following conditions 9224110Sjchandra * are met: 10224110Sjchandra * 1. Redistributions of source code must retain the above copyright 11224110Sjchandra * notice, this list of conditions and the following disclaimer. 12224110Sjchandra * 2. Redistributions in binary form must reproduce the above copyright 13224110Sjchandra * notice, this list of conditions and the following disclaimer in the 14224110Sjchandra * documentation and/or other materials provided with the distribution. 15224110Sjchandra * 16224110Sjchandra * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 17224110Sjchandra * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18224110Sjchandra * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19224110Sjchandra * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 20224110Sjchandra * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21224110Sjchandra * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22224110Sjchandra * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23224110Sjchandra * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24224110Sjchandra * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25224110Sjchandra * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26224110Sjchandra * SUCH DAMAGE. 27224110Sjchandra * 28225394Sjchandra * $FreeBSD: head/usr.sbin/ppp/systems.h 85991 2001-11-03 21:45:32Z brian $ 29224110Sjchandra */ 30225394Sjchandra 31224110Sjchandrastruct prompt; 32224110Sjchandrastruct datalink; 33224110Sjchandrastruct bundle; 34227783Sjchandrastruct cmdargs; 35227783Sjchandra 36224110Sjchandraextern int system_Select(struct bundle *bundle, const char *, const char *, 37233533Sjchandra struct prompt *, struct datalink *); 38224110Sjchandraextern const char *system_IsValid(const char *, struct prompt *, int); 39233533Sjchandraextern FILE *OpenSecret(const char *); 40233533Sjchandraextern void CloseSecret(FILE *); 41233533Sjchandraextern int AllowUsers(struct cmdargs const *); 42233533Sjchandraextern int AllowModes(struct cmdargs const *); 43224110Sjchandraextern const char *InterpretArg(const char *, char *); 44233563Sjchandra