mirror of
https://github.com/strophe/libstrophe.git
synced 2026-07-20 12:46:22 +00:00
Base64 is required for vCard avatars. It will also be useful for an authentication mechanism with future xmpp_connect_raw() interface.
31 lines
833 B
C
31 lines
833 B
C
/* sasl.h
|
|
** strophe XMPP client library -- SASL authentication helpers
|
|
**
|
|
** Copyright (C) 2005-2009 Collecta, Inc.
|
|
**
|
|
** This software is provided AS-IS with no warranty, either express
|
|
** or implied.
|
|
**
|
|
** This program is dual licensed under the MIT and GPLv3 licenses.
|
|
*/
|
|
|
|
/** @file
|
|
* SASL authentication helpers.
|
|
*/
|
|
|
|
#ifndef __LIBSTROPHE_SASL_H__
|
|
#define __LIBSTROPHE_SASL_H__
|
|
|
|
#include "strophe.h"
|
|
|
|
/** low-level sasl routines */
|
|
|
|
char *sasl_plain(xmpp_ctx_t *ctx, const char *authid, const char *password);
|
|
char *sasl_digest_md5(xmpp_ctx_t *ctx, const char *challenge,
|
|
const char *jid, const char *password);
|
|
char *sasl_scram_sha1(xmpp_ctx_t *ctx, const char *challenge,
|
|
const char *first_bare, const char *jid,
|
|
const char *password);
|
|
|
|
#endif /* _LIBXMPP_SASL_H__ */
|