mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
first separation between authSSL and authGPG
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1999 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d377aa1278
commit
bd5df3a9ea
5 changed files with 399 additions and 747 deletions
|
@ -46,14 +46,8 @@
|
|||
// for blocking signals
|
||||
#include <signal.h>
|
||||
|
||||
#if defined(PQI_USE_SSLONLY)
|
||||
#include "pqi/authssl.h"
|
||||
#else /* X509 Certificates */
|
||||
/**************** PQI_USE_SSLONLY ***************/
|
||||
/**************** SSL + OPENPGP *****************/
|
||||
#include "pqi/authgpg.h"
|
||||
#include "pqi/authssl.h"
|
||||
#endif /* X509 Certificates */
|
||||
#include "pqi/authgpg.h"
|
||||
#include "pqi/authssl.h"
|
||||
|
||||
class accountId
|
||||
{
|
||||
|
@ -1022,9 +1016,8 @@ bool RsInit::GenerateSSLCertificate(std::string name, std::string org, std::
|
|||
country.c_str(),
|
||||
nbits, errString);
|
||||
|
||||
GPGAuthMgr *mgr = (GPGAuthMgr *) getAuthMgr();
|
||||
long days = 3000;
|
||||
X509 *x509 = mgr->SignX509Req(req, days, "dummypassword");
|
||||
X509 *x509 = getAuthSSL()->SignX509Req(req, days);
|
||||
|
||||
X509_REQ_free(req);
|
||||
if (x509 == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue