mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
Emit the TLS handshake finished signal before we do verification.
This patch moves the emitted "tls handshake finished" signal to before we do validation of the given TLS certificate. This ensures that we display certificate information before we possibly error out and disconnects from the server.
This commit is contained in:
parent
5a04430998
commit
d501a54f4f
1 changed files with 3 additions and 3 deletions
|
|
@ -771,6 +771,9 @@ int irssi_ssl_handshake(GIOChannel *handle)
|
|||
set_peer_cert_chain_info(tls, chan->ssl);
|
||||
set_server_temporary_key_info(tls, chan->ssl);
|
||||
|
||||
// Emit the TLS rec.
|
||||
signal_emit("tls handshake finished", 2, chan->server, tls);
|
||||
|
||||
ret = 1;
|
||||
|
||||
do {
|
||||
|
|
@ -802,9 +805,6 @@ int irssi_ssl_handshake(GIOChannel *handle)
|
|||
}
|
||||
} while (0);
|
||||
|
||||
// Emit the TLS rec.
|
||||
signal_emit("tls handshake finished", 2, chan->server, tls);
|
||||
|
||||
done:
|
||||
tls_rec_free(tls);
|
||||
X509_free(cert);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue