summaryrefslogtreecommitdiff
path: root/libs/libaxolotl/src/key_helper.c
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-04-24 12:01:36 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-04-24 12:01:36 +0300
commit0b1150d20f49eb0ec82b57ab3fac727f346c0da0 (patch)
tree387c1d63df86419dd92f2c6adef701567c6bf91f /libs/libaxolotl/src/key_helper.c
parent0998b447f51c40d2300db7f673e080de20e8f0be (diff)
libs:
updated libsignal-c protocols: jabber: omemo: used 31bit device id instead of 32bit (32bit conflicts with conversations, not xep compliant)
Diffstat (limited to 'libs/libaxolotl/src/key_helper.c')
-rw-r--r--libs/libaxolotl/src/key_helper.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/libs/libaxolotl/src/key_helper.c b/libs/libaxolotl/src/key_helper.c
index 80deb6ab08..e2de8d48fe 100644
--- a/libs/libaxolotl/src/key_helper.c
+++ b/libs/libaxolotl/src/key_helper.c
@@ -201,29 +201,6 @@ void signal_protocol_key_helper_key_list_free(signal_protocol_key_helper_pre_key
}
}
-int signal_protocol_key_helper_generate_last_resort_pre_key(session_pre_key **pre_key, signal_context *global_context)
-{
- int result = 0;
- session_pre_key *result_pre_key = 0;
- ec_key_pair *ec_pair = 0;
-
- assert(global_context);
-
- result = curve_generate_key_pair(global_context, &ec_pair);
- if(result < 0) {
- goto complete;
- }
-
- result = session_pre_key_create(&result_pre_key, PRE_KEY_MEDIUM_MAX_VALUE, ec_pair);
-
-complete:
- SIGNAL_UNREF(ec_pair);
- if(result >= 0) {
- *pre_key = result_pre_key;
- }
- return result;
-}
-
int signal_protocol_key_helper_generate_signed_pre_key(session_signed_pre_key **signed_pre_key,
const ratchet_identity_key_pair *identity_key_pair,
uint32_t signed_pre_key_id,