Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormjentsch <mtthsjntsch@gmail.com>2015-11-08 22:46:31 +0300
committermjentsch <mtthsjntsch@gmail.com>2015-11-08 22:46:31 +0300
commit4fff59712e3c7719dcc21d3c35610638304bd263 (patch)
tree1e12e60e8e4bb346a4d4e9653fea320569405c4f /binlog.c
parente1abc83657d424e07b91b10dac997b01cca32a12 (diff)
Set key fingerprint when initializing secret chat with binlog
Diffstat (limited to 'binlog.c')
-rw-r--r--binlog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/binlog.c b/binlog.c
index 9fc2f6b..70558b2 100644
--- a/binlog.c
+++ b/binlog.c
@@ -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);