mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 20:34:25 -04:00
make it compile
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2002 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c23407cae3
commit
a0a64fb588
17 changed files with 188 additions and 191 deletions
|
@ -91,7 +91,7 @@ p3disc::p3disc(p3ConnectMgr *cm, pqipersongrp *pqih)
|
|||
lastSentHeartbeatTime = 0;
|
||||
|
||||
//add own version to versions map
|
||||
versions[getAuthSSL()->OwnId()] = RsUtil::retroshareVersion();
|
||||
versions[AuthSSL::getAuthSSL()->OwnId()] = RsUtil::retroshareVersion();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -516,7 +516,7 @@ void p3disc::sendPeerDetails(std::string to, std::string about)
|
|||
|
||||
unsigned char **binptr = (unsigned char **) &(di -> certDER.bin_data);
|
||||
|
||||
getAuthSSL()->SaveCertificateToBinary(about, binptr, &certLen);
|
||||
AuthSSL::getAuthSSL()->SaveCertificateToBinary(about, binptr, &certLen);
|
||||
#ifdef P3DISC_DEBUG
|
||||
std::cerr << "Saved certificate to binary in p3discReply. Length=" << certLen << std::endl ;
|
||||
#endif
|
||||
|
@ -565,7 +565,7 @@ void p3disc::sendPeerIssuer(std::string to, std::string about)
|
|||
#endif
|
||||
}
|
||||
|
||||
std::string aboutIssuerId = getAuthSSL()->getIssuerName(about);
|
||||
std::string aboutIssuerId = AuthSSL::getAuthSSL()->getIssuerName(about);
|
||||
if (aboutIssuerId == "")
|
||||
{
|
||||
/* major error! */
|
||||
|
@ -579,7 +579,7 @@ void p3disc::sendPeerIssuer(std::string to, std::string about)
|
|||
// Set Target as input cert.
|
||||
di -> PeerId(to);
|
||||
|
||||
di -> issuerCert = getAuthSSL()->SaveCertificateToString(aboutIssuerId);
|
||||
di -> issuerCert = AuthSSL::getAuthSSL()->SaveCertificateToString(aboutIssuerId);
|
||||
|
||||
#ifdef P3DISC_DEBUG
|
||||
std::cerr << "Saved certificate to string in RsDiscIssuer. " << std::endl ;
|
||||
|
@ -719,7 +719,7 @@ void p3disc::recvPeerFriendMsg(RsDiscReply *item)
|
|||
uint8_t *certptr = (uint8_t *) item->certDER.bin_data;
|
||||
uint32_t len = item->certDER.bin_len;
|
||||
|
||||
bool loaded = getAuthSSL()->LoadCertificateFromBinary(certptr, len, peerId);
|
||||
bool loaded = AuthSSL::getAuthSSL()->LoadCertificateFromBinary(certptr, len, peerId);
|
||||
|
||||
uint32_t type = 0;
|
||||
uint32_t flags = 0;
|
||||
|
@ -732,7 +732,7 @@ void p3disc::recvPeerFriendMsg(RsDiscReply *item)
|
|||
{
|
||||
std::cerr << " Found a peer that trust me: " << peerId << " (" << rsPeers->getPeerName(peerId) << ")" << std::endl ;
|
||||
flags |= RS_NET_FLAGS_TRUSTS_ME;
|
||||
getAuthSSL()->addTrustingPeer(peerId) ;
|
||||
AuthSSL::getAuthSSL()->addTrustingPeer(peerId) ;
|
||||
}
|
||||
|
||||
/* generate type */
|
||||
|
@ -804,7 +804,7 @@ void p3disc::recvPeerIssuerMsg(RsDiscIssuer *item)
|
|||
|
||||
/* load certificate */
|
||||
std::string peerId;
|
||||
bool loaded = getAuthSSL()->LoadCertificateFromString(item->issuerCert, peerId);
|
||||
bool loaded = AuthSSL::getAuthSSL()->LoadCertificateFromString(item->issuerCert, peerId);
|
||||
|
||||
/* cleanup (handled by caller) */
|
||||
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include "pqi/pqinotify.h"
|
||||
#include "pqi/pqibin.h"
|
||||
#include "pqi/authssl.h"
|
||||
#include "pqi/authgpg.h"
|
||||
|
||||
/*****
|
||||
* #define DISTRIB_DEBUG 1
|
||||
|
@ -66,7 +67,7 @@ p3GroupDistrib::p3GroupDistrib(uint16_t subtype,
|
|||
/* force publication of groups (cleared if local cache file found) */
|
||||
mGroupsRepublish = true;
|
||||
|
||||
mOwnId = getAuthSSL()->OwnId();
|
||||
mOwnId = AuthSSL::getAuthSSL()->OwnId();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1728,10 +1729,10 @@ std::string p3GroupDistrib::publishMsg(RsDistribMsg *msg, bool personalSign)
|
|||
{
|
||||
unsigned int siglen = EVP_PKEY_size(publishKey);
|
||||
unsigned char sigbuf[siglen];
|
||||
if (getAuthGPG()->SignDataBin(data, size, sigbuf, &siglen))
|
||||
if (AuthGPG::getAuthGPG()->SignDataBin(data, size, sigbuf, &siglen))
|
||||
{
|
||||
signedMsg->personalSignature.signData.setBinData(sigbuf, siglen);
|
||||
signedMsg->personalSignature.keyId = getAuthGPG()->PGPOwnId();
|
||||
signedMsg->personalSignature.keyId = AuthGPG::getAuthGPG()->PGPOwnId();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2450,7 +2451,7 @@ bool p3GroupDistrib::locked_validateDistribSignedMsg(
|
|||
std::cerr << std::endl;
|
||||
#endif
|
||||
|
||||
if (getAuthGPG()->isPGPValid(newMsg->personalSignature.keyId))
|
||||
if (AuthGPG::getAuthGPG()->isPGPValid(newMsg->personalSignature.keyId))
|
||||
{
|
||||
#ifdef DISTRIB_DEBUG
|
||||
std::cerr << "p3GroupDistrib::locked_validateDistribSignedMsg() Peer Known";
|
||||
|
|
|
@ -297,7 +297,7 @@ std::string p3Forums::createForumMsg(std::string fId, std::string pId,
|
|||
fmsg->msg = msg;
|
||||
if (signIt)
|
||||
{
|
||||
fmsg->srcId = getAuthSSL()->OwnId();
|
||||
fmsg->srcId = AuthSSL::getAuthSSL()->OwnId();
|
||||
}
|
||||
fmsg->timestamp = time(NULL);
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ p3PhotoService::p3PhotoService(uint16_t type, CacheStrapper *cs, CacheTransfer *
|
|||
|
||||
{ RsStackMutex stack(mPhotoMtx); /********** STACK LOCKED MTX ******/
|
||||
|
||||
mOwnId = getAuthSSL()->OwnId();
|
||||
mOwnId = AuthSSL::getAuthSSL()->OwnId();
|
||||
}
|
||||
|
||||
// createDummyData();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue