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

@ -961,7 +961,10 @@ void curl_easy_reset(struct Curl_easy *data)
/* zero out authentication data: */
memset(&data->state.authhost, 0, sizeof(struct auth));
memset(&data->state.authproxy, 0, sizeof(struct auth));
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_CRYPTO_AUTH)
Curl_digest_cleanup(data);
#endif
}
/*