Lines Matching refs:result

163   CURLcode result = CURLE_OK;  in Curl_sasl_parse_url_auth_option()  local
181 result = CURLE_URL_MALFORMAT; in Curl_sasl_parse_url_auth_option()
184 return result; in Curl_sasl_parse_url_auth_option()
276 CURLcode result = CURLE_OK; in get_server_message() local
278 result = sasl->params->getmessage(data, out); in get_server_message()
279 if(!result && (sasl->params->flags & SASL_FLAG_BASE64)) { in get_server_message()
287 result = Curl_base64_decode(serverdata, &msg, &msglen); in get_server_message()
288 if(!result) in get_server_message()
292 return result; in get_server_message()
299 CURLcode result = CURLE_OK; in build_message() local
310 result = Curl_base64_encode((const char *) Curl_bufref_ptr(msg), in build_message()
312 if(!result) in build_message()
317 return result; in build_message()
346 CURLcode result = CURLE_OK; in Curl_sasl_start() local
392 result = Curl_auth_create_gssapi_user_message(data, conn->user, in Curl_sasl_start()
411 result = Curl_auth_gsasl_start(data, conn->user, in Curl_sasl_start()
413 if(result == CURLE_OK && (force_ir || data->set.sasl_ir)) in Curl_sasl_start()
414 result = Curl_auth_gsasl_token(data, &nullmsg, &conn->gsasl, &resp); in Curl_sasl_start()
424 result = Curl_auth_gsasl_start(data, conn->user, in Curl_sasl_start()
426 if(result == CURLE_OK && (force_ir || data->set.sasl_ir)) in Curl_sasl_start()
427 result = Curl_auth_gsasl_token(data, &nullmsg, &conn->gsasl, &resp); in Curl_sasl_start()
453 result = Curl_auth_create_ntlm_type1_message(data, in Curl_sasl_start()
468 result = Curl_auth_create_oauth_bearer_message(conn->user, in Curl_sasl_start()
480 result = Curl_auth_create_xoauth_bearer_message(conn->user, in Curl_sasl_start()
490 result = Curl_auth_create_plain_message(conn->sasl_authzid, in Curl_sasl_start()
505 if(!result && mech) { in Curl_sasl_start()
508 result = build_message(sasl, &resp); in Curl_sasl_start()
514 if(!result) in Curl_sasl_start()
515 result = sasl->params->sendauth(data, mech, &resp); in Curl_sasl_start()
517 if(!result) { in Curl_sasl_start()
524 return result; in Curl_sasl_start()
535 CURLcode result = CURLE_OK; in Curl_sasl_continue() local
557 result = CURLE_LOGIN_DENIED; in Curl_sasl_continue()
560 return result; in Curl_sasl_continue()
573 return result; in Curl_sasl_continue()
575 result = Curl_auth_create_plain_message(conn->sasl_authzid, in Curl_sasl_continue()
590 result = get_server_message(sasl, data, &serverdata); in Curl_sasl_continue()
591 if(!result) in Curl_sasl_continue()
592 result = Curl_auth_gsasl_token(data, &serverdata, &conn->gsasl, &resp); in Curl_sasl_continue()
593 if(!result && Curl_bufref_len(&resp) > 0) in Curl_sasl_continue()
599 result = get_server_message(sasl, data, &serverdata); in Curl_sasl_continue()
600 if(!result) in Curl_sasl_continue()
601 result = Curl_auth_create_cram_md5_message(&serverdata, conn->user, in Curl_sasl_continue()
605 result = get_server_message(sasl, data, &serverdata); in Curl_sasl_continue()
606 if(!result) in Curl_sasl_continue()
607 result = Curl_auth_create_digest_md5_message(data, &serverdata, in Curl_sasl_continue()
610 if(!result && (sasl->params->flags & SASL_FLAG_BASE64)) in Curl_sasl_continue()
621 result = Curl_auth_create_ntlm_type1_message(data, in Curl_sasl_continue()
629 result = get_server_message(sasl, data, &serverdata); in Curl_sasl_continue()
630 if(!result) in Curl_sasl_continue()
631 result = Curl_auth_decode_ntlm_type2_message(data, &serverdata, in Curl_sasl_continue()
633 if(!result) in Curl_sasl_continue()
634 result = Curl_auth_create_ntlm_type3_message(data, conn->user, in Curl_sasl_continue()
642 result = Curl_auth_create_gssapi_user_message(data, conn->user, in Curl_sasl_continue()
652 result = get_server_message(sasl, data, &serverdata); in Curl_sasl_continue()
653 if(!result) { in Curl_sasl_continue()
657 result = Curl_auth_create_gssapi_user_message(data, NULL, NULL, in Curl_sasl_continue()
667 result = Curl_auth_create_gssapi_security_message(data, in Curl_sasl_continue()
676 result = get_server_message(sasl, data, &serverdata); in Curl_sasl_continue()
677 if(!result) in Curl_sasl_continue()
678 result = Curl_auth_create_gssapi_security_message(data, in Curl_sasl_continue()
689 result = Curl_auth_create_oauth_bearer_message(conn->user, in Curl_sasl_continue()
699 result = Curl_auth_create_xoauth_bearer_message(conn->user, in Curl_sasl_continue()
710 return result; in Curl_sasl_continue()
731 result = CURLE_UNSUPPORTED_PROTOCOL; /* Should not happen */ in Curl_sasl_continue()
737 switch(result) { in Curl_sasl_continue()
740 result = sasl->params->cancelauth(data, sasl->curmech); in Curl_sasl_continue()
744 result = build_message(sasl, &resp); in Curl_sasl_continue()
745 if(!result) in Curl_sasl_continue()
746 result = sasl->params->contauth(data, sasl->curmech, &resp); in Curl_sasl_continue()
758 return result; in Curl_sasl_continue()