#define SASL_NOCHANGE -22 /* requested change was not needed */
#define SASL_WEAKPASS -27 /* passphrase is too weak for security policy */
#define SASL_NOUSERPASS -28 /* user supplied passwords not permitted */
+#define SASL_BADBINDING -29 /* channel binding failure */
/* max size of a sasl mechanism name */
#define SASL_MECHNAMEMAX 20
* is particularly useful for servers that respond to multiple names. */
#define SASL_GSS_LOCAL_NAME 20
+/* Channel binding information. Memory is managed by the caller. */
typedef struct sasl_channel_binding {
- char *type;
+ const char *name;
int critical;
unsigned long len;
- unsigned char *data;
-} sasl_channel_binding;
+ const unsigned char *data;
+} sasl_channel_binding_t;
#define SASL_CHANNEL_BINDING 21