Page MenuHomePhabricator

[native] update session creation code to handle versioning
ClosedPublic

Authored by kamil on Apr 8 2024, 7:46 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 20, 12:08 AM
Unknown Object (File)
Mon, May 20, 12:08 AM
Unknown Object (File)
Mon, May 20, 12:08 AM
Unknown Object (File)
Tue, May 7, 4:13 AM
Unknown Object (File)
Mon, Apr 22, 2:28 AM
Unknown Object (File)
Apr 21 2024, 1:42 AM
Unknown Object (File)
Apr 16 2024, 3:28 PM
Unknown Object (File)
Apr 15 2024, 11:37 PM
Subscribers

Details

Summary

This code:

  1. Updates contentInboundSessionCreator to decide whether to accept new or keep old session depending on sessionVersion
  2. Updates contentOutboundSessionCreator to return the session version (right now by default we override session and bump counter).

Depends on D11586

Test Plan
  1. Make sure session creation works
  2. Outbound session creation cause bumping counter
  3. Inbound session creation success or throw an appropriate error (tested all cases)

Diff Detail

Repository
rCOMM Comm
Branch
publish-session-resetting
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Apr 9 2024, 6:02 AM
kamil added inline comments.
native/cpp/CommonCpp/CryptoTools/CryptoModule.cpp
265

handling this param is changed in D11595 - in this diff can be ignored

This revision is now accepted and ready to land.Apr 10 2024, 8:35 AM