Apache2
|
#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 "ap_config_auto.h"
Go to the source code of this file.
Data Structures | |
struct | passwd_ctx |
Macros | |
#define | MAX_STRING_LEN 256 |
#define | ALG_PLAIN 0 |
#define | ALG_CRYPT 1 |
#define | ALG_APMD5 2 |
#define | ALG_APSHA 3 |
#define | ALG_BCRYPT 4 |
#define | ALG_CRYPT_SHA256 5 |
#define | ALG_CRYPT_SHA512 6 |
#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 | NL APR_EOL_STR |
#define | CRYPT_ALGO_SUPPORTED 1 |
#define | PLAIN_ALGO_SUPPORTED 0 |
#define | BCRYPT_ALGO_SUPPORTED 0 |
Functions | |
int | abort_on_oom (int rc) |
void | putline (apr_file_t *f, const char *l) |
int | parse_common_options (struct passwd_ctx *ctx, char opt, const char *opt_arg) |
int | get_password (struct passwd_ctx *ctx) |
int | mkhash (struct passwd_ctx *ctx) |
Variables | |
apr_file_t * | errfile |
#define ALG_APMD5 2 |
#define ALG_APSHA 3 |
#define ALG_BCRYPT 4 |
#define ALG_CRYPT 1 |
#define ALG_CRYPT_SHA256 5 |
#define ALG_CRYPT_SHA512 6 |
#define ALG_PLAIN 0 |
#define BCRYPT_ALGO_SUPPORTED 0 |
#define BCRYPT_DEFAULT_COST 5 |
#define CRYPT_ALGO_SUPPORTED 1 |
#define ERR_ALG_NOT_SUPP 10 |
#define ERR_BADUSER 6 |
#define ERR_FILEPERM 1 |
#define ERR_GENERAL 9 |
#define ERR_INTERRUPTED 4 |
#define ERR_INVALID 7 |
#define ERR_OVERFLOW 5 |
#define ERR_PWMISMATCH 3 |
#define ERR_RANDOM 8 |
#define ERR_SYNTAX 2 |
#define MAX_STRING_LEN 256 |
#define NL APR_EOL_STR |
#define PLAIN_ALGO_SUPPORTED 0 |
int get_password | ( | struct passwd_ctx * | ctx | ) |
int mkhash | ( | struct passwd_ctx * | ctx | ) |
int parse_common_options | ( | struct passwd_ctx * | ctx, |
char | opt, | ||
const char * | opt_arg | ||
) |
void putline | ( | apr_file_t * | f, |
const char * | l | ||
) |
apr_file_t* errfile |