diff options
| author | Anton <anton@picapica> | 2019-03-06 19:26:22 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2019-03-06 19:26:22 +0400 |
| commit | fc8c3b76068530a288c3fcd95f9c651996352402 (patch) | |
| tree | 003c852c616a38b97d0d795df522dc0703da7d62 /PICA_client.c | |
| parent | 73c06c18c5c6401ee08748ebed08c8896f63e344 (diff) | |
| download | pica-pica-fc8c3b76068530a288c3fcd95f9c651996352402.tar.gz pica-pica-fc8c3b76068530a288c3fcd95f9c651996352402.zip | |
add new callback direct_c2c_established_cb()
Diffstat (limited to 'PICA_client.c')
| -rw-r--r-- | PICA_client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/PICA_client.c b/PICA_client.c index bf274ef..6949081 100644 --- a/PICA_client.c +++ b/PICA_client.c @@ -2428,6 +2428,7 @@ static void process_directc2c(struct PICA_c2n *c2n, fd_set *rfds, fd_set *wfds) } else { + callbacks.direct_c2c_established_cb(c2c->peer_id, SSL_get_cipher_name(d->ssl)); c2c->directc2c_state = PICA_DIRECTC2C_STATE_ACTIVE; } @@ -2541,6 +2542,7 @@ static void process_directc2c(struct PICA_c2n *c2n, fd_set *rfds, fd_set *wfds) case PICA_DIRECTC2C_CONNSTATE_ACTIVE: c2c->directc2c_state = PICA_DIRECTC2C_STATE_ACTIVE; + callbacks.direct_c2c_established_cb(c2c->peer_id, SSL_get_cipher_name(d->ssl)); break; } |
