Apache2
lua_passwd.h File Reference
#include "apr.h"
#include "apr_lib.h"
#include "apr_strings.h"
#include "apr_errno.h"
#include "apr_file_io.h"
#include "apr_general.h"
#include "apr_version.h"
#include "apu_version.h"
Include dependency graph for lua_passwd.h:

Go to the source code of this file.

Data Structures

struct  passwd_ctx
 

Macros

#define MAX_PASSWD_LEN   256
 
#define ALG_APMD5   0
 
#define ALG_APSHA   1
 
#define ALG_BCRYPT   2
 
#define ALG_CRYPT   3
 
#define BCRYPT_DEFAULT_COST   5
 
#define ERR_FILEPERM   1
 
#define ERR_SYNTAX   2
 
#define ERR_PWMISMATCH   3
 
#define ERR_INTERRUPTED   4
 
#define ERR_OVERFLOW   5
 
#define ERR_BADUSER   6
 
#define ERR_INVALID   7
 
#define ERR_RANDOM   8
 
#define ERR_GENERAL   9
 
#define ERR_ALG_NOT_SUPP   10
 
#define CRYPT_ALGO_SUPPORTED   1
 
#define PLAIN_ALGO_SUPPORTED   0
 
#define BCRYPT_ALGO_SUPPORTED   0
 

Typedefs

typedef struct passwd_ctx passwd_ctx
 

Functions

int mk_password_hash (passwd_ctx *ctx)
 

Macro Definition Documentation

◆ ALG_APMD5

#define ALG_APMD5   0

◆ ALG_APSHA

#define ALG_APSHA   1

◆ ALG_BCRYPT

#define ALG_BCRYPT   2

◆ ALG_CRYPT

#define ALG_CRYPT   3

◆ BCRYPT_ALGO_SUPPORTED

#define BCRYPT_ALGO_SUPPORTED   0

◆ BCRYPT_DEFAULT_COST

#define BCRYPT_DEFAULT_COST   5

◆ CRYPT_ALGO_SUPPORTED

#define CRYPT_ALGO_SUPPORTED   1

◆ ERR_ALG_NOT_SUPP

#define ERR_ALG_NOT_SUPP   10

◆ ERR_BADUSER

#define ERR_BADUSER   6

◆ ERR_FILEPERM

#define ERR_FILEPERM   1

◆ ERR_GENERAL

#define ERR_GENERAL   9

◆ ERR_INTERRUPTED

#define ERR_INTERRUPTED   4

◆ ERR_INVALID

#define ERR_INVALID   7

◆ ERR_OVERFLOW

#define ERR_OVERFLOW   5

◆ ERR_PWMISMATCH

#define ERR_PWMISMATCH   3

◆ ERR_RANDOM

#define ERR_RANDOM   8

◆ ERR_SYNTAX

#define ERR_SYNTAX   2

◆ MAX_PASSWD_LEN

#define MAX_PASSWD_LEN   256

◆ PLAIN_ALGO_SUPPORTED

#define PLAIN_ALGO_SUPPORTED   0

Typedef Documentation

◆ passwd_ctx

typedef struct passwd_ctx passwd_ctx

Function Documentation

◆ mk_password_hash()

int mk_password_hash ( passwd_ctx ctx)