diff options
author | mjentsch <mtthsjntsch@gmail.com> | 2015-11-08 22:46:31 +0300 |
---|---|---|
committer | mjentsch <mtthsjntsch@gmail.com> | 2015-11-08 22:46:31 +0300 |
commit | 4fff59712e3c7719dcc21d3c35610638304bd263 (patch) | |
tree | 1e12e60e8e4bb346a4d4e9653fea320569405c4f /binlog.c | |
parent | e1abc83657d424e07b91b10dac997b01cca32a12 (diff) |
Set key fingerprint when initializing secret chat with binlog
Diffstat (limited to 'binlog.c')
-rw-r--r-- | binlog.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -868,6 +868,10 @@ void bl_do_encr_chat (struct tgl_state *TLS, int id, long long *access_hash, int memcpy (U->key, key, 256); } + if (first_key_id) { + memcpy (U->first_key_sha, first_key_id, 20); + } + if (state) { if (U->state == sc_waiting && *state == sc_ok) { tgl_do_create_keys_end (TLS, U); |