mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
remove SSL_get_verify_result() check.
If peer verification is turned on this becomes part of the handshake process anyway and SSL_accept() will fail when appropriate.
This commit is contained in:
parent
3f083d6126
commit
39467847fb
@ -305,18 +305,6 @@ kore_connection_handle(struct connection *c)
|
||||
c->cert = NULL;
|
||||
}
|
||||
|
||||
r = SSL_get_verify_result(c->ssl);
|
||||
switch (r) {
|
||||
case X509_V_OK:
|
||||
case X509_V_ERR_CRL_NOT_YET_VALID:
|
||||
case X509_V_ERR_CRL_HAS_EXPIRED:
|
||||
break;
|
||||
default:
|
||||
kore_debug("SSL_get_verify_result(): %d, %s",
|
||||
r, ssl_errno_s);
|
||||
return (KORE_RESULT_ERROR);
|
||||
}
|
||||
|
||||
if (c->owner != NULL) {
|
||||
listener = (struct listener *)c->owner;
|
||||
if (listener->connect != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user