mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 06:32:55 -04:00
added some more robust tests in certificate creation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2134 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a70b106005
commit
7b35b7dc6a
1 changed files with 8 additions and 1 deletions
|
@ -829,7 +829,7 @@ bool RsInit::SelectGPGAccount(std::string id)
|
||||||
|
|
||||||
|
|
||||||
bool RsInit::GeneratePGPCertificate(std::string name, std::string email, std::string passwd, std::string &pgpId, std::string &errString) {
|
bool RsInit::GeneratePGPCertificate(std::string name, std::string email, std::string passwd, std::string &pgpId, std::string &errString) {
|
||||||
AuthGPG::getAuthGPG()->GeneratePGPCertificate(name, email, passwd, pgpId, errString);
|
return AuthGPG::getAuthGPG()->GeneratePGPCertificate(name, email, passwd, pgpId, errString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -955,6 +955,13 @@ bool RsInit::GenerateSSLCertificate(std::string gpg_id, std::string org, std
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cout << "LoadCheckX509andGetLocation: returned " << ret << ", sslId=" << sslId << std::endl ;
|
||||||
|
|
||||||
|
if(!ret)
|
||||||
|
{
|
||||||
|
std::cerr << "LoadCheckX509andGetLocation failed. Sorry." << std::endl ;
|
||||||
|
return false ;
|
||||||
|
}
|
||||||
/* Move directory to correct id */
|
/* Move directory to correct id */
|
||||||
std::string finalbase = RsInitConfig::basedir + RsInitConfig::dirSeperator + sslId + RsInitConfig::dirSeperator;
|
std::string finalbase = RsInitConfig::basedir + RsInitConfig::dirSeperator + sslId + RsInitConfig::dirSeperator;
|
||||||
/* Rename Directory */
|
/* Rename Directory */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue