mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Make SSL-only friend criteria stricter
This commit is contained in:
parent
5660c73175
commit
4e3ac4a9f4
3 changed files with 13 additions and 1 deletions
|
@ -1667,6 +1667,9 @@ bool PGPHandler::getGPGFilteredList(std::list<RsPgpId>& list,bool (*filter)(cons
|
|||
return true ;
|
||||
}
|
||||
|
||||
bool PGPHandler::isPgpPubKeyAvailable(const RsPgpId &id)
|
||||
{ return _public_keyring_map.find(id) != _public_keyring_map.end(); }
|
||||
|
||||
bool PGPHandler::isGPGId(const RsPgpId &id)
|
||||
{
|
||||
return _public_keyring_map.find(id) != _public_keyring_map.end() ;
|
||||
|
|
|
@ -148,6 +148,15 @@ class PGPHandler
|
|||
|
||||
const PGPCertificateInfo *getCertificateInfo(const RsPgpId& id) const ;
|
||||
|
||||
/**
|
||||
* @brief Check if a PGP publick key is available
|
||||
* @param id id of the key to check
|
||||
* @return true if the public key for the given id is available,
|
||||
* false otherwise
|
||||
*/
|
||||
bool isPgpPubKeyAvailable(const RsPgpId& id);
|
||||
|
||||
RS_DEPRECATED_FOR(isPgpPubKeyAvailable)
|
||||
bool isGPGId(const RsPgpId &id);
|
||||
bool isGPGSigned(const RsPgpId &id);
|
||||
bool isGPGAccepted(const RsPgpId &id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue