mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-01 18:56:23 -04:00
Conversion of the SSL connection methods.
* Added new XPGP functions to checking certificates. * Converted SSL classes from cert * -> p3AuthMgr. * Added check of addresses before connect attempt. * started up listener correctly. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@319 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f9d6f1c418
commit
798e19d58c
14 changed files with 221 additions and 109 deletions
|
@ -1079,7 +1079,7 @@ void p3ConnectMgr::peerStatus(std::string id,
|
|||
pca.type = RS_NET_CONN_TCP_LOCAL;
|
||||
pca.addr = details.laddr;
|
||||
|
||||
it->second.connAddrs.push_front(pca);
|
||||
it->second.connAddrs.push_back(pca);
|
||||
}
|
||||
|
||||
if ((details.type & RS_NET_CONN_TCP_EXTERNAL) &&
|
||||
|
@ -1092,7 +1092,7 @@ void p3ConnectMgr::peerStatus(std::string id,
|
|||
pca.type = RS_NET_CONN_TCP_EXTERNAL;
|
||||
pca.addr = details.raddr;
|
||||
|
||||
it->second.connAddrs.push_front(pca);
|
||||
it->second.connAddrs.push_back(pca);
|
||||
}
|
||||
|
||||
if (it->second.inConnAttempt)
|
||||
|
@ -1491,7 +1491,7 @@ bool p3ConnectMgr::retryConnect(std::string id)
|
|||
pca.type = RS_NET_CONN_TCP_LOCAL;
|
||||
pca.addr = it->second.localaddr;
|
||||
|
||||
it->second.connAddrs.push_front(pca);
|
||||
it->second.connAddrs.push_back(pca);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1539,7 +1539,7 @@ bool p3ConnectMgr::retryConnect(std::string id)
|
|||
pca.type = RS_NET_CONN_TCP_EXTERNAL;
|
||||
pca.addr = it->second.serveraddr;
|
||||
|
||||
it->second.connAddrs.push_front(pca);
|
||||
it->second.connAddrs.push_back(pca);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1554,9 +1554,13 @@ bool p3ConnectMgr::retryConnect(std::string id)
|
|||
return true;
|
||||
}
|
||||
|
||||
/* start a connection attempt */
|
||||
it->second.actions |= RS_PEER_CONNECT_REQ;
|
||||
mStatusChanged = true;
|
||||
|
||||
/* start a connection attempt (only if we stuck something on the queue) */
|
||||
if (it->second.connAddrs.size() > 0)
|
||||
{
|
||||
it->second.actions |= RS_PEER_CONNECT_REQ;
|
||||
mStatusChanged = true;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue