summaryrefslogtreecommitdiff
path: root/src/ne_auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ne_auth.c')
-rw-r--r--src/ne_auth.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ne_auth.c b/src/ne_auth.c
index 48a0cb5..96f34d3 100644
--- a/src/ne_auth.c
+++ b/src/ne_auth.c
@@ -1616,6 +1616,18 @@ static void auth_register(ne_session *sess, int isproxy, unsigned protomask,
protomask |= NE_AUTH_GSSAPI_ONLY | NE_AUTH_SSPI;
}
+ if (protomask | NE_AUTH_DIGEST) {
+ struct ne_md5_ctx *ctx = ne_md5_create_ctx();
+
+ if (ctx) {
+ ne_md5_destroy_ctx(ctx);
+ }
+ else {
+ NE_DEBUG(NE_DBG_HTTPAUTH, "auth: Disabling Digest support without MD5.\n");
+ protomask &= ~NE_AUTH_DIGEST;
+ }
+ }
+
ahs = ne_get_session_private(sess, id);
if (ahs == NULL) {
ahs = ne_calloc(sizeof *ahs);