session.c File Reference

#include "session.h"
#include <stdlib.h>
#include <string.h>
#include <gc.h>

Go to the source code of this file.

Defines

#define MD5LEN   16
#define SASL_INTEGRITY_PREFIX_LENGTH   4
#define MAC_DATA_LEN   4
#define MAC_HMAC_LEN   10
#define MAC_MSG_TYPE   "\x00\x01"
#define MAC_MSG_TYPE_LEN   2
#define MAC_SEQNUM_LEN   4
#define C2I(buf)

Functions

int digest_md5_encode (const char *input, size_t input_len, char **output, size_t *output_len, digest_md5_qop qop, unsigned long sendseqnum, char key[DIGEST_MD5_LENGTH])
int digest_md5_decode (const char *input, size_t input_len, char **output, size_t *output_len, digest_md5_qop qop, unsigned long readseqnum, char key[DIGEST_MD5_LENGTH])


Define Documentation

#define C2I ( buf   ) 

Value:

((buf[0] & 0xFF) |              \
                  ((buf[1] & 0xFF) << 8) |      \
                  ((buf[2] & 0xFF) << 16) |     \
                  ((buf[3] & 0xFF) << 24))

Definition at line 116 of file session.c.

Referenced by digest_md5_decode().

#define MAC_DATA_LEN   4

Definition at line 41 of file session.c.

Referenced by digest_md5_decode(), and digest_md5_encode().

#define MAC_HMAC_LEN   10

Definition at line 42 of file session.c.

Referenced by digest_md5_decode(), and digest_md5_encode().

#define MAC_MSG_TYPE   "\x00\x01"

Definition at line 43 of file session.c.

Referenced by digest_md5_decode(), and digest_md5_encode().

#define MAC_MSG_TYPE_LEN   2

Definition at line 44 of file session.c.

Referenced by digest_md5_decode(), and digest_md5_encode().

#define MAC_SEQNUM_LEN   4

Definition at line 45 of file session.c.

Referenced by digest_md5_decode(), and digest_md5_encode().

#define MD5LEN   16

Definition at line 39 of file session.c.

#define SASL_INTEGRITY_PREFIX_LENGTH   4

Definition at line 40 of file session.c.

Referenced by digest_md5_decode().


Function Documentation

int digest_md5_decode ( const char *  input,
size_t  input_len,
char **  output,
size_t *  output_len,
digest_md5_qop  qop,
unsigned long  readseqnum,
char  key[DIGEST_MD5_LENGTH] 
)

Definition at line 122 of file session.c.

References C2I, DIGEST_MD5_QOP_AUTH_CONF, DIGEST_MD5_QOP_AUTH_INT, MAC_DATA_LEN, MAC_HMAC_LEN, MAC_MSG_TYPE, MAC_MSG_TYPE_LEN, MAC_SEQNUM_LEN, MD5LEN, and SASL_INTEGRITY_PREFIX_LENGTH.

Referenced by _gsasl_digest_md5_client_decode(), and _gsasl_digest_md5_server_decode().

int digest_md5_encode ( const char *  input,
size_t  input_len,
char **  output,
size_t *  output_len,
digest_md5_qop  qop,
unsigned long  sendseqnum,
char  key[DIGEST_MD5_LENGTH] 
)

Definition at line 48 of file session.c.

References DIGEST_MD5_QOP_AUTH_CONF, DIGEST_MD5_QOP_AUTH_INT, MAC_DATA_LEN, MAC_HMAC_LEN, MAC_MSG_TYPE, MAC_MSG_TYPE_LEN, MAC_SEQNUM_LEN, and MD5LEN.

Referenced by _gsasl_digest_md5_client_encode(), and _gsasl_digest_md5_server_encode().


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