X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=include%2Fsasl.h;h=9c6d060611bed7cd7ce40ac826ec5731f0cd05bc;hb=5cd4620c41ee3fd9cfebb55179c3d7ce308f75bc;hp=b08205742bb8e8189839a82ed5375587eeb496d8;hpb=c3ef0663e190e058bb434ff3f5faea103f3f448b;p=cyrus-sasl.git diff --git a/include/sasl.h b/include/sasl.h index b082057..9c6d060 100755 --- a/include/sasl.h +++ b/include/sasl.h @@ -171,6 +171,7 @@ #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 @@ -791,12 +792,13 @@ LIBSASL_API int sasl_getprop(sasl_conn_t *conn, int propnum, * 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