mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
implemented the sign, trust and validitty functionnality in authGPG. Fix a singleton bug for authGPG and authSSL
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2007 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6055c30832
commit
9c17aced37
8 changed files with 103 additions and 204 deletions
|
@ -318,7 +318,7 @@ bool p3Peers::getPeerDetails(std::string id, RsPeerDetails &d)
|
|||
|
||||
d.issuer = authDetail.issuer;
|
||||
|
||||
d.trusted = AuthGPG::getAuthGPG()->isPGPAuthenticated(AuthSSL::getAuthSSL()->getGPGId(id));
|
||||
d.ownsign = AuthGPG::getAuthGPG()->isPGPSigned(AuthSSL::getAuthSSL()->getGPGId(id));
|
||||
|
||||
|
||||
/* generate */
|
||||
|
@ -954,7 +954,7 @@ int ensureExtension(std::string &name, std::string def_ext)
|
|||
|
||||
|
||||
RsPeerDetails::RsPeerDetails()
|
||||
:trustLvl(0), ownsign(false), trusted(false), state(0), netMode(0),
|
||||
:trustLvl(0), ownsign(false), state(0), netMode(0),
|
||||
lastConnect(0), connectPeriod(0)
|
||||
{
|
||||
return;
|
||||
|
@ -987,8 +987,7 @@ std::ostream &operator<<(std::ostream &out, const RsPeerDetails &detail)
|
|||
out << std::endl;
|
||||
|
||||
out << " trustLvl: " << detail.trustLvl;
|
||||
out << " ownSign: " << detail.ownsign;
|
||||
out << " trusted: " << detail.trusted;
|
||||
out << " ownSign: " << detail.ownsign;
|
||||
out << std::endl;
|
||||
|
||||
out << " state: " << detail.state;
|
||||
|
|
|
@ -769,10 +769,6 @@ int RsInit::GetPGPLogins(std::list<std::string> &pgpIds) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
bool RsInit::getPGPEngineFileName(std::string &fileName) {
|
||||
return AuthGPG::getAuthGPG()->getPGPEngineFileName(fileName);
|
||||
}
|
||||
|
||||
int RsInit::GetPGPLoginDetails(std::string id, std::string &name, std::string &email)
|
||||
{
|
||||
std::cerr << "RsInit::GetPGPLoginDetails for \"" << id << "\"";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue