Home GnuPG
Diffusion GnuPG d546fdd53115

dirmngr: Add code to support the negotiation auth method.

Description

dirmngr: Add code to support the negotiation auth method.

* dirmngr/http.c (enum auth_negotiate_states): New.
(struct proxy_info_s): Add new fields.
(release_proxy_info): Free Windows stuff.
(proxy_get_token): New. Implemented only for Windows for now.
(run_proxy_connect): Add support for auth method Negotiation.
(store_header): Keep some header lines separate.

The code does something but I have not yet been able to test it due
to problems setting up Squid with AD authentication. As of now it
will respond with a failure but that should not be worse than not to
implement Negotiation.

Supporting Negotiation using GSS for Unix should eventually also be
done.

Details

Provenance
wernerAuthored on Oct 2 2023, 1:00 PM
Parents
rG7f2f970540b6: dirmngr: Extended the http_get_header function.
Branches
Unknown
Tags
Unknown
Tasks
T6719: Support Proxy-Authorization: Negotiate on Windows