Apache HTTPD
Functions | Variables
testmd5.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "apr_md5.h"
#include "apr_xlate.h"
#include "apr_general.h"
#include "abts.h"
#include "testutil.h"

Go to the source code of this file.

Functions

static void test_md5sum (abts_case *tc, void *data)
 
static void test_md5sum_unaligned (abts_case *tc, void *data)
 
abts_suitetestmd5 (abts_suite *suite)
 

Variables

struct { 
 
   const char *   string 
 
   const char *   digest 
 
md5sums [] 
 
static int num_sums = sizeof(md5sums) / sizeof(md5sums[0])
 
static int count
 

Function Documentation

◆ test_md5sum()

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

Definition at line 52 of file testmd5.c.

◆ test_md5sum_unaligned()

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

Definition at line 69 of file testmd5.c.

◆ testmd5()

abts_suite * testmd5 ( abts_suite suite)

Definition at line 93 of file testmd5.c.

Variable Documentation

◆ count

int count
static

Definition at line 50 of file testmd5.c.

◆ digest

const char* digest

Definition at line 30 of file testmd5.c.

◆ [struct]

struct { ... } md5sums[]
Initial value:
=
{
{"Jeff was here!",
"\xa5\x25\x8a\x89\x11\xb2\x9d\x1f\x81\x75\x96\x3b\x60\x94\x49\xc0"},
{"01234567890aBcDeFASDFGHJKLPOIUYTR"
"POIUYTREWQZXCVBN LLLLLLLLLLLLLLL",
"\xd4\x1a\x06\x2c\xc5\xfd\x6f\x24\x67\x68\x56\x7c\x40\x8a\xd5\x69"},
{"111111118888888888888888*******%%%%%%%%%%#####"
"142134u8097289720432098409289nkjlfkjlmn,m.. ",
"\xb6\xea\x5b\xe8\xca\x45\x8a\x33\xf0\xf1\x84\x6f\xf9\x65\xa8\xe1"},
{"01234567890aBcDeFASDFGHJKLPOIUYTR"
"POIUYTREWQZXCVBN LLLLLLLLLLLLLLL"
"01234567890aBcDeFASDFGHJKLPOIUYTR"
"POIUYTREWQZXCVBN LLLLLLLLLLLLLLL"
"1",
"\xd1\xa1\xc0\x97\x8a\x60\xbb\xfb\x2a\x25\x46\x9d\xa5\xae\xd0\xb0"}
}

◆ num_sums

int num_sums = sizeof(md5sums) / sizeof(md5sums[0])
static

Definition at line 49 of file testmd5.c.

◆ string

const char* string

Definition at line 29 of file testmd5.c.