Strophe  0.8
XMPP client library
Functions
sasl.h File Reference

SASL authentication helpers. More...

Functions

char * sasl_plain (xmpp_ctx_t *ctx, const char *authid, const char *password)
 low-level sasl routines
char * sasl_digest_md5 (xmpp_ctx_t *ctx, const char *challenge, const char *jid, const char *password)
 generate auth response string for the SASL DIGEST-MD5 mechanism
int base64_encoded_len (xmpp_ctx_t *ctx, const unsigned len)
 Base64 encoding routines.
char * base64_encode (xmpp_ctx_t *ctx, const unsigned char *const buffer, const unsigned len)
int base64_decoded_len (xmpp_ctx_t *ctx, const char *const buffer, const unsigned len)
unsigned char * base64_decode (xmpp_ctx_t *ctx, const char *const buffer, const unsigned len)

Detailed Description

SASL authentication helpers.


Function Documentation

char* sasl_plain ( xmpp_ctx_t *  ctx,
const char *  authid,
const char *  password 
)

low-level sasl routines

char* sasl_digest_md5 ( xmpp_ctx_t *  ctx,
const char *  challenge,
const char *  jid,
const char *  password 
)

generate auth response string for the SASL DIGEST-MD5 mechanism

int base64_encoded_len ( xmpp_ctx_t *  ctx,
const unsigned  len 
)

Base64 encoding routines.

Implemented according to RFC 3548

char* base64_encode ( xmpp_ctx_t *  ctx,
const unsigned char *const  buffer,
const unsigned  len 
)
int base64_decoded_len ( xmpp_ctx_t *  ctx,
const char *const  buffer,
const unsigned  len 
)
unsigned char* base64_decode ( xmpp_ctx_t *  ctx,
const char *const  buffer,
const unsigned  len 
)