Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

auth.c File Reference

#include "model.h"
#include "md5.h"

Functions

const aw_model_userhandle_t * aw_model_authenticate (aw_model_t *model, const byte_t *loginid, const byte_t *password)
 Return non-zero if authenticated.

const aw_model_userhandle_t * aw_model_CHAP (aw_model_t *model, const byte_t *loginid, u_int32_t prefix, const byte_t *response)
 Return non-zero if authenticated using CHAP.


Function Documentation

const aw_model_userhandle_t* aw_model_authenticate (  aw_model_t *  model,
const byte_t *  userid,
const byte_t *  password
) 
 

Return non-zero if authenticated.

aw_model_authenticate

Parameters:
model Model object
userid User id
password Clear text password
Returns:
Non-NULL if authenticated

const aw_model_userhandle_t* aw_model_CHAP (  aw_model_t *  model,
const byte_t *  userid,
u_int32_t  prefix,
const byte_t *  response
) 
 

Return non-zero if authenticated using CHAP.

aw_model_CHAP

Parameters:
model Model object
userid User id
prefix Integer prefix used in CHAP
response Should be md5_hex(prefix concatentated with md5_hex(password))
Returns:
Non-NULL if authenticated

Aware 0.11.1 Copyright (C) 1998-2005 Russell Leighton (russ@elegant-software.com)