mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -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
@ -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) {
|
||||
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;
|
||||
}
|
||||
|
||||
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 */
|
||||
std::string finalbase = RsInitConfig::basedir + RsInitConfig::dirSeperator + sslId + RsInitConfig::dirSeperator;
|
||||
/* Rename Directory */
|
||||
|
Loading…
Reference in New Issue
Block a user