Skip to content
Snippets Groups Projects
Commit 33447cc6 authored by Adrien Béraud's avatar Adrien Béraud Committed by Nicolas Jager
Browse files

certstore: re-factor peer certificate authorization routine


* cleanup CertStore to remove unused features
* ensure that at least one certificate in the chain is allowed
  if public calls are disabled and that no certificate in the chain
  is banned, additionally to the chain match.
  This prevent allowing any certificate signed by the CA of a contact,
  while still supporting authorization through a CA (with
  setCertificateStatus).
* use dht::crypto::TrustList when relevant (requires OpenDHT bump)
* rebuild trust list when appropriate as GnuTLS' trust list
  doesn't allow "unbanning". This fix issues when banning then allowing
  a certificate during the same session

Change-Id: I8ea28f3a673eebf2174e8fab3a413c20630b28ca
Reviewed-by: default avatarNicolas Jäger <nicolas.jager@savoirfairelinux.com>
parent d0cb3378
No related branches found
No related tags found
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