-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Make CURLOPT_CAINFO work on Windows 7 #4761
Conversation
This should fix the issue reported here #3711 |
9be23de
to
3e7d828
Compare
Neat. Does this handle wildcards like *.foo.amazon.com? /cc @jeroen |
3e7d828
to
0204c38
Compare
@jay It does handle wildcards. Actually, the logic(Curl_cert_hostcheck) to handle those hasn't changed. |
AFAICT, the failing two checks seem to be flaky. |
0204c38
to
f2f89f9
Compare
Yes. I've set it to re-run the failed checks. |
Thanks! Down to one failing check now. |
CERT_NAME_SEARCH_ALL_NAMES_FLAG doesn't exist before Windows 8. As a result CertGetNameString doesn't quite work on those versions of Windows. This change provides an alternative solution for CertGetNameString by iterating through CERT_ALT_NAME_INFO for earlier versions of Windows.
Thanks |
Follow-up to 29e40a6 from two days ago, which added that feature for Windows 7 and earlier. The bug only occurred in same. Ref: #4761
I missed a bug, a char * was used to advance a tchar * which caused problems in Unicode builds. Fixed in 16da8bc. |
CERT_NAME_SEARCH_ALL_NAMES_FLAG doesn't exist before Windows 8. As a
result CertGetNameString doesn't quite work on those versions of
Windows. This change provides an alternative solution for
CertGetNameString by iterating through CERT_ALT_NAME_INFO for earlier
versions of Windows.