Defines | Functions

challenge.c File Reference

#include <stddef.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "challenge.h"
#include <gc.h>

Go to the source code of this file.

Defines

#define NONCELEN   10
#define TEMPLATE   "<XXXXXXXXXXXXXXXXXXXX.0@localhost>"
#define DIGIT(c)

Functions

int cram_md5_challenge (char challenge[CRAM_MD5_CHALLENGE_LEN])

Define Documentation

#define DIGIT (   c  ) 
Value:
(((c) & 0x0F) > 9 ?             \
                    '0' + ((c) & 0x0F) - 10 :   \
                    '0' + ((c) & 0x0F))

Definition at line 60 of file challenge.c.

#define NONCELEN   10

Definition at line 55 of file challenge.c.

#define TEMPLATE   "<XXXXXXXXXXXXXXXXXXXX.0@localhost>"

Definition at line 56 of file challenge.c.


Function Documentation

int cram_md5_challenge ( char  challenge[CRAM_MD5_CHALLENGE_LEN]  ) 

Definition at line 65 of file challenge.c.