Skip to content
  • Adrien Béraud's avatar
    ringaccount: factor peer authorization check · 60222051
    Adrien Béraud authored
    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: I237d3ccae4c6adba232564a05106ff77dc9cd9d8
    60222051