mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -04:00
Bugfixes to make pgp friend sharing work.
* added rsinit.h include so PGPSSL flag is read. (enabling ISSUER sharing) * extra debugging so we can see the certs being passed around. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1399 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
cf60b0a0b9
commit
369bb6a5c5
3 changed files with 17 additions and 0 deletions
|
@ -1411,12 +1411,15 @@ std::string GPGAuthMgr::SaveCertificateToString(std::string id)
|
|||
|
||||
if (!isPGPValid(id))
|
||||
{
|
||||
std::cerr << "GPGAuthMgr::SaveCertificateToString() Id is Not PGP" << std::endl;
|
||||
/* check if it is a SSL Certificate */
|
||||
if (isValid(id))
|
||||
{
|
||||
std::cerr << "GPGAuthMgr::SaveCertificateToString() is SSLID!" << std::endl;
|
||||
std::string sslcert = AuthSSL::SaveCertificateToString(id);
|
||||
return sslcert;
|
||||
}
|
||||
std::cerr << "GPGAuthMgr::SaveCertificateToString() unknown ID" << std::endl;
|
||||
std::string emptystr;
|
||||
return emptystr;
|
||||
}
|
||||
|
@ -1450,6 +1453,11 @@ std::string GPGAuthMgr::SaveCertificateToString(std::string id)
|
|||
char *export_txt = gpgme_data_release_and_get_mem(gpgmeData, &len);
|
||||
tmp = std::string(export_txt);
|
||||
|
||||
std::cerr << "Exported Certificate: ";
|
||||
std::cerr << std::endl;
|
||||
std::cerr << tmp;
|
||||
std::cerr << std::endl;
|
||||
|
||||
gpgme_free(export_txt);
|
||||
|
||||
return tmp;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue