Skip to content
Snippets Groups Projects
Commit 7a0310b7 authored by Adrien Béraud's avatar Adrien Béraud Committed by gerrit2
Browse files

ringaccount: factor peer authorization check

Previous implementation was duplicating authorization
checks between incoming call and message.
Add two methods to factorize the checks:
* foundPeerDevice will check the validity of the peer certificate chain
* onPeerMessage will check the validity of the peer certificate chain,
  perform authorization checks using the account trust store (async),
  and call the provided callback if the peer is authorized.

Change-Id: I80833a73c6842c9e84677fcaaef2a543745e005b
parent 1cc38109
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment