curl/lib/vauth
Patrick Monnerat 9c1e1a6105
ntlm: fix negotiated flags usage
According to Microsoft document MS-NLMP, current flags usage is not
accurate: flag NTLMFLAG_NEGOTIATE_NTLM2_KEY controls the use of
extended security in an NTLM authentication message and NTLM version 2
cannot be negotiated within the protocol.

The solution implemented here is: if the extended security flag is set,
prefer using NTLM version 2 (as a server featuring extended security
should also support version 2). If version 2 has been disabled at
compile time, use extended security.

Tests involving NTLM are adjusted to this new behavior.

Fixes #6813
Closes #6849
2021-04-09 09:40:56 +02:00
..
cleartext.c
cram.c
digest_sspi.c failf: remove newline from formatting strings 2020-12-25 23:42:16 +01:00
digest.c misc: fix "warning: empty expression statement has no effect" 2020-12-26 23:44:17 +01:00
digest.h
gsasl.c gsasl: fix errors/warnings building against libgsasl 2021-02-10 18:55:58 +00:00
krb5_gssapi.c
krb5_sspi.c failf: remove newline from formatting strings 2020-12-25 23:42:16 +01:00
ntlm_sspi.c failf: remove newline from formatting strings 2020-12-25 23:42:16 +01:00
ntlm.c ntlm: fix negotiated flags usage 2021-04-09 09:40:56 +02:00
ntlm.h
oauth2.c
spnego_gssapi.c
spnego_sspi.c failf: remove newline from formatting strings 2020-12-25 23:42:16 +01:00
vauth.c
vauth.h copyright: update copyright year ranges to 2021 2021-03-27 23:00:14 +01:00