added filtering of private key for login window, and fixed uid at cert creation time

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-OpenPGP@5282 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-07-08 21:06:41 +00:00
parent fa6674fd01
commit 0a6c60d2df
6 changed files with 19 additions and 2 deletions

View file

@ -389,7 +389,10 @@ bool AuthGPG::getGPGAllList(std::list<std::string> &ids)
return true;
}
bool AuthGPG::haveSecretKey(const std::string& id) const
{
return PGPHandler::haveSecretKey(PGPIdType(id)) ;
}
bool AuthGPG::isKeySupported(const std::string& id) const
{
const PGPCertificateInfo *pc = PGPHandler::getCertificateInfo(PGPIdType(id)) ;

View file

@ -166,6 +166,7 @@ class AuthGPG: public p3Config, public RsThread, public PGPHandler
//virtual std::string getGPGOwnEmail();
virtual bool isKeySupported(const std::string &id) const ;
virtual bool haveSecretKey(const std::string &id) const ;
virtual bool getGPGDetails(const std::string &id, RsPeerDetails &d);
virtual bool getGPGAllList(std::list<std::string> &ids);
virtual bool getGPGValidList(std::list<std::string> &ids);

View file

@ -54,6 +54,7 @@
/****
* #define AUTHSSL_DEBUG 1
***/
#define AUTHSSL_DEBUG 1
// initialisation du pointeur de singleton
static AuthSSL *instance_ssl = NULL;