gsasl  2.2.1
Macros | Functions
session.c File Reference
#include <config.h>
#include "session.h"
#include <stdlib.h>
#include <string.h>
#include <gc.h>

Go to the source code of this file.

Macros

#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])
 

Macro Definition Documentation

◆ C2I

#define C2I (   buf)
Value:
((buf[3] & 0xFF) | \
((buf[2] & 0xFF) << 8) | \
((buf[1] & 0xFF) << 16) | \
((buf[0] & 0xFF) << 24))

Definition at line 114 of file session.c.

◆ MAC_DATA_LEN

#define MAC_DATA_LEN   4

Definition at line 39 of file session.c.

◆ MAC_HMAC_LEN

#define MAC_HMAC_LEN   10

Definition at line 40 of file session.c.

◆ MAC_MSG_TYPE

#define MAC_MSG_TYPE   "\x00\x01"

Definition at line 41 of file session.c.

◆ MAC_MSG_TYPE_LEN

#define MAC_MSG_TYPE_LEN   2

Definition at line 42 of file session.c.

◆ MAC_SEQNUM_LEN

#define MAC_SEQNUM_LEN   4

Definition at line 43 of file session.c.

◆ MD5LEN

#define MD5LEN   16

Definition at line 37 of file session.c.

◆ SASL_INTEGRITY_PREFIX_LENGTH

#define SASL_INTEGRITY_PREFIX_LENGTH   4

Definition at line 38 of file session.c.

Function Documentation

◆ digest_md5_decode()

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 120 of file session.c.

◆ digest_md5_encode()

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 46 of file session.c.