summaryrefslogtreecommitdiffstats
path: root/mutt_sasl.h
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-08-04 08:06:22 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-08-04 08:06:22 +0000
commit567011285927857189a606cb5e0420b666d3a644 (patch)
treea2800171cf493ac30307eade9f827134e9a2ab42 /mutt_sasl.h
parent403932262d43cd2109cc2405e10a8d680b6a7a86 (diff)
SASL patch from Brendan Cully.
Diffstat (limited to 'mutt_sasl.h')
-rw-r--r--mutt_sasl.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/mutt_sasl.h b/mutt_sasl.h
index e979e160..777fc746 100644
--- a/mutt_sasl.h
+++ b/mutt_sasl.h
@@ -21,11 +21,33 @@
#ifndef _MUTT_SASL_H_
#define _MUTT_SASL_H_ 1
-#include "mutt_socket.h"
-
#include <sasl.h>
+#include "mutt_socket.h"
+
int mutt_sasl_start (void);
sasl_callback_t* mutt_sasl_get_callbacks (ACCOUNT* account);
+int mutt_sasl_interact (sasl_interact_t* interaction);
+void mutt_sasl_setup_conn (CONNECTION* conn, sasl_conn_t* saslconn);
+
+typedef struct
+{
+ sasl_conn_t* saslconn;
+ const sasl_ssf_t* ssf;
+ const unsigned int* pbufsize;
+
+ /* read buffer */
+ char* buf;
+ unsigned int blen;
+ unsigned int bpos;
+
+ /* underlying socket data */
+ void* sockdata;
+ int (*open) (CONNECTION* conn);
+ int (*close) (CONNECTION* conn);
+ int (*read) (CONNECTION* conn);
+ int (*write) (CONNECTION* conn, const char* buf, size_t count);
+}
+SASL_DATA;
#endif /* _MUTT_SASL_H_ */