50 unsigned char rnd[32];
51 static const char itoa64[] =
52 "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
54 unsigned int val = 0, bits = 0;
58 if (
n >
sizeof(
rnd)) {
93#if CRYPT_ALGO_SUPPORTED
113 "could not encode password: %pm", &rv);
118#if CRYPT_ALGO_SUPPORTED
132 if (strlen(
pw) > 8) {
137 "Warning: Password truncated to 8 "
138 "characters by CRYPT algorithm.");
145#if BCRYPT_ALGO_SUPPORTED
170 "mk_password_hash(): unsupported algorithm %d",
apr_brigade_flush void * ctx
const char int apr_pool_t * pool
#define APR_FROM_OS_ERROR(e)
static int generate_salt(char *s, size_t size, const char **errstr, apr_pool_t *pool)
int mk_password_hash(passwd_ctx *ctx)
#define BCRYPT_DEFAULT_COST