27 #if !APR_VERSION_AT_LEAST(2,0,0)
31 #define MAX_PASSWD_LEN 256
38 #define BCRYPT_DEFAULT_COST 5
40 #define ERR_FILEPERM 1
42 #define ERR_PWMISMATCH 3
43 #define ERR_INTERRUPTED 4
44 #define ERR_OVERFLOW 5
49 #define ERR_ALG_NOT_SUPP 10
51 #if defined(WIN32) || defined(NETWARE)
52 #define CRYPT_ALGO_SUPPORTED 0
53 #define PLAIN_ALGO_SUPPORTED 1
55 #define CRYPT_ALGO_SUPPORTED 1
56 #define PLAIN_ALGO_SUPPORTED 0
59 #if APR_VERSION_AT_LEAST(2,0,0) || \
60 (APU_MAJOR_VERSION == 1 && APU_MINOR_VERSION >= 5)
61 #define BCRYPT_ALGO_SUPPORTED 1
63 #define BCRYPT_ALGO_SUPPORTED 0
APR Platform Definitions.
APR Miscellaneous library routines.
APR general purpose library routines.
APR Versioning Interface.
APR-util Versioning Interface.
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int mk_password_hash(passwd_ctx *ctx)
Definition: lua_passwd.h:68
char * out
Definition: lua_passwd.h:71
apr_size_t out_len
Definition: lua_passwd.h:72
int cost
Definition: lua_passwd.h:75
char * passwd
Definition: lua_passwd.h:73
int alg
Definition: lua_passwd.h:74
apr_pool_t * pool
Definition: lua_passwd.h:69
const char * errstr
Definition: lua_passwd.h:70