mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 20:04:24 -04:00
add persistence of accepted gpg key to connect with
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2019 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e50dc4e3b9
commit
3742d3bd8b
5 changed files with 89 additions and 4 deletions
|
@ -48,6 +48,7 @@
|
|||
#include <list>
|
||||
#include <set>
|
||||
#include <map>
|
||||
#include "pqi/p3cfgmgr.h"
|
||||
|
||||
#define GPG_id std::string
|
||||
|
||||
|
@ -83,7 +84,7 @@ class gpgcert
|
|||
*/
|
||||
typedef std::map<std::string, gpgcert> certmap;
|
||||
|
||||
class AuthGPG
|
||||
class AuthGPG : public p3Config
|
||||
{
|
||||
private:
|
||||
|
||||
|
@ -215,6 +216,15 @@ class AuthGPG
|
|||
static AuthGPG *getAuthGPG() throw() // pour obtenir l'instance
|
||||
{ return instance_gpg; }
|
||||
|
||||
protected:
|
||||
/*****************************************************************/
|
||||
/*********************** p3config ******************************/
|
||||
/* Key Functions to be overloaded for Full Configuration */
|
||||
virtual RsSerialiser *setupSerialiser();
|
||||
virtual std::list<RsItem *> saveList(bool &cleanup);
|
||||
virtual bool loadList(std::list<RsItem *> load);
|
||||
/*****************************************************************/
|
||||
|
||||
private:
|
||||
|
||||
static AuthGPG *instance_gpg; // pointeur vers le singleton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue