aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-11-05 13:35:27 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-11-05 13:40:08 +0000
commitd7bfce3951087eaa1d6a41f2e9f50a4b2180c5a2 (patch)
tree8c6d23496f41e4dc325d4a795344ffe7084b36a2
parent3cfe3bc0010a8089c689b8c01a4abe39ba839191 (diff)
http_digest: Moved algorithm definitions to SASL module
-rw-r--r--lib/curl_sasl.h5
-rw-r--r--lib/http_digest.c1
-rw-r--r--lib/http_digest.h5
3 files changed, 6 insertions, 5 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
index 68ef5526c..3576d4199 100644
--- a/lib/curl_sasl.h
+++ b/lib/curl_sasl.h
@@ -56,6 +56,11 @@ struct kerberos5data;
#define SASL_MECH_STRING_NTLM "NTLM"
#define SASL_MECH_STRING_XOAUTH2 "XOAUTH2"
+enum {
+ CURLDIGESTALGO_MD5,
+ CURLDIGESTALGO_MD5SESS
+};
+
/* This is used to test whether the line starts with the given mechanism */
#define sasl_mech_equal(line, wordlen, mech) \
(wordlen == (sizeof(mech) - 1) / sizeof(char) && \
diff --git a/lib/http_digest.c b/lib/http_digest.c
index 19de4d41e..1d42769c5 100644
--- a/lib/http_digest.c
+++ b/lib/http_digest.c
@@ -28,6 +28,7 @@
#include "rawstr.h"
#include "curl_base64.h"
#include "curl_md5.h"
+#include "curl_sasl.h"
#include "http_digest.h"
#include "strtok.h"
#include "curl_memory.h"
diff --git a/lib/http_digest.h b/lib/http_digest.h
index 42ed83c7b..d13d56374 100644
--- a/lib/http_digest.h
+++ b/lib/http_digest.h
@@ -23,11 +23,6 @@
***************************************************************************/
#include "curl_setup.h"
-enum {
- CURLDIGESTALGO_MD5,
- CURLDIGESTALGO_MD5SESS
-};
-
/* this is for digest header input */
CURLcode Curl_input_digest(struct connectdata *conn,
bool proxy, const char *header);