Skip to content
Snippets Groups Projects
  • Sébastien Blin's avatar
    90a5ea27
    certstore: make TrustStore thread safe · 90a5ea27
    Sébastien Blin authored
    Because multiple threads can access the TrustStore to update/add/rm
    certificates, introduce a mutex to protect the maps.
    
    Because a lot of methods only access the maps in read-only, the
    mutex is mutable. Moreover, because isAllowed will check the whole
    chain, to avoid multiple lock/unlocks, the mutex is a recursive one.
    
    Change-Id: Iec197221e2eefba4a7192f36f1a9a952f2533778
    GitLab: #690
    90a5ea27
    History
    certstore: make TrustStore thread safe
    Sébastien Blin authored
    Because multiple threads can access the TrustStore to update/add/rm
    certificates, introduce a mutex to protect the maps.
    
    Because a lot of methods only access the maps in read-only, the
    mutex is mutable. Moreover, because isAllowed will check the whole
    chain, to avoid multiple lock/unlocks, the mutex is a recursive one.
    
    Change-Id: Iec197221e2eefba4a7192f36f1a9a952f2533778
    GitLab: #690
Code owners
Assign users and groups as approvers for specific file changes. Learn more.