gsasl  2.2.1
Macros | Enumerations | Functions
digest-md5/parser.c File Reference
#include <config.h>
#include "parser.h"
#include <stdlib.h>
#include <string.h>
#include "validate.h"

Go to the source code of this file.

Macros

#define DEFAULT_CHARSET   "utf-8"
 
#define DEFAULT_ALGORITHM   "md5-sess"
 

Enumerations

enum  {
  CHALLENGE_REALM = 0 , CHALLENGE_NONCE , CHALLENGE_QOP , CHALLENGE_STALE ,
  CHALLENGE_MAXBUF , CHALLENGE_CHARSET , CHALLENGE_ALGORITHM , CHALLENGE_CIPHER
}
 
enum  { QOP_AUTH = 0 , QOP_AUTH_INT , QOP_AUTH_CONF }
 
enum  {
  CIPHER_DES = 0 , CIPHER_3DES , CIPHER_RC4 , CIPHER_RC4_40 ,
  CIPHER_RC4_56 , CIPHER_AES_CBC
}
 
enum  {
  RESPONSE_USERNAME = 0 , RESPONSE_REALM , RESPONSE_NONCE , RESPONSE_CNONCE ,
  RESPONSE_NC , RESPONSE_QOP , RESPONSE_DIGEST_URI , RESPONSE_RESPONSE ,
  RESPONSE_MAXBUF , RESPONSE_CHARSET , RESPONSE_CIPHER , RESPONSE_AUTHZID
}
 
enum  { RESPONSEAUTH_RSPAUTH = 0 }
 

Functions

int digest_md5_parse_challenge (const char *challenge, size_t len, digest_md5_challenge *out)
 
int digest_md5_parse_response (const char *response, size_t len, digest_md5_response *out)
 
int digest_md5_parse_finish (const char *finish, size_t len, digest_md5_finish *out)
 

Macro Definition Documentation

◆ DEFAULT_ALGORITHM

#define DEFAULT_ALGORITHM   "md5-sess"

Definition at line 38 of file digest-md5/parser.c.

◆ DEFAULT_CHARSET

#define DEFAULT_CHARSET   "utf-8"

Definition at line 37 of file digest-md5/parser.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CHALLENGE_REALM 
CHALLENGE_NONCE 
CHALLENGE_QOP 
CHALLENGE_STALE 
CHALLENGE_MAXBUF 
CHALLENGE_CHARSET 
CHALLENGE_ALGORITHM 
CHALLENGE_CIPHER 

Definition at line 40 of file digest-md5/parser.c.

◆ anonymous enum

anonymous enum
Enumerator
QOP_AUTH 
QOP_AUTH_INT 
QOP_AUTH_CONF 

Definition at line 67 of file digest-md5/parser.c.

◆ anonymous enum

anonymous enum
Enumerator
CIPHER_DES 
CIPHER_3DES 
CIPHER_RC4 
CIPHER_RC4_40 
CIPHER_RC4_56 
CIPHER_AES_CBC 

Definition at line 87 of file digest-md5/parser.c.

◆ anonymous enum

anonymous enum
Enumerator
RESPONSE_USERNAME 
RESPONSE_REALM 
RESPONSE_NONCE 
RESPONSE_CNONCE 
RESPONSE_NC 
RESPONSE_QOP 
RESPONSE_DIGEST_URI 
RESPONSE_RESPONSE 
RESPONSE_MAXBUF 
RESPONSE_CHARSET 
RESPONSE_CIPHER 
RESPONSE_AUTHZID 

Definition at line 313 of file digest-md5/parser.c.

◆ anonymous enum

anonymous enum
Enumerator
RESPONSEAUTH_RSPAUTH 

Definition at line 519 of file digest-md5/parser.c.

Function Documentation

◆ digest_md5_parse_challenge()

int digest_md5_parse_challenge ( const char *  challenge,
size_t  len,
digest_md5_challenge out 
)

Definition at line 567 of file digest-md5/parser.c.

◆ digest_md5_parse_finish()

int digest_md5_parse_finish ( const char *  finish,
size_t  len,
digest_md5_finish out 
)

Definition at line 601 of file digest-md5/parser.c.

◆ digest_md5_parse_response()

int digest_md5_parse_response ( const char *  response,
size_t  len,
digest_md5_response out 
)

Definition at line 584 of file digest-md5/parser.c.