ESAPI-C 1.0
The OWASP Enterprise Security API for C

authenticator.h File Reference

#include <stdio.h>
#include "user.h"
#include "esapi.h"

Go to the source code of this file.

Defines

#define _AUTHENTICATOR_H
#define ES_AUTH_NO_USER   -1
#define ES_AUTH_WRONG_PW   -2
#define ES_AUTH_EXPIRED   -3
#define ES_AUTH_LOCKED   -4
#define ES_AUTH_DISABLED   -5
#define ES_PW_TOO_LONG   -1
#define ES_PW_TOO_SHORT   -2
#define ES_PW_NOT_ENOUGH_CHAR_CLS   -3

Functions

char * esapi_hash_password (struct esapi_ctx *, const char *)
int esapi_login (const char *, const char *)
int esapi_verify_password_strength (char *, int, int, int)
int esapi_add_user (user *)
int esapi_remove_user (user *)

Define Documentation

#define _AUTHENTICATOR_H

Definition at line 6 of file authenticator.h.

#define ES_AUTH_DISABLED   -5

Definition at line 12 of file authenticator.h.

#define ES_AUTH_EXPIRED   -3

Definition at line 10 of file authenticator.h.

#define ES_AUTH_LOCKED   -4

Definition at line 11 of file authenticator.h.

#define ES_AUTH_NO_USER   -1

Definition at line 8 of file authenticator.h.

#define ES_AUTH_WRONG_PW   -2

Definition at line 9 of file authenticator.h.

#define ES_PW_NOT_ENOUGH_CHAR_CLS   -3

Definition at line 16 of file authenticator.h.

Referenced by esapi_verify_password_strength().

#define ES_PW_TOO_LONG   -1

Definition at line 14 of file authenticator.h.

Referenced by esapi_verify_password_strength().

#define ES_PW_TOO_SHORT   -2

Definition at line 15 of file authenticator.h.

Referenced by esapi_verify_password_strength().


Function Documentation

int esapi_add_user ( user )

Definition at line 106 of file authenticator.c.

char* esapi_hash_password ( struct esapi_ctx ,
const char *   
)
int esapi_login ( const char *  ,
const char *   
)

Definition at line 57 of file authenticator.c.

int esapi_remove_user ( user )

Definition at line 114 of file authenticator.c.

int esapi_verify_password_strength ( char *  ,
int  ,
int  ,
int   
)

Definition at line 68 of file authenticator.c.

References ES_PW_NOT_ENOUGH_CHAR_CLS, ES_PW_TOO_LONG, and ES_PW_TOO_SHORT.

 All Data Structures Files Functions Variables Typedefs Defines