-
-typedef struct {
- sasl_conn_t *saslconn;
- const sasl_ssf_t *ssf;
- const unsigned int *pbufsize;
-
- /* read buffer */
-#ifdef USE_SASL2
- const char *buf;
-#else
- char *buf;
-#endif
- unsigned int blen;
- unsigned int bpos;
-
- /* underlying socket data */
- void *sockdata;
- int (*msasl_open) (CONNECTION * conn);
- int (*msasl_close) (CONNECTION * conn);
- int (*msasl_read) (CONNECTION * conn, char *buf, size_t len);
- int (*msasl_write) (CONNECTION * conn, const char *buf, size_t count);
-} SASL_DATA;