RTEMS CPU Kit with SuperCore  4.11.3
Macros | Enumerations | Functions | Variables
auth.c File Reference
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
#include <pwd.h>
#include <grp.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "pppd.h"
#include "fsm.h"
#include "lcp.h"
#include "ipcp.h"
#include "upap.h"
#include "chap.h"
#include "pathnames.h"
Include dependency graph for auth.c:

Macros

#define RCSID   "$Id$"
 
#define PAP_WITHPEER   1
 
#define PAP_PEER   2
 
#define CHAP_WITHPEER   4
 
#define CHAP_PEER   8
 

Enumerations

enum  script_state { s_down, s_up }
 

Functions

char * crypt (const char *, const char *)
 
void link_required (int unit)
 
void link_terminated (int unit)
 
void link_down (int unit)
 
void link_established (int unit)
 
void start_networks (void)
 
void auth_peer_fail (int unit, int protocol)
 
void auth_peer_success (int unit, int protocol, char *name, int namelen)
 
void auth_withpeer_fail (int unit, int protocol)
 
void auth_withpeer_success (int unit, int protocol)
 
void np_up (int unit, int proto)
 
void np_down (int unit, int proto)
 
void np_finished (int unit, int proto)
 
int auth_check_options (void)
 
void auth_reset (int unit)
 
int check_passwd (int unit, char *auser, int userlen, char *apasswd, int passwdlen, char **msg)
 
int get_secret (int unit, char *client, char *server, unsigned char *secret, int *secret_len, int am_server)
 
int auth_ip_addr (int unit, uint32_t addr)
 
int bad_ip_adrs (uint32_t addr)
 

Variables

char peer_authname [MAXNAMELEN]
 
void(* auth_linkup_hook )(void) = NULL
 
void(* auth_linkdown_hook )(void) = NULL
 
int(* idle_time_hook )(struct ppp_idle *) = NULL
 
int(* pap_check_hook )(void) = NULL
 
int(* pap_auth_hook )(char *user, char *passwd) = NULL
 
void(* pap_logout_hook )(void) = NULL
 
int(* pap_passwd_hook )(char *user, char *passwd) = NULL
 
bool uselogin = 0
 
bool cryptpap = 0
 
bool refuse_pap = 0
 
bool refuse_chap = 0
 
bool usehostname = 0
 
bool auth_required = 0
 
bool allow_any_ip = 0
 
bool explicit_remote = 0
 
char remote_name [MAXNAMELEN]
 
option_t auth_options []