-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#3726 vauth: return CURLE_OUT_OF_MEMORY only in case of out of memory #3848
Conversation
…mory; return CURLE_RECV_ERROR in case of other errors
|
You are correct. I have not checked where to use |
The problem is that the failure might not be network-related at all. I think that the most common case, which #3726 is about, is just missing credential cache and/or missing Kerberos configuration, which are both local failure. |
There are a lot of return codes from gssapi and sspi. Maybe there is a need for a mapping of those error codes to cURL error codes? |
Maybe it would be better to have a generic CURLE_AUTH_ERROR or something? We seem to have a lot of these and recv error is not entirely correct, though I'm also of the opinion that it's better than an out of memory error. |
@jay I agree. libcurl currently does not have any suitable error code for authentication failures triggered by local environment. |
I close this PR, as the based issue has been resolved, and I currently have not the time to investigate deeper into the different error situations / error codes to distinct between CURLE_LOGIN_DENIED/CURLE_RECV_ERROR/CURLE_SEND_ERROR/CURLE_AUTH_ERROR etc. as all the cases probably need to be tested in detail on all platforms. |
- Add new error code CURLE_AUTH_ERROR. Prior to this change auth function errors were signaled by CURLE_OUT_OF_MEMORY and CURLE_RECV_ERROR, and neither one was technically correct. Ref: curl#3848 Co-authored-by: Dominik Hölzl Closes #xxxx
#3726 vauth: return CURLE_OUT_OF_MEMORY only in case of out of memory; return CURLE_RECV_ERROR in case of other errors