http_digest: Don't expose functions when HTTP and Crypto Auth are disabled

Closes #3861
This commit is contained in:
Steve Holme 2019-05-10 13:10:34 +01:00
parent fb243b0475
commit 5c2aebe308
No known key found for this signature in database
GPG key ID: 4059CB85CA7E8F19
3 changed files with 10 additions and 5 deletions

View file

@ -379,7 +379,9 @@ CURLcode Curl_close(struct Curl_easy *data)
Curl_altsvc_cleanup(data->asi);
data->asi = NULL;
#endif
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
Curl_digest_cleanup(data);
#endif
Curl_safefree(data->info.contenttype);
Curl_safefree(data->info.wouldredirect);