mbeduino + Weatherduino Weather Stations post test

Dependencies:   mbed

Committer:
okini3939
Date:
Tue Oct 26 17:19:28 2010 +0000
Revision:
0:10bcaa7c2253

        

Who changed what in which revision?

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