Fix examples to use new API and lots of compiler warnings.

This commit is contained in:
Jack Moffitt
2008-07-02 23:17:27 +00:00
parent 65a174ee7e
commit 9c49b16554
22 changed files with 197 additions and 71 deletions

View File

@@ -12,6 +12,10 @@
** distribution.
*/
/** @file
* SASL authentication helpers.
*/
#ifndef __LIBSTROPHE_SASL_H__
#define __LIBSTROPHE_SASL_H__
@@ -26,15 +30,15 @@ char *sasl_digest_md5(xmpp_ctx_t *ctx, const char *challenge,
/** Base64 encoding routines. Implemented according to RFC 3548 */
int base64_encoded_len(xmpp_ctx_t *ctx, const int len);
int base64_encoded_len(xmpp_ctx_t *ctx, const unsigned len);
char *base64_encode(xmpp_ctx_t *ctx,
const unsigned char * const buffer, const int len);
const unsigned char * const buffer, const unsigned len);
int base64_decoded_len(xmpp_ctx_t *ctx,
const char * const buffer, const int len);
const char * const buffer, const unsigned len);
unsigned char *base64_decode(xmpp_ctx_t *ctx,
const char * const buffer, const int len);
const char * const buffer, const unsigned len);
#endif /* _LIBXMPP_SASL_H__ */