mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
add error handling. Maybe some code review ciould be a good idea
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1556 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1bb1aa0fc5
commit
6db7ae1fe5
3 changed files with 6 additions and 1 deletions
|
@ -1057,6 +1057,10 @@ bool RsInit::GenerateSSLCertificate(std::string name, std::string org, std::
|
|||
X509 *x509 = mgr->SignX509Req(req, days, "dummypassword");
|
||||
|
||||
X509_REQ_free(req);
|
||||
if (x509 == NULL) {
|
||||
fprintf(stderr,"RsGenerateCert() Couldn't sign ssl certificate. Probably PGP password is wrong.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
/* save to file */
|
||||
if (x509)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue