parser.c File Reference

#include "parser.h"
#include <stdlib.h>
#include <string.h>
#include "validate.h"

Go to the source code of this file.

Defines

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


Define Documentation

#define DEFAULT_ALGORITHM   "md5-sess"

Definition at line 40 of file parser.c.

#define DEFAULT_CHARSET   "utf-8"

Definition at line 39 of file parser.c.


Enumeration Type Documentation

anonymous enum

Enumerator:
CHALLENGE_REALM 
CHALLENGE_NONCE 
CHALLENGE_QOP 
CHALLENGE_STALE 
CHALLENGE_MAXBUF 
CHALLENGE_CHARSET 
CHALLENGE_ALGORITHM 
CHALLENGE_CIPHER 

Definition at line 42 of file parser.c.

anonymous enum

Enumerator:
QOP_AUTH 
QOP_AUTH_INT 
QOP_AUTH_CONF 

Definition at line 69 of file parser.c.

anonymous enum

Enumerator:
CIPHER_DES 
CIPHER_3DES 
CIPHER_RC4 
CIPHER_RC4_40 
CIPHER_RC4_56 
CIPHER_AES_CBC 

Definition at line 89 of file parser.c.

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 315 of file parser.c.

anonymous enum

Enumerator:
RESPONSEAUTH_RSPAUTH 

Definition at line 521 of file parser.c.


Function Documentation

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

Definition at line 569 of file parser.c.

Referenced by _gsasl_digest_md5_client_step(), and main().

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

Definition at line 611 of file parser.c.

Referenced by _gsasl_digest_md5_client_step(), and main().

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

Definition at line 590 of file parser.c.

Referenced by _gsasl_digest_md5_server_step(), and main().


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