summaryrefslogtreecommitdiff
path: root/lib/curl_sasl.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2015-08-31 11:49:31 +0100
committerSteve Holme <steve_holme@hotmail.com>2015-08-31 12:44:01 +0100
commit49639480897fc2e820557e1b986154cfe9a6cb71 (patch)
tree3d5980840fff52684338a256e87611cd56eb4324 /lib/curl_sasl.h
parentb85043799157e761aa23d7b96a4721ef3b5e4598 (diff)
downloadcurl-49639480897fc2e820557e1b986154cfe9a6cb71.tar.gz
sasl: Only define Curl_sasl_digest_get_pair() when CRYPTO_AUTH enabled
Introduced in commit 59f3f92ba6 this function is only implemented when CURL_DISABLE_CRYPTO_AUTH is not defined. As such we shouldn't define the function in the header file either.
Diffstat (limited to 'lib/curl_sasl.h')
-rw-r--r--lib/curl_sasl.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/curl_sasl.h b/lib/curl_sasl.h
index 76c1d9383..a8e0e5cd9 100644
--- a/lib/curl_sasl.h
+++ b/lib/curl_sasl.h
@@ -141,15 +141,14 @@ char *Curl_sasl_build_spn(const char *service, const char *instance);
TCHAR *Curl_sasl_build_spn(const char *service, const char *instance);
#endif
-/* This is used to extract the realm from a challenge message */
-int Curl_sasl_digest_get_pair(const char *str, char *value, char *content,
- const char **endptr);
-
#if defined(HAVE_GSSAPI)
char *Curl_sasl_build_gssapi_spn(const char *service, const char *instance);
#endif
#ifndef CURL_DISABLE_CRYPTO_AUTH
+/* This is used to extract the realm from a challenge message */
+int Curl_sasl_digest_get_pair(const char *str, char *value, char *content,
+ const char **endptr);
/* This is used to generate a base64 encoded DIGEST-MD5 response message */
CURLcode Curl_sasl_create_digest_md5_message(struct SessionHandle *data,