1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Use strerror for Windows sake. Fixes #733

This commit is contained in:
Evan Phoenix 2015-07-14 22:07:37 -07:00
parent efc3d91247
commit 439f674157

View file

@ -212,8 +212,7 @@ void raise_error(SSL* ssl, int result) {
int verify_err = SSL_get_verify_result(ssl); int verify_err = SSL_get_verify_result(ssl);
if(SSL_ERROR_SYSCALL == ssl_err) { if(SSL_ERROR_SYSCALL == ssl_err) {
strerror_r(err, buf, sizeof(buf)); snprintf(msg, sizeof(msg), "System error: %s - %d", strerror(err), err);
snprintf(msg, sizeof(msg), "System error: %s - %d", buf, err);
} else if(SSL_ERROR_SSL == ssl_err) { } else if(SSL_ERROR_SSL == ssl_err) {
if(X509_V_OK != verify_err) { if(X509_V_OK != verify_err) {