X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=mutt_sasl.h;h=b34b7c1fb90d0f7631039acaa992b7b36c8db4e8;hp=9c71a6738bcf0e97b7134daf5c71d03dcd6da6dd;hb=37bbc8dcb3e9c795bd04ccfc5ac59f9810908c3c;hpb=08fa240d29322ece4c7bceebfae6c6d3fb856f0e diff --git a/mutt_sasl.h b/mutt_sasl.h index 9c71a67..b34b7c1 100644 --- a/mutt_sasl.h +++ b/mutt_sasl.h @@ -14,7 +14,7 @@ #include -#include +#include int mutt_sasl_client_new (CONNECTION *, sasl_conn_t **); sasl_callback_t *mutt_sasl_get_callbacks (ACCOUNT *); @@ -28,16 +28,16 @@ typedef struct { const unsigned int *pbufsize; /* read buffer */ - char *buf; - unsigned int blen; + const char *buf; + unsigned 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); + int (*msasl_read) (CONNECTION * conn, char *buf, ssize_t len); + int (*msasl_write) (CONNECTION * conn, const char *buf, ssize_t count); } SASL_DATA; #endif /* _MUTT_SASL_H_ */