Alvaro Cassinelli / Mbed 2 deprecated laserUI

Dependencies:   mbed

Fork of skinGames_forktest by Alvaro Cassinelli

Committer:
mbedalvaro
Date:
Wed Mar 28 14:40:01 2012 +0000
Revision:
0:345b3bc7a0ea
This version (using rigid frame, base and child classes, etc) works, but the blob is strangely smaller. Need to check this.

Who changed what in which revision?

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