cram-md5/server.c File Reference

#include "cram-md5.h"
#include <stdlib.h>
#include <string.h>
#include "challenge.h"
#include "digest.h"

Go to the source code of this file.

Defines

#define MD5LEN   16

Functions

int _gsasl_cram_md5_server_start (Gsasl_session *sctx, void **mech_data)
int _gsasl_cram_md5_server_step (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)
void _gsasl_cram_md5_server_finish (Gsasl_session *sctx, void *mech_data)


Define Documentation

#define MD5LEN   16

Definition at line 42 of file cram-md5/server.c.

Referenced by _gsasl_cram_md5_server_step(), digest_md5_decode(), and digest_md5_encode().


Function Documentation

void _gsasl_cram_md5_server_finish ( Gsasl_session sctx,
void *  mech_data 
)

Definition at line 124 of file cram-md5/server.c.

int _gsasl_cram_md5_server_start ( Gsasl_session sctx,
void **  mech_data 
)

Definition at line 45 of file cram-md5/server.c.

References cram_md5_challenge(), CRAM_MD5_CHALLENGE_LEN, GSASL_MALLOC_ERROR, and GSASL_OK.

int _gsasl_cram_md5_server_step ( Gsasl_session sctx,
void *  mech_data,
const char *  input,
size_t  input_len,
char **  output,
size_t *  output_len 
)

Definition at line 61 of file cram-md5/server.c.

References cram_md5_digest(), CRAM_MD5_DIGEST_LEN, GSASL_AUTHENTICATION_ERROR, GSASL_AUTHID, GSASL_MALLOC_ERROR, GSASL_MECHANISM_PARSE_ERROR, GSASL_NEEDS_MORE, GSASL_NO_PASSWORD, GSASL_OK, GSASL_PASSWORD, gsasl_property_get(), gsasl_property_set(), gsasl_saslprep(), and MD5LEN.


Generated on Tue Aug 22 12:06:07 2006 for gsasl by  doxygen 1.4.7