mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
TLS Stream: remove incorrect/obsolete INSIST()s from tls_do_bio()
With the changes to tls_try_handshake() made in
2846888c57
there are some incorrect
INSISTS() related to handshake handling which better to be removed.
This commit is contained in:
@@ -524,20 +524,15 @@ tls_do_bio(isc_nmsocket_t *sock, isc_region_t *received_data,
|
|||||||
hs_result != ISC_R_SUCCESS)
|
hs_result != ISC_R_SUCCESS)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* The accept callback has been called
|
* The accept/connect callback has been
|
||||||
* unsuccessfully. Let's try to shut
|
* called unsuccessfully. Let's try to
|
||||||
* down the TLS connection gracefully.
|
* shut down the TLS connection
|
||||||
|
* gracefully.
|
||||||
*/
|
*/
|
||||||
INSIST(SSL_is_init_finished(
|
INSIST(SSL_is_init_finished(
|
||||||
sock->tlsstream.tls) ==
|
sock->tlsstream.tls) ==
|
||||||
1);
|
1);
|
||||||
INSIST(!sock->client);
|
|
||||||
finish = true;
|
finish = true;
|
||||||
} else if (sock->tlsstream.state == TLS_IO &&
|
|
||||||
hs_result == ISC_R_SUCCESS &&
|
|
||||||
!sock->tlsstream.server)
|
|
||||||
{
|
|
||||||
INSIST(sock->client);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (send_data != NULL) {
|
} else if (send_data != NULL) {
|
||||||
|
Reference in New Issue
Block a user