Apache HTTPD
Macros | Functions | Variables
testpass.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "apr_errno.h"
#include "apr_strings.h"
#include "apr_file_io.h"
#include "apr_thread_pool.h"
#include "apr_md5.h"
#include "apr_sha1.h"
#include "abts.h"
#include "testutil.h"

Go to the source code of this file.

Macros

#define CRYPT_ALGO_SUPPORTED   1
 

Functions

static void test_crypt (abts_case *tc, void *data)
 
static void test_shapass (abts_case *tc, void *data)
 
static void test_md5pass (abts_case *tc, void *data)
 
static void test_bcryptpass (abts_case *tc, void *data)
 
abts_suitetestpass (abts_suite *suite)
 

Variables

struct { 
 
   const char *   password 
 
   const char *   hash 
 
passwords [] 
 
static int num_passwords = sizeof(passwords) / sizeof(passwords[0])
 

Macro Definition Documentation

◆ CRYPT_ALGO_SUPPORTED

#define CRYPT_ALGO_SUPPORTED   1

Definition at line 33 of file testpass.c.

Function Documentation

◆ test_bcryptpass()

static void test_bcryptpass ( abts_case tc,
void *  data 
)
static

Definition at line 177 of file testpass.c.

◆ test_crypt()

static void test_crypt ( abts_case tc,
void *  data 
)
static

Definition at line 73 of file testpass.c.

◆ test_md5pass()

static void test_md5pass ( abts_case tc,
void *  data 
)
static

Definition at line 136 of file testpass.c.

◆ test_shapass()

static void test_shapass ( abts_case tc,
void *  data 
)
static

Definition at line 122 of file testpass.c.

◆ testpass()

abts_suite * testpass ( abts_suite suite)

Definition at line 199 of file testpass.c.

Variable Documentation

◆ hash

const char* hash

Definition at line 46 of file testpass.c.

◆ num_passwords

int num_passwords = sizeof(passwords) / sizeof(passwords[0])
static

Definition at line 71 of file testpass.c.

◆ password

const char* password

Definition at line 45 of file testpass.c.

◆ [struct]

struct { ... } passwords[]
Initial value:
=
{
{"pass1", "1fWDc9QWYCWrQ"},
{"pass2", "1fiGx3u7QoXaM"},
{"pass3", "1fzijMylTiwCs"},
{"pass4", "nHUYc8U2UOP7s"},
{"pass5", "nHpETGLGPwAmA"},
{"pass6", "nHbsbWmJ3uyhc"},
{"pass7", "nHQ3BbF0Y9vpI"},
{"pass8", "nHZA1rViSldQk"}
}