Some SRP unit tests are failing
Looking at the nightly build logs (https://openssl-sanity.cisco.com:8443/view/libest/job/libest_master/), some of the SRP unit tests are failing. You'll need to scroll to the bottom of the build log to see the failures.
Upon further investigation, this is a result of using Curl 7.42.1 for testing. Curl has changed behavior when SRP is enabled. This commit improves integration with Curl 7.42.1: e2cd5a31ddaef972f7d7b914f31780ec6babb4ff
However, Curl still needs to be patched to pass these SRP test cases. It appears Curl has changed the behavior of server certificate verification. Curl now always attempts to verify the server certificate, regardless of the CURLOPT_SSL_VERIFYHOST setting. Also, when SRP is used, the server doesn't even need to provide a certificate. The bug is in Curl 7.42.1 lib/vtls/openssl.c within the servercert() function. The following logic fixes the issue:
if(!connssl->server_cert) {
if(strict) {
failf(data, "SSL: couldn't get peer certificate!");
return CURLE_PEER_FAILED_VERIFICATION;
}
else {
return CURLE_OK;
}
}