LineLedControl

Dependencies:   LPD8806 mbed

Fork of LPD8806_Test by Jelmer Tiete

Committer:
sfjmt
Date:
Mon Aug 19 12:14:37 2013 +0000
Revision:
3:b0a1b4b24d3c
LPD8806 control

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sfjmt 3:b0a1b4b24d3c 1 /*****************************************************************************
sfjmt 3:b0a1b4b24d3c 2 * auth.h - PPP Authentication and phase control header file.
sfjmt 3:b0a1b4b24d3c 3 *
sfjmt 3:b0a1b4b24d3c 4 * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc.
sfjmt 3:b0a1b4b24d3c 5 * portions Copyright (c) 1998 Global Election Systems Inc.
sfjmt 3:b0a1b4b24d3c 6 *
sfjmt 3:b0a1b4b24d3c 7 * The authors hereby grant permission to use, copy, modify, distribute,
sfjmt 3:b0a1b4b24d3c 8 * and license this software and its documentation for any purpose, provided
sfjmt 3:b0a1b4b24d3c 9 * that existing copyright notices are retained in all copies and that this
sfjmt 3:b0a1b4b24d3c 10 * notice and the following disclaimer are included verbatim in any
sfjmt 3:b0a1b4b24d3c 11 * distributions. No written agreement, license, or royalty fee is required
sfjmt 3:b0a1b4b24d3c 12 * for any of the authorized uses.
sfjmt 3:b0a1b4b24d3c 13 *
sfjmt 3:b0a1b4b24d3c 14 * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
sfjmt 3:b0a1b4b24d3c 15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
sfjmt 3:b0a1b4b24d3c 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
sfjmt 3:b0a1b4b24d3c 17 * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
sfjmt 3:b0a1b4b24d3c 18 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
sfjmt 3:b0a1b4b24d3c 19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
sfjmt 3:b0a1b4b24d3c 20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
sfjmt 3:b0a1b4b24d3c 21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
sfjmt 3:b0a1b4b24d3c 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
sfjmt 3:b0a1b4b24d3c 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
sfjmt 3:b0a1b4b24d3c 24 *
sfjmt 3:b0a1b4b24d3c 25 ******************************************************************************
sfjmt 3:b0a1b4b24d3c 26 * REVISION HISTORY
sfjmt 3:b0a1b4b24d3c 27 *
sfjmt 3:b0a1b4b24d3c 28 * 03-01-01 Marc Boucher <marc@mbsi.ca>
sfjmt 3:b0a1b4b24d3c 29 * Ported to lwIP.
sfjmt 3:b0a1b4b24d3c 30 * 97-12-04 Guy Lancaster <lancasterg@acm.org>, Global Election Systems Inc.
sfjmt 3:b0a1b4b24d3c 31 * Original derived from BSD pppd.h.
sfjmt 3:b0a1b4b24d3c 32 *****************************************************************************/
sfjmt 3:b0a1b4b24d3c 33 /*
sfjmt 3:b0a1b4b24d3c 34 * pppd.h - PPP daemon global declarations.
sfjmt 3:b0a1b4b24d3c 35 *
sfjmt 3:b0a1b4b24d3c 36 * Copyright (c) 1989 Carnegie Mellon University.
sfjmt 3:b0a1b4b24d3c 37 * All rights reserved.
sfjmt 3:b0a1b4b24d3c 38 *
sfjmt 3:b0a1b4b24d3c 39 * Redistribution and use in source and binary forms are permitted
sfjmt 3:b0a1b4b24d3c 40 * provided that the above copyright notice and this paragraph are
sfjmt 3:b0a1b4b24d3c 41 * duplicated in all such forms and that any documentation,
sfjmt 3:b0a1b4b24d3c 42 * advertising materials, and other materials related to such
sfjmt 3:b0a1b4b24d3c 43 * distribution and use acknowledge that the software was developed
sfjmt 3:b0a1b4b24d3c 44 * by Carnegie Mellon University. The name of the
sfjmt 3:b0a1b4b24d3c 45 * University may not be used to endorse or promote products derived
sfjmt 3:b0a1b4b24d3c 46 * from this software without specific prior written permission.
sfjmt 3:b0a1b4b24d3c 47 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
sfjmt 3:b0a1b4b24d3c 48 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
sfjmt 3:b0a1b4b24d3c 49 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
sfjmt 3:b0a1b4b24d3c 50 *
sfjmt 3:b0a1b4b24d3c 51 */
sfjmt 3:b0a1b4b24d3c 52
sfjmt 3:b0a1b4b24d3c 53 #ifndef AUTH_H
sfjmt 3:b0a1b4b24d3c 54 #define AUTH_H
sfjmt 3:b0a1b4b24d3c 55
sfjmt 3:b0a1b4b24d3c 56 /***********************
sfjmt 3:b0a1b4b24d3c 57 *** PUBLIC FUNCTIONS ***
sfjmt 3:b0a1b4b24d3c 58 ***********************/
sfjmt 3:b0a1b4b24d3c 59
sfjmt 3:b0a1b4b24d3c 60 /* we are starting to use the link */
sfjmt 3:b0a1b4b24d3c 61 void link_required (int);
sfjmt 3:b0a1b4b24d3c 62
sfjmt 3:b0a1b4b24d3c 63 /* we are finished with the link */
sfjmt 3:b0a1b4b24d3c 64 void link_terminated (int);
sfjmt 3:b0a1b4b24d3c 65
sfjmt 3:b0a1b4b24d3c 66 /* the LCP layer has left the Opened state */
sfjmt 3:b0a1b4b24d3c 67 void link_down (int);
sfjmt 3:b0a1b4b24d3c 68
sfjmt 3:b0a1b4b24d3c 69 /* the link is up; authenticate now */
sfjmt 3:b0a1b4b24d3c 70 void link_established (int);
sfjmt 3:b0a1b4b24d3c 71
sfjmt 3:b0a1b4b24d3c 72 /* a network protocol has come up */
sfjmt 3:b0a1b4b24d3c 73 void np_up (int, u16_t);
sfjmt 3:b0a1b4b24d3c 74
sfjmt 3:b0a1b4b24d3c 75 /* a network protocol has gone down */
sfjmt 3:b0a1b4b24d3c 76 void np_down (int, u16_t);
sfjmt 3:b0a1b4b24d3c 77
sfjmt 3:b0a1b4b24d3c 78 /* a network protocol no longer needs link */
sfjmt 3:b0a1b4b24d3c 79 void np_finished (int, u16_t);
sfjmt 3:b0a1b4b24d3c 80
sfjmt 3:b0a1b4b24d3c 81 /* peer failed to authenticate itself */
sfjmt 3:b0a1b4b24d3c 82 void auth_peer_fail (int, u16_t);
sfjmt 3:b0a1b4b24d3c 83
sfjmt 3:b0a1b4b24d3c 84 /* peer successfully authenticated itself */
sfjmt 3:b0a1b4b24d3c 85 void auth_peer_success (int, u16_t, char *, int);
sfjmt 3:b0a1b4b24d3c 86
sfjmt 3:b0a1b4b24d3c 87 /* we failed to authenticate ourselves */
sfjmt 3:b0a1b4b24d3c 88 void auth_withpeer_fail (int, u16_t);
sfjmt 3:b0a1b4b24d3c 89
sfjmt 3:b0a1b4b24d3c 90 /* we successfully authenticated ourselves */
sfjmt 3:b0a1b4b24d3c 91 void auth_withpeer_success (int, u16_t);
sfjmt 3:b0a1b4b24d3c 92
sfjmt 3:b0a1b4b24d3c 93 /* check authentication options supplied */
sfjmt 3:b0a1b4b24d3c 94 void auth_check_options (void);
sfjmt 3:b0a1b4b24d3c 95
sfjmt 3:b0a1b4b24d3c 96 /* check what secrets we have */
sfjmt 3:b0a1b4b24d3c 97 void auth_reset (int);
sfjmt 3:b0a1b4b24d3c 98
sfjmt 3:b0a1b4b24d3c 99 /* Check peer-supplied username/password */
sfjmt 3:b0a1b4b24d3c 100 u_char check_passwd (int, char *, int, char *, int, char **, int *);
sfjmt 3:b0a1b4b24d3c 101
sfjmt 3:b0a1b4b24d3c 102 /* get "secret" for chap */
sfjmt 3:b0a1b4b24d3c 103 int get_secret (int, char *, char *, char *, int *, int);
sfjmt 3:b0a1b4b24d3c 104
sfjmt 3:b0a1b4b24d3c 105 /* check if IP address is authorized */
sfjmt 3:b0a1b4b24d3c 106 int auth_ip_addr (int, u32_t);
sfjmt 3:b0a1b4b24d3c 107
sfjmt 3:b0a1b4b24d3c 108 /* check if IP address is unreasonable */
sfjmt 3:b0a1b4b24d3c 109 int bad_ip_adrs (u32_t);
sfjmt 3:b0a1b4b24d3c 110
sfjmt 3:b0a1b4b24d3c 111 #endif /* AUTH_H */