ssld: Request fingerprint when connecting to the server, not just on inbound connections.
This commit is contained in:
parent
dc34aae05e
commit
77306edd39
|
@ -702,8 +702,16 @@ static void
|
||||||
ssl_process_connect_cb(rb_fde_t *F, int status, void *data)
|
ssl_process_connect_cb(rb_fde_t *F, int status, void *data)
|
||||||
{
|
{
|
||||||
conn_t *conn = data;
|
conn_t *conn = data;
|
||||||
|
char buf[5 + RB_SSL_CERTFP_LEN];
|
||||||
|
|
||||||
if(status == RB_OK)
|
if(status == RB_OK)
|
||||||
{
|
{
|
||||||
|
if(rb_get_ssl_certfp(F, &buf[5]))
|
||||||
|
{
|
||||||
|
buf[0] = 'F';
|
||||||
|
int32_to_buf(&buf[1], conn->id);
|
||||||
|
mod_cmd_write_queue(conn->ctl, buf, sizeof buf);
|
||||||
|
}
|
||||||
conn_mod_read_cb(conn->mod_fd, conn);
|
conn_mod_read_cb(conn->mod_fd, conn);
|
||||||
conn_plain_read_cb(conn->plain_fd, conn);
|
conn_plain_read_cb(conn->plain_fd, conn);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue