gsasl  2.2.1
Macros | Functions
challenge.c File Reference
#include <config.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "challenge.h"
#include <gc.h>

Go to the source code of this file.

Macros

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

Functions

int cram_md5_challenge (char challenge[CRAM_MD5_CHALLENGE_LEN])
 

Macro Definition Documentation

◆ DIGIT

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

Definition at line 61 of file challenge.c.

◆ NONCELEN

#define NONCELEN   10

Definition at line 56 of file challenge.c.

◆ TEMPLATE

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

Definition at line 57 of file challenge.c.

Function Documentation

◆ cram_md5_challenge()

int cram_md5_challenge ( char  challenge[CRAM_MD5_CHALLENGE_LEN])

Definition at line 66 of file challenge.c.