libsignal-protocol-c
libsignal-protocol-c copied to clipboard
Question: How to establish the session for recipient?
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);
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!