Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Question: How to establish the session for recipient? #123

Open
Arrfaylloordss opened this issue Feb 22, 2019 · 1 comment
Open

Question: How to establish the session for recipient? #123

Arrfaylloordss opened this issue Feb 22, 2019 · 1 comment

Comments

@Arrfaylloordss
Copy link

Arrfaylloordss commented Feb 22, 2019

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);

@blipp
Copy link

blipp commented Aug 6, 2019

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants