Web server based weather station using Sparkfun Weather Meters.

Dependencies:   FatFileSystem mbed WeatherMeters SDFileSystem

Committer:
AdamGreen
Date:
Sat Feb 25 03:28:05 2012 +0000
Revision:
1:c7958aa34fa1
Parent:
0:616601bde9fb
Use published libraries where possible.

Who changed what in which revision?

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