ESAPI-C 1.0
The OWASP Enterprise Security API for C
|
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <gcrypt.h>
#include "authenticator.h"
#include "base64.h"
#include "esapi.h"
Go to the source code of this file.
Functions | |
char * | esapi_hash_password (struct esapi_ctx *es_ctx, const char *real_pw) |
int | esapi_login (const char *user_name, const char *pw) |
int | esapi_verify_password_strength (char *pw, int min, int max, int char_set_cnt) |
int | esapi_add_user (user *u) |
int | esapi_remove_user (user *u) |
int esapi_add_user | ( | user * | u | ) |
Definition at line 106 of file authenticator.c.
char* esapi_hash_password | ( | struct esapi_ctx * | es_ctx, |
const char * | real_pw | ||
) |
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 * | user_name, |
const char * | pw | ||
) |
Definition at line 57 of file authenticator.c.
int esapi_remove_user | ( | user * | u | ) |
Definition at line 114 of file authenticator.c.
int esapi_verify_password_strength | ( | char * | pw, |
int | min, | ||
int | max, | ||
int | char_set_cnt | ||
) |
Definition at line 68 of file authenticator.c.
References ES_PW_NOT_ENOUGH_CHAR_CLS, ES_PW_TOO_LONG, and ES_PW_TOO_SHORT.