Lines Matching defs:auth
364 static bool pickoneauth(struct auth *pick, unsigned long mask)
538 streamclose(conn, "Mid-auth HTTP and much data left to send");
557 * which one (if any) to use. It will set 'newurl' if an auth method was
611 /* In case this is GSS auth, the newurl field is already allocated so
645 * Output the correct authentication header depending on the auth type
651 struct auth *authstatus,
656 const char *auth = NULL;
666 auth = "AWS_SIGV4";
675 auth = "Negotiate";
684 auth = "NTLM";
693 auth = "NTLM_WB";
702 auth = "Digest";
722 auth = "Basic";
728 /* NOTE: this function should set 'done' TRUE, as the other auth
738 auth = "Bearer";
744 /* NOTE: this function should set 'done' TRUE, as the other auth
750 if(auth) {
752 infof(data, "%s auth using %s with user '%s'",
753 proxy ? "Proxy" : "Server", auth,
760 infof(data, "Server auth using %s with user '%s'",
761 auth, data->state.aptr.user ?
796 struct auth *authhost;
797 struct auth *authproxy;
910 const char *auth) /* the first non-space */
927 struct auth *authp;
959 while(*auth) {
961 if(checkprefix("Negotiate", auth) && is_valid_auth_separator(auth[9])) {
968 CURLcode result = Curl_input_negotiate(data, conn, proxy, auth);
975 /* we received a GSS auth token and we dealt with it fine */
987 if(checkprefix("NTLM", auth) && is_valid_auth_separator(auth[4])) {
997 CURLcode result = Curl_input_ntlm(data, proxy, auth);
1007 result = Curl_input_ntlm_wb(data, conn, proxy, auth);
1025 if(checkprefix("Digest", auth) && is_valid_auth_separator(auth[6])) {
1027 infof(data, "Ignoring duplicate digest auth header.");
1038 result = Curl_input_digest(data, proxy, auth);
1048 if(checkprefix("Basic", auth) &&
1049 is_valid_auth_separator(auth[5])) {
1064 if(checkprefix("Bearer", auth) &&
1065 is_valid_auth_separator(auth[6])) {
1088 while(*auth && *auth != ',') /* read up to the next comma */
1089 auth++;
1090 if(*auth == ',') /* if we're on a comma, skip it */
1091 auth++;
1092 while(*auth && ISSPACE(*auth))
1093 auth++;
1542 * a chance to be set back to true when we output the next auth header */
1812 /* while doing auth neg, don't allow the custom length since
1958 /* while doing auth neg, don't allow the custom length since
2414 /* don't enable chunked during auth neg */
2544 /* we allow replacing this header if not during auth negotiation,
2613 /* we allow replacing this header if not during auth negotiation,
2708 /* Chunky upload is selected and we're negotiating auth still, send
3649 char *auth = Curl_copy_header_value(headp);
3650 if(!auth)
3653 result = Curl_http_input_auth(data, proxy, auth);
3655 free(auth);
3663 struct auth *authp = &data->state.authhost;
4113 If we are closing the connection it may result auth failure. */
4120 infof(data, "Connection closure while negotiating auth (HTTP 1.0?)");
4130 infof(data, "Connection closure while negotiating auth (HTTP 1.0?)");
4184 * use. It will set 'newurl' if an auth method was picked. */