ESAPI-C 1.0
The OWASP Enterprise Security API for C
|
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 _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().
int esapi_add_user | ( | user * | ) |
Definition at line 106 of file authenticator.c.
char* esapi_hash_password | ( | struct esapi_ctx * | , |
const char * | |||
) |
Definition at line 13 of file authenticator.c.
References base64_encode_alloc(), esapi_ctx::hash_algo, and esapi_ctx::master_salt.
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.