aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-04-13 13:29:50 +0100
committerSteve Holme <steve_holme@hotmail.com>2013-04-13 13:29:50 +0100
commit3f7188dd9479f8f4f1ca114f88764265b85bed66 (patch)
treef78c9aa481fbcdb1880978c0f2c7d4c6fc319ee3
parent720218fea1f3148d104b0fe79f81fcb0f39420da (diff)
sasl: Reworked SASL mechanism constants
... to use left-shifted values, like those defined in curl.h, rather than 16-bit hexadecimal values.
-rw-r--r--lib/curl_sasl.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
index 0cc8ae332..22dcf805b 100644
--- a/lib/curl_sasl.h
+++ b/lib/curl_sasl.h
@@ -25,13 +25,13 @@
#include "pingpong.h"
/* Authentication mechanism flags */
-#define SASL_MECH_LOGIN 0x0001
-#define SASL_MECH_PLAIN 0x0002
-#define SASL_MECH_CRAM_MD5 0x0004
-#define SASL_MECH_DIGEST_MD5 0x0008
-#define SASL_MECH_GSSAPI 0x0010
-#define SASL_MECH_EXTERNAL 0x0020
-#define SASL_MECH_NTLM 0x0040
+#define SASL_MECH_LOGIN (1 << 0)
+#define SASL_MECH_PLAIN (1 << 1)
+#define SASL_MECH_CRAM_MD5 (1 << 2)
+#define SASL_MECH_DIGEST_MD5 (1 << 3)
+#define SASL_MECH_GSSAPI (1 << 4)
+#define SASL_MECH_EXTERNAL (1 << 5)
+#define SASL_MECH_NTLM (1 << 6)
/* Authentication mechanism values */
#define SASL_AUTH_NONE 0