aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_sasl.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2012-05-25 21:49:25 +0100
committerSteve Holme <steve_holme@hotmail.com>2012-05-25 21:49:25 +0100
commit978b808f7d636aa2540a351fc776287b49dcaa8a (patch)
treec58a549a51d92236e08ec49059dcdfe061eab48a /lib/curl_sasl.h
parent74be99357669da26900ae23b5005ddeabb91b453 (diff)
smtp: Moved auth-mechanism constants into a separate header file
Move the SMTP_AUTH constants into a separate header file in preparation for adding SASL based authentication to POP3 as the two protocols will need to share them.
Diffstat (limited to 'lib/curl_sasl.h')
-rw-r--r--lib/curl_sasl.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
new file mode 100644
index 000000000..dbbbad440
--- /dev/null
+++ b/lib/curl_sasl.h
@@ -0,0 +1,36 @@
+#ifndef HEADER_CURL_SASL_H
+#define HEADER_CURL_SASL_H
+/***************************************************************************
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
+ * \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 2012, Daniel Stenberg, <daniel@haxx.se>, et al.
+ *
+ * This software is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at http://curl.haxx.se/docs/copyright.html.
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so, under the terms of the COPYING file.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ***************************************************************************/
+
+#include "pingpong.h"
+
+/* Authentication mechanism flags */
+#define SMTP_AUTH_LOGIN 0x0001
+#define SMTP_AUTH_PLAIN 0x0002
+#define SMTP_AUTH_CRAM_MD5 0x0004
+#define SMTP_AUTH_DIGEST_MD5 0x0008
+#define SMTP_AUTH_GSSAPI 0x0010
+#define SMTP_AUTH_EXTERNAL 0x0020
+#define SMTP_AUTH_NTLM 0x0040
+
+#endif /* HEADER_CURL_SASL_H */