Home
last modified time | relevance | path

Searched refs:ntlm (Results 1 – 25 of 62) sorted by relevance

123

/third_party/curl/lib/vauth/
Dntlm_sspi.c91 struct ntlmdata *ntlm, in Curl_auth_create_ntlm_type1_message() argument
102 Curl_auth_cleanup_ntlm(ntlm); in Curl_auth_create_ntlm_type1_message()
112 ntlm->token_max = SecurityPackage->cbMaxToken; in Curl_auth_create_ntlm_type1_message()
118 ntlm->output_token = malloc(ntlm->token_max); in Curl_auth_create_ntlm_type1_message()
119 if(!ntlm->output_token) in Curl_auth_create_ntlm_type1_message()
126 result = Curl_create_sspi_identity(userp, passwdp, &ntlm->identity); in Curl_auth_create_ntlm_type1_message()
131 ntlm->p_identity = &ntlm->identity; in Curl_auth_create_ntlm_type1_message()
135 ntlm->p_identity = NULL; in Curl_auth_create_ntlm_type1_message()
138 ntlm->credentials = calloc(1, sizeof(CredHandle)); in Curl_auth_create_ntlm_type1_message()
139 if(!ntlm->credentials) in Curl_auth_create_ntlm_type1_message()
[all …]
Dntlm.c163 struct ntlmdata *ntlm) in ntlm_decode_type2_target() argument
186 free(ntlm->target_info); /* replace any previous data */ in ntlm_decode_type2_target()
187 ntlm->target_info = malloc(target_info_len); in ntlm_decode_type2_target()
188 if(!ntlm->target_info) in ntlm_decode_type2_target()
191 memcpy(ntlm->target_info, &type2[target_info_offset], target_info_len); in ntlm_decode_type2_target()
195 ntlm->target_info_len = target_info_len; in ntlm_decode_type2_target()
247 struct ntlmdata *ntlm) in Curl_auth_decode_ntlm_type2_message() argument
275 ntlm->flags = 0; in Curl_auth_decode_ntlm_type2_message()
285 ntlm->flags = Curl_read32_le(&type2[20]); in Curl_auth_decode_ntlm_type2_message()
286 memcpy(ntlm->nonce, &type2[24], 8); in Curl_auth_decode_ntlm_type2_message()
[all …]
Dvauth.h155 struct ntlmdata *ntlm,
161 struct ntlmdata *ntlm);
167 struct ntlmdata *ntlm,
171 void Curl_auth_cleanup_ntlm(struct ntlmdata *ntlm);
/third_party/curl/lib/
Dcurl_ntlm_wb.c79 static void ntlm_wb_cleanup(struct ntlmdata *ntlm) in ntlm_wb_cleanup() argument
81 if(ntlm->ntlm_auth_hlpr_socket != CURL_SOCKET_BAD) { in ntlm_wb_cleanup()
82 sclose(ntlm->ntlm_auth_hlpr_socket); in ntlm_wb_cleanup()
83 ntlm->ntlm_auth_hlpr_socket = CURL_SOCKET_BAD; in ntlm_wb_cleanup()
86 if(ntlm->ntlm_auth_hlpr_pid) { in ntlm_wb_cleanup()
89 pid_t ret = waitpid(ntlm->ntlm_auth_hlpr_pid, NULL, WNOHANG); in ntlm_wb_cleanup()
90 if(ret == ntlm->ntlm_auth_hlpr_pid || errno == ECHILD) in ntlm_wb_cleanup()
94 kill(ntlm->ntlm_auth_hlpr_pid, SIGTERM); in ntlm_wb_cleanup()
102 kill(ntlm->ntlm_auth_hlpr_pid, SIGKILL); in ntlm_wb_cleanup()
108 ntlm->ntlm_auth_hlpr_pid = 0; in ntlm_wb_cleanup()
[all …]
Dhttp_ntlm.c71 struct ntlmdata *ntlm; in Curl_input_ntlm() local
76 ntlm = proxy ? &conn->proxyntlm : &conn->ntlm; in Curl_input_ntlm()
95 result = Curl_auth_decode_ntlm_type2_message(data, &hdrbuf, ntlm); in Curl_input_ntlm()
147 struct ntlmdata *ntlm; in Curl_output_ntlm() local
163 ntlm = &conn->proxyntlm; in Curl_output_ntlm()
177 ntlm = &conn->ntlm; in Curl_output_ntlm()
198 ntlm->sslContext = conn->sslContext; in Curl_output_ntlm()
215 ntlm, &ntlmmsg); in Curl_output_ntlm()
235 ntlm, &ntlmmsg); in Curl_output_ntlm()
267 Curl_auth_cleanup_ntlm(&conn->ntlm); in Curl_http_auth_cleanup_ntlm()
Dcurl_ntlm_core.c131 #define NTLMv2_BLOB_LEN (44 -16 + ntlm->target_info_len + 4)
544 struct ntlmdata *ntlm, in Curl_ntlm_core_mk_ntlmv2_resp() argument
598 if(ntlm->target_info_len) in Curl_ntlm_core_mk_ntlmv2_resp()
599 memcpy(ptr + 44, ntlm->target_info, ntlm->target_info_len); in Curl_ntlm_core_mk_ntlmv2_resp()
602 memcpy(ptr + 8, &ntlm->nonce[0], 8); in Curl_ntlm_core_mk_ntlmv2_resp()
Dcurl_sasl.c113 Curl_auth_cleanup_ntlm(&conn->ntlm); in Curl_sasl_cleanup()
449 &conn->ntlm, &resp); in Curl_sasl_start()
616 &conn->ntlm, &resp); in Curl_sasl_continue()
624 &conn->ntlm); in Curl_sasl_continue()
627 conn->passwd, &conn->ntlm, in Curl_sasl_continue()
Dcurl_ntlm_core.h66 struct ntlmdata *ntlm,
/third_party/curl/docs/cmdline-opts/
Dntlm-wb.d3 Long: ntlm-wb
6 See-also: ntlm proxy-ntlm
8 Example: --ntlm-wb -u user:password $URL
12 Enables NTLM much in the style --ntlm does, but hand over the authentication
Dntlm.d3 Long: ntlm
6 See-also: proxy-ntlm
10 Example: --ntlm -u user:password $URL
22 --proxy-ntlm.
Dproxy-ntlm.d3 Long: proxy-ntlm
7 Example: --proxy-ntlm --proxy-user user:passwd -x http://proxy $URL
12 proxy. Use --ntlm for enabling NTLM with a remote host.
DMakefile.inc155 ntlm-wb.d \
156 ntlm.d \
190 proxy-ntlm.d \
Ddigest.d6 Mutexed: basic ntlm negotiate
Doauth2-bearer.d10 See-also: basic ntlm digest
Dbasic.d15 --ntlm, --digest, or --negotiate).
Dnegotiate.d6 See-also: basic ntlm anyauth proxy-negotiate
/third_party/curl/tests/data/
Dtest20576 HTTP Negotiate auth (stub ntlm)
11 <!-- First request, expect 401 (ntlm challenge) -->
54 HTTP Negotiate authentication (stub ntlm)
Dtest17028 HTTP POST with --proxy-ntlm and no SSL with no response
31 …way/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -F "dummy=value"
Dtest16238 HTTP GET asking for --proxy-ntlm when some other authentication is required
41 …TIP:%HTTPPORT/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
Dtest109753 HTTP POST using CONNECT with --proxy-ntlm but no auth is required
56 …/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm -d "dummy=value" -p
Dtest17658 HTTP POST --ntlm to server not requiring any auth at all
61 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u auser:apasswd --ntlm -d "junkelijunk"
/third_party/curl/docs/
Doptions-in-versions141 --ntlm 7.10.6
142 --ntlm-wb 7.22.0
177 --proxy-ntlm 7.10.7
/third_party/curl/packages/vms/
Dgnv_curl_configure.sh42 --disable-libtool-lock --with-gssapi --disable-ntlm-wb \
/third_party/curl/tests/server/
Drtspd.c109 bool ntlm; /* Authorization ntlm header found */ member
530 else if(!req->ntlm && in ProcessRequest()
534 req->ntlm = TRUE; /* NTLM found */ in ProcessRequest()
540 else if(!req->ntlm && in ProcessRequest()
544 req->ntlm = TRUE; /* NTLM found */ in ProcessRequest()
683 req->ntlm = FALSE; in get_request()
/third_party/curl/m4/
Dcurl-confopts.m4574 dnl --enable-ntlm-wb or --disable-ntlm-wb, and set
581 AC_ARG_ENABLE(ntlm-wb,
582 AS_HELP_STRING([--enable-ntlm-wb@<:@=FILE@:>@],[Enable NTLM delegation to winbind's ntlm_auth helpe…
583 AS_HELP_STRING([--disable-ntlm-wb],[Disable NTLM delegation to winbind's ntlm_auth helper]),
588 dnl --disable-ntlm-wb option used
596 dnl --enable-ntlm-wb option used

123