mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 15:57:08 -05:00
Removed compiler warnings
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3369 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c4167ba0ac
commit
efac8eec85
@ -58,8 +58,10 @@ AuthGPG *AuthGPG::getAuthGPG()
|
|||||||
|
|
||||||
|
|
||||||
/* Turn a set of parameters into a string */
|
/* Turn a set of parameters into a string */
|
||||||
|
#if 0
|
||||||
static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
||||||
std::string name, std::string comment, std::string email);
|
std::string name, std::string comment, std::string email);
|
||||||
|
#endif
|
||||||
static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
||||||
std::string name, std::string comment, std::string email,
|
std::string name, std::string comment, std::string email,
|
||||||
std::string inPassphrase);
|
std::string inPassphrase);
|
||||||
@ -775,10 +777,10 @@ bool AuthGPGimpl::DoOwnSignature(const void *data, unsigned int datalen, void *b
|
|||||||
fprintf(stderr, "Sign Failed to get Result\n");
|
fprintf(stderr, "Sign Failed to get Result\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef GPG_DEBUG
|
||||||
gpgme_invalid_key_t ik = res->invalid_signers;
|
gpgme_invalid_key_t ik = res->invalid_signers;
|
||||||
gpgme_new_signature_t sg = res->signatures;
|
gpgme_new_signature_t sg = res->signatures;
|
||||||
|
|
||||||
#ifdef GPG_DEBUG
|
|
||||||
while(ik != NULL)
|
while(ik != NULL)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "AuthGPGimpl::Sign, Invalid by: %s\n", ik->fpr);
|
fprintf(stderr, "AuthGPGimpl::Sign, Invalid by: %s\n", ik->fpr);
|
||||||
@ -1310,7 +1312,7 @@ bool AuthGPGimpl::LoadCertificateFromString(std::string str, std::string &gpg_id
|
|||||||
}
|
}
|
||||||
//retrieve the id of the key
|
//retrieve the id of the key
|
||||||
certmap::iterator it;
|
certmap::iterator it;
|
||||||
gpg_id = "" ;
|
gpg_id = "" ;
|
||||||
RsStackMutex stack(gpgMtx); /******* LOCKED ******/
|
RsStackMutex stack(gpgMtx); /******* LOCKED ******/
|
||||||
for(it = mKeyList.begin(); it != mKeyList.end(); it++)
|
for(it = mKeyList.begin(); it != mKeyList.end(); it++)
|
||||||
{
|
{
|
||||||
@ -1565,6 +1567,7 @@ void showData(gpgme_data_t dh)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
||||||
std::string name, std::string comment, std::string email)
|
std::string name, std::string comment, std::string email)
|
||||||
{
|
{
|
||||||
@ -1598,6 +1601,7 @@ static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
|||||||
|
|
||||||
return params.str();
|
return params.str();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
static std::string setKeyPairParams(bool useRsa, unsigned int blen,
|
||||||
std::string name, std::string comment, std::string email,
|
std::string name, std::string comment, std::string email,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user