It was the only one prefixed with "CO_ERR_", making it harder to batch
process and to look up. It was added in 2.5 by commit
61944f7a73 ("MINOR:
ssl: Set connection error code in case of SSL read or write fatal failure")
so it can be backported as far as 2.6 if needed to help integrate other
patches.
CO_ER_SOCKS4_DENY, /* SOCKS4 Proxy deny the request */
CO_ER_SOCKS4_ABORT, /* SOCKS4 Proxy handshake aborted by server */
- CO_ERR_SSL_FATAL, /* SSL fatal error during a SSL_read or SSL_write */
+ CO_ER_SSL_FATAL, /* SSL fatal error during a SSL_read or SSL_write */
CO_ER_REVERSE, /* Error during reverse connect */
};
case CO_ER_SOCKS4_DENY: return "SOCKS4 Proxy deny the request";
case CO_ER_SOCKS4_ABORT: return "SOCKS4 Proxy handshake aborted by server";
- case CO_ERR_SSL_FATAL: return "SSL fatal error";
+ case CO_ER_SSL_FATAL: return "SSL fatal error";
case CO_ER_REVERSE: return "Reverse connect failure";
}
struct ssl_sock_ctx *ctx = conn_get_ssl_sock_ctx(conn);
if (ctx && !ctx->error_code)
ctx->error_code = ERR_peek_error();
- conn->err_code = CO_ERR_SSL_FATAL;
+ conn->err_code = CO_ER_SSL_FATAL;
}
/* For SSL_ERROR_SYSCALL, make sure to clear the error
* stack before shutting down the connection for
if (ctx && !ctx->error_code)
ctx->error_code = ERR_peek_error();
- conn->err_code = CO_ERR_SSL_FATAL;
+ conn->err_code = CO_ER_SSL_FATAL;
}
goto out_error;
}