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:
parent
efc3d91247
commit
439f674157
1 changed files with 1 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue