|
112 | 112 | -define(CURLAUTH_DIGEST, 101).
|
113 | 113 | -define(CURLAUTH_UNDEFINED, 102).
|
114 | 114 | -define(CURLAUTH_NTLM, 103).
|
| 115 | +-define(CURLAUTH_NEGOTIATE, 104). |
115 | 116 | -define(TCP_FASTOPEN_FALSE, 0).
|
116 | 117 | -define(TCP_FASTOPEN_TRUE, 1).
|
117 | 118 | -define(LOCK_DATA_SSL_SESSION_FALSE, 0).
|
|
258 | 259 | metrics => proplists:proplist()}} |
|
259 | 260 | {error, #{code := error_code(),
|
260 | 261 | message := error_msg()}}.
|
261 |
| --type http_auth() :: basic | digest | ntlm. |
262 |
| --type http_auth_int() :: ?CURLAUTH_UNDEFINED | ?CURLAUTH_BASIC | ?CURLAUTH_DIGEST | ?CURLAUTH_NTLM. |
| 262 | +-type http_auth() :: basic | digest | ntlm | negotiate. |
| 263 | +-type http_auth_int() :: ?CURLAUTH_UNDEFINED | ?CURLAUTH_BASIC | ?CURLAUTH_DIGEST | ?CURLAUTH_NTLM | ?CURLAUTH_NEGOTIATE. |
263 | 264 | -type pipelining() :: nothing | http1 | multiplex.
|
264 | 265 | -type curlopt_http_version() :: curl_http_version_none |
|
265 | 266 | curl_http_version_1_0 |
|
@@ -663,6 +664,8 @@ opt(http_auth, digest, {Req, Errors}) ->
|
663 | 664 | {Req#req{http_auth=?CURLAUTH_DIGEST}, Errors};
|
664 | 665 | opt(http_auth, ntlm, {Req, Errors}) ->
|
665 | 666 | {Req#req{http_auth=?CURLAUTH_NTLM}, Errors};
|
| 667 | +opt(http_auth, negotiate, {Req, Errors}) -> |
| 668 | + {Req#req{http_auth=?CURLAUTH_NEGOTIATE}, Errors}; |
666 | 669 | opt(username, Username, {Req, Errors}) when is_binary(Username) ->
|
667 | 670 | {Req#req{username=Username}, Errors};
|
668 | 671 | opt(password, Password, {Req, Errors}) when is_binary(Password) ->
|
|
0 commit comments