mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 11:02:30 -04:00
Fixed default data rates to sensible options: 200 kB/s down, 50 kB/s up.
Added StoreAllKeys() call after adding new GPG Certificate. Added Check for successful Req creation (was crashing with NULL pointer). Switched std::vector.data => &(std::vector[0]) to remove linuxism in radix64. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4851 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
e6816c9d6f
commit
00ff694e10
4 changed files with 44 additions and 30 deletions
|
@ -1284,6 +1284,12 @@ bool RsInit::GenerateSSLCertificate(const std::string& gpg_id, const std::st
|
|||
country.c_str(),
|
||||
nbits, errString);
|
||||
|
||||
if (req == NULL)
|
||||
{
|
||||
fprintf(stderr,"RsGenerateCert() Couldn't create Request. Reason: %s\n", errString.c_str());
|
||||
return false;
|
||||
}
|
||||
|
||||
long days = 3000;
|
||||
X509 *x509 = AuthSSL::getAuthSSL()->SignX509ReqWithGPG(req, days);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue