mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
jsonapi-generator fix support for void methods
Thanks sehraf for reporting retroshare://forum?name=fucking%20genius&id=8fd22bd8f99754461e7ba1ca8a727995&msgid=503d75bf7ed7fa7568eeae4db5c8d31a7e124c98
This commit is contained in:
parent
cb11ad92ea
commit
d14a455cf1
4 changed files with 27 additions and 17 deletions
|
@ -100,7 +100,11 @@ std::string pgp_pwd_callback(void * /*hook*/, const char *uid_title, const char
|
|||
return password ;
|
||||
}
|
||||
|
||||
void AuthGPG::init(const std::string& path_to_public_keyring,const std::string& path_to_secret_keyring,const std::string& path_to_trustdb,const std::string& pgp_lock_file)
|
||||
void AuthGPG::init(
|
||||
const std::string& path_to_public_keyring,
|
||||
const std::string& path_to_secret_keyring,
|
||||
const std::string& path_to_trustdb,
|
||||
const std::string& pgp_lock_file)
|
||||
{
|
||||
if(_instance != NULL)
|
||||
{
|
||||
|
@ -108,8 +112,11 @@ void AuthGPG::init(const std::string& path_to_public_keyring,const std::string&
|
|||
std::cerr << "AuthGPG::init() called twice!" << std::endl ;
|
||||
}
|
||||
|
||||
PGPHandler::setPassphraseCallback(pgp_pwd_callback) ;
|
||||
_instance = new AuthGPG(path_to_public_keyring,path_to_secret_keyring,path_to_trustdb,pgp_lock_file) ;
|
||||
// if(cb) PGPHandler::setPassphraseCallback(cb);else
|
||||
PGPHandler::setPassphraseCallback(pgp_pwd_callback);
|
||||
_instance = new AuthGPG( path_to_public_keyring,
|
||||
path_to_secret_keyring,
|
||||
path_to_trustdb, pgp_lock_file );
|
||||
}
|
||||
|
||||
void AuthGPG::exit()
|
||||
|
|
|
@ -89,8 +89,8 @@ public:
|
|||
class AuthGPGService
|
||||
{
|
||||
public:
|
||||
AuthGPGService() {};
|
||||
~AuthGPGService() {};
|
||||
AuthGPGService() {}
|
||||
~AuthGPGService() {}
|
||||
|
||||
virtual AuthGPGOperation *getGPGOperation() = 0;
|
||||
virtual void setGPGOperation(AuthGPGOperation *operation) = 0;
|
||||
|
@ -98,12 +98,11 @@ public:
|
|||
|
||||
class AuthGPG: public p3Config, public RsTickingThread, public PGPHandler
|
||||
{
|
||||
public:
|
||||
|
||||
static void init( const std::string& path_to_pubring,
|
||||
const std::string& path_to_secring,
|
||||
const std::string& path_to_trustdb,
|
||||
const std::string& pgp_lock_file);
|
||||
public:
|
||||
static void init(const std::string& path_to_pubring,
|
||||
const std::string& path_to_secring,
|
||||
const std::string& path_to_trustdb,
|
||||
const std::string& pgp_lock_file);
|
||||
|
||||
static void exit();
|
||||
static AuthGPG *getAuthGPG() { return _instance ; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue