about summary refs log tree commit diff stats
path: root/src/omemo
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-14 09:57:57 +0100
committerPaul Fariello <paul@fariello.eu>2019-04-10 17:12:31 +0200
commit197e098f4b336945d0e76f31a74fc671589afcd1 (patch)
treed017533cc24d9300c6f9f23a353d60cdc8bc9b9a /src/omemo
parent4826da3aa6ac36208b35e0988b14ea7f767f7549 (diff)
downloadprofani-tty-197e098f4b336945d0e76f31a74fc671589afcd1.tar.gz
Log device_id on startup
Diffstat (limited to 'src/omemo')
-rw-r--r--src/omemo/omemo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index 6f22a50a..4937c4e6 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -214,6 +214,7 @@ omemo_generate_crypto_materials(ProfAccount *account)
 
     gcry_randomize(&omemo_ctx.device_id, 4, GCRY_VERY_STRONG_RANDOM);
     omemo_ctx.device_id &= 0x7fffffff;
+    log_info("OMEMO: device id: %d", omemo_ctx.device_id);
 
     signal_protocol_key_helper_generate_identity_key_pair(&omemo_ctx.identity_key_pair, omemo_ctx.signal);
     signal_protocol_key_helper_generate_registration_id(&omemo_ctx.registration_id, 0, omemo_ctx.signal);
@@ -959,6 +960,7 @@ static void
 load_identity(void)
 {
     omemo_ctx.device_id = g_key_file_get_uint64(omemo_ctx.identity_keyfile, OMEMO_STORE_GROUP_IDENTITY, OMEMO_STORE_KEY_DEVICE_ID, NULL);
+    log_info("OMEMO: device id: %d", omemo_ctx.device_id);
     omemo_ctx.registration_id = g_key_file_get_uint64(omemo_ctx.identity_keyfile, OMEMO_STORE_GROUP_IDENTITY, OMEMO_STORE_KEY_REGISTRATION_ID, NULL);
 
     char *identity_key_public_b64 = g_key_file_get_string(omemo_ctx.identity_keyfile, OMEMO_STORE_GROUP_IDENTITY, OMEMO_STORE_KEY_IDENTITY_KEY_PUBLIC, NULL);