systems.h revision 267654
1265880Sdes/*-
2265880Sdes * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
3265880Sdes *          based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
4265880Sdes *                           Internet Initiative Japan, Inc (IIJ)
543092Smarkm * All rights reserved.
651462Smarkm *
751462Smarkm * Redistribution and use in source and binary forms, with or without
851462Smarkm * modification, are permitted provided that the following conditions
951462Smarkm * are met:
1051462Smarkm * 1. Redistributions of source code must retain the above copyright
1151462Smarkm *    notice, this list of conditions and the following disclaimer.
1251462Smarkm * 2. Redistributions in binary form must reproduce the above copyright
1351462Smarkm *    notice, this list of conditions and the following disclaimer in the
1451462Smarkm *    documentation and/or other materials provided with the distribution.
1551462Smarkm *
1651462Smarkm * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1751462Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1851462Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1951462Smarkm * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2051462Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2151462Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2251462Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2351462Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2451462Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2551462Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2642981Sbrandon * SUCH DAMAGE.
2742981Sbrandon *
2883551Sdillon * $FreeBSD: releng/9.3/usr.sbin/ppp/systems.h 85991 2001-11-03 21:45:32Z brian $
2983551Sdillon */
3042981Sbrandon
3170419Speterstruct prompt;
32265880Sdesstruct datalink;
33265880Sdesstruct bundle;
3417141Sjkhstruct cmdargs;
3591754Smarkm
36265880Sdesextern int system_Select(struct bundle *bundle, const char *, const char *,
3751462Smarkm                        struct prompt *, struct datalink *);
381984Scsgrextern const char *system_IsValid(const char *, struct prompt *, int);
39265880Sdesextern FILE *OpenSecret(const char *);
40265880Sdesextern void CloseSecret(FILE *);
41265880Sdesextern int AllowUsers(struct cmdargs const *);
42265880Sdesextern int AllowModes(struct cmdargs const *);
43265880Sdesextern const char *InterpretArg(const char *, char *);
4464918Sgreen