gsasl  1.8.0
Defines | Functions
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[3] & 0xFF) |              \
                  ((buf[2] & 0xFF) << 8) |      \
                  ((buf[1] & 0xFF) << 16) |     \
                  ((buf[0] & 0xFF) << 24))

Definition at line 116 of file session.c.

#define MAC_DATA_LEN   4

Definition at line 41 of file session.c.

#define MAC_HMAC_LEN   10

Definition at line 42 of file session.c.

#define MAC_MSG_TYPE   "\x00\x01"

Definition at line 43 of file session.c.

#define MAC_MSG_TYPE_LEN   2

Definition at line 44 of file session.c.

#define MAC_SEQNUM_LEN   4

Definition at line 45 of file session.c.

#define MD5LEN   16

Definition at line 39 of file session.c.

Definition at line 40 of file session.c.


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.

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.