Hi. This is the feed program for Cosm. (The previous name of the services is Pachube.)

Dependencies:   mbed ThermistorPack Pachube ConfigFile EthernetNetIf TextLCD HTTPClient_ToBeRemoved FatFileSystem SDFileSystem

Committer:
shintamainjp
Date:
Mon Aug 06 12:37:59 2012 +0000
Revision:
0:521ba375aa0f
Pachube renamed to Cosm.

Who changed what in which revision?

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