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
SSL connection not working (with fix) #252
Comments
Good catch, an always true trap, Would it not be better to protect the curl_global_init call from opt_benchmark?
I will probably change strncasecmp to strncmp also. |
cpuminer-opt-3.12.6 is release with a fix for this issue. It corrects the logic and uses strncasecmp The fix is missing from the release notes. Please test and post results. Also, if you cold, please explain the impact of the bug. stratum+tcps was recently tested and If the miner silently fell back to an isecure connection without warning when the user explicitly |
There is a problem with v3.12.6, it broke benchmark. Another fix will be in the next release. |
I was testing one algo on Rplant pool which supports SSL connection and another cpuminers including their fork worked fine, while your versions gave this error:
It was related to libcurl and CURL_GLOBAL_SSL. |
Thanks for testing. It looks like the fix made things worse (#254). Try this code change, I just tested it with benchmark and SSL. cpu-miner.c:3574 old flags = !opt_benchmark new flags = CURL_GLOBAL_ALL; |
maybe !strncasecmp( rpc_url, "https:", 6 ) || !strncasecmp( rpc_url, "stratum+tcps://", 15 ) |
Thanks @rplant8. I was trying to be too clever with the boolean algebra, was distracted by other issues and didn't The above change has been tested with standard stratum, SSL and benchmark. |
cpuminer-opt-3.12.6.1 is released with the fix. It should work now, please let me know otherwise. |
No problems reported, closing. |
Due to bug in code curl is always initialized without SSL
BUGGED:
FIXED:
The text was updated successfully, but these errors were encountered: