mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
vauth: move auth structs to conn meta data
Remove structs for negotiate, krb5, ntlm and gsasl from connectdata and store them as connection meta data with auto cleanup. De-complexify sasl mech selection by moving code into static functions. Closes #17557
This commit is contained in:
parent
05ffeeda0c
commit
ab650379a8
16 changed files with 598 additions and 396 deletions
|
|
@ -3221,8 +3221,10 @@ static CURLcode http_header(struct Curl_easy *data,
|
|||
}
|
||||
#ifdef USE_SPNEGO
|
||||
if(HD_IS(hd, hdlen, "Persistent-Auth:")) {
|
||||
struct negotiatedata *negdata = &conn->negotiate;
|
||||
struct negotiatedata *negdata = Curl_auth_nego_get(conn, FALSE);
|
||||
struct auth *authp = &data->state.authhost;
|
||||
if(!negdata)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
if(authp->picked == CURLAUTH_NEGOTIATE) {
|
||||
char *persistentauth = Curl_copy_header_value(hd);
|
||||
if(!persistentauth)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue