2 * Copyright notice from original mutt:
3 * Copyright (C) 2000-5 Brendan Cully <brendan@kublai.com>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
10 /* common SASL helper routines */
13 #define _MUTT_SASL_H_ 1
15 #include <sasl/sasl.h>
17 #include <lib-sys/mutt_socket.h>
19 int mutt_sasl_client_new (CONNECTION *, sasl_conn_t **);
20 sasl_callback_t *mutt_sasl_get_callbacks (ACCOUNT *);
21 int mutt_sasl_interact (sasl_interact_t *);
22 void mutt_sasl_setup_conn (CONNECTION *, sasl_conn_t *);
23 void mutt_sasl_done (void);
26 sasl_conn_t *saslconn;
27 const sasl_ssf_t *ssf;
28 const unsigned int *pbufsize;
35 /* underlying socket data */
37 int (*msasl_open) (CONNECTION * conn);
38 int (*msasl_close) (CONNECTION * conn);
39 int (*msasl_read) (CONNECTION * conn, char *buf, size_t len);
40 int (*msasl_write) (CONNECTION * conn, const char *buf, size_t count);
43 #endif /* _MUTT_SASL_H_ */