diff options
| author | Anton <anton@picapica> | 2019-03-06 18:07:59 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-03-06 18:07:59 +0400 |
| commit | 73c06c18c5c6401ee08748ebed08c8896f63e344 (patch) | |
| tree | b832d62390181848e8d0b0efc7c5b9954c50e2b6 /PICA_client.c | |
| parent | 032eb1f23992568e3ddd7946f94cd69a464167ba (diff) | |
| download | pica-pica-73c06c18c5c6401ee08748ebed08c8896f63e344.tar.gz pica-pica-73c06c18c5c6401ee08748ebed08c8896f63e344.zip | |
pica-client: display connection status, ciphersuite in chat window
Diffstat (limited to 'PICA_client.c')
| -rw-r--r-- | PICA_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PICA_client.c b/PICA_client.c index 064a7f7..bf274ef 100644 --- a/PICA_client.c +++ b/PICA_client.c @@ -506,7 +506,7 @@ static unsigned int procmsg_C2CCONNREQ(unsigned char* buf, unsigned int nb, void cc->state = PICA_C2C_STATE_ACTIVE; - callbacks.c2c_established_cb(cc->peer_id); + callbacks.c2c_established_cb(cc->peer_id, SSL_get_cipher_name(cc->ssl)); if (cc->conn->directc2c_config == PICA_DIRECTC2C_CFG_ALLOWINCOMING) PICA_send_directc2caddrlist(cc); @@ -542,7 +542,7 @@ static unsigned int procmsg_INITRESP_c2c(unsigned char* buf, unsigned int nb, vo { case PICA_PROTO_INITRESPOK: cc->state = PICA_C2C_STATE_ACTIVE; - callbacks.c2c_established_cb(cc->peer_id); + callbacks.c2c_established_cb(cc->peer_id, SSL_get_cipher_name(cc->ssl)); if (cc->conn->directc2c_config == PICA_DIRECTC2C_CFG_ALLOWINCOMING) PICA_send_directc2caddrlist(cc); |
