mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
update start wizard, change gui settings directory into ssl profile directory (RestroShare.conf)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2141 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fb5bbf2e96
commit
e142c63180
16 changed files with 1189 additions and 1588 deletions
|
@ -950,16 +950,12 @@ bool RsInit::GenerateSSLCertificate(std::string gpg_id, std::string org, std
|
|||
/* try to load it, and get Id */
|
||||
|
||||
std::string location;
|
||||
bool ret = LoadCheckX509andGetLocation(cert_name.c_str(), location, sslId) ;
|
||||
|
||||
std::cout << "LoadCheckX509andGetLocation: returned " << ret << ", sslId=" << sslId << std::endl ;
|
||||
if (LoadCheckX509andGetLocation(cert_name.c_str(), location, sslId) == 0) {
|
||||
std::cerr << "RsInit::GenerateSSLCertificate() Cannot check own signature, maybe the files are corrupted." << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
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;
|
||||
/* Rename Directory */
|
||||
|
||||
|
@ -1621,6 +1617,13 @@ std::string RsInit::RsConfigDirectory()
|
|||
return RsInitConfig::basedir;
|
||||
}
|
||||
|
||||
std::string RsInit::RsProfileConfigDirectory()
|
||||
{
|
||||
std::string dir = RsInitConfig::basedir + RsInitConfig::dirSeperator + RsInitConfig::preferedId;
|
||||
std::cerr << "RsInit::RsProfileConfigDirectory() returning : " << dir << std::endl;
|
||||
return dir;
|
||||
}
|
||||
|
||||
bool RsInit::setStartMinimised()
|
||||
{
|
||||
return RsInitConfig::startMinimised;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue