libsignal-protocol-c icon indicating copy to clipboard operation
libsignal-protocol-c copied to clipboard

Question: How to establish the session for recipient?

Open Arrfaylloordss opened this issue 6 years ago • 1 comments

Hello! I've managed to follow the guide from readme file and created the session for initiator using session pre key bundle (using session builder). Then initiator encrypt the pre_key_signal_message for recipient, but I can't find a function to create session from the initiator's pre_key_signal_message.

The only function you have is:

int session_builder_process_pre_key_bundle(session_builder *builder, session_pre_key_bundle *bundle);

I guess there should be something like (and the description in session_builder.h has a hint):

int session_builder_process_pre_key_signal_message(session_builder *builder, pre_key_signal_message *msg);

Arrfaylloordss avatar Feb 22 '19 11:02 Arrfaylloordss

Try to look at the test cases, for example https://github.com/signalapp/libsignal-protocol-c/blob/master/tests/test_simultaneous_initiate.c#L84, to get an idea. Hope this helps!

blipp avatar Aug 06 '19 16:08 blipp