summaryrefslogtreecommitdiff
path: root/lib/http_digest.h
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2019-05-10 13:10:34 +0100
committerSteve Holme <steve_holme@hotmail.com>2019-05-11 17:23:32 +0100
commit5c2aebe308e459d2ca8fad29bde7885190ffe262 (patch)
tree65b012ccc16164946fc36d5637609c8dc4de4959 /lib/http_digest.h
parentfb243b0475c2a3a60889120ee3f05380e60645f0 (diff)
downloadcurl-5c2aebe308e459d2ca8fad29bde7885190ffe262.tar.gz
http_digest: Don't expose functions when HTTP and Crypto Auth are disabled
Closes #3861
Diffstat (limited to 'lib/http_digest.h')
-rw-r--r--lib/http_digest.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/http_digest.h b/lib/http_digest.h
index fd225c7c1..d3db16a33 100644
--- a/lib/http_digest.h
+++ b/lib/http_digest.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2014, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2019, 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
@@ -23,6 +23,8 @@
***************************************************************************/
#include "curl_setup.h"
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
+
/* this is for digest header input */
CURLcode Curl_input_digest(struct connectdata *conn,
bool proxy, const char *header);
@@ -33,10 +35,8 @@ CURLcode Curl_output_digest(struct connectdata *conn,
const unsigned char *request,
const unsigned char *uripath);
-#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
void Curl_digest_cleanup(struct Curl_easy *data);
-#else
-#define Curl_digest_cleanup(x) Curl_nop_stmt
-#endif
+
+#endif /* !CURL_DISABLE_HTTP && !CURL_DISABLE_CRYPTO_AUTH */
#endif /* HEADER_CURL_HTTP_DIGEST_H */