1195972f6Sopenharmony_ci/*
2195972f6Sopenharmony_ci * ecp.h - Definitions for PPP Encryption Control Protocol.
3195972f6Sopenharmony_ci *
4195972f6Sopenharmony_ci * Copyright (c) 2002 Google, Inc.
5195972f6Sopenharmony_ci * All rights reserved.
6195972f6Sopenharmony_ci *
7195972f6Sopenharmony_ci * Redistribution and use in source and binary forms, with or without
8195972f6Sopenharmony_ci * modification, are permitted provided that the following conditions
9195972f6Sopenharmony_ci * are met:
10195972f6Sopenharmony_ci *
11195972f6Sopenharmony_ci * 1. Redistributions of source code must retain the above copyright
12195972f6Sopenharmony_ci *    notice, this list of conditions and the following disclaimer.
13195972f6Sopenharmony_ci *
14195972f6Sopenharmony_ci * 2. Redistributions in binary form must reproduce the above copyright
15195972f6Sopenharmony_ci *    notice, this list of conditions and the following disclaimer in
16195972f6Sopenharmony_ci *    the documentation and/or other materials provided with the
17195972f6Sopenharmony_ci *    distribution.
18195972f6Sopenharmony_ci *
19195972f6Sopenharmony_ci * 3. The name(s) of the authors of this software must not be used to
20195972f6Sopenharmony_ci *    endorse or promote products derived from this software without
21195972f6Sopenharmony_ci *    prior written permission.
22195972f6Sopenharmony_ci *
23195972f6Sopenharmony_ci * THE AUTHORS OF THIS SOFTWARE DISCLAIM ALL WARRANTIES WITH REGARD TO
24195972f6Sopenharmony_ci * THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
25195972f6Sopenharmony_ci * AND FITNESS, IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
26195972f6Sopenharmony_ci * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
27195972f6Sopenharmony_ci * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
28195972f6Sopenharmony_ci * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
29195972f6Sopenharmony_ci * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
30195972f6Sopenharmony_ci *
31195972f6Sopenharmony_ci * $Id: ecp.h,v 1.2 2003/01/10 07:12:36 fcusack Exp $
32195972f6Sopenharmony_ci */
33195972f6Sopenharmony_ci
34195972f6Sopenharmony_ci#include "netif/ppp/ppp_opts.h"
35195972f6Sopenharmony_ci#if PPP_SUPPORT && ECP_SUPPORT  /* don't build if not configured for use in lwipopts.h */
36195972f6Sopenharmony_ci
37195972f6Sopenharmony_ci#ifndef ECP_H
38195972f6Sopenharmony_ci#define ECP_H
39195972f6Sopenharmony_ci
40195972f6Sopenharmony_ci#ifdef __cplusplus
41195972f6Sopenharmony_ciextern "C" {
42195972f6Sopenharmony_ci#endif
43195972f6Sopenharmony_ci
44195972f6Sopenharmony_citypedef struct ecp_options {
45195972f6Sopenharmony_ci    bool required;		/* Is ECP required? */
46195972f6Sopenharmony_ci    unsigned enctype;		/* Encryption type */
47195972f6Sopenharmony_ci} ecp_options;
48195972f6Sopenharmony_ci
49195972f6Sopenharmony_ciextern fsm ecp_fsm[];
50195972f6Sopenharmony_ciextern ecp_options ecp_wantoptions[];
51195972f6Sopenharmony_ciextern ecp_options ecp_gotoptions[];
52195972f6Sopenharmony_ciextern ecp_options ecp_allowoptions[];
53195972f6Sopenharmony_ciextern ecp_options ecp_hisoptions[];
54195972f6Sopenharmony_ci
55195972f6Sopenharmony_ciextern const struct protent ecp_protent;
56195972f6Sopenharmony_ci
57195972f6Sopenharmony_ci#ifdef __cplusplus
58195972f6Sopenharmony_ci}
59195972f6Sopenharmony_ci#endif
60195972f6Sopenharmony_ci
61195972f6Sopenharmony_ci#endif /* ECP_H */
62195972f6Sopenharmony_ci#endif /* PPP_SUPPORT && ECP_SUPPORT */
63