mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Added Authentication update... for cases where
auth fails the first time, but is okay the second. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1335 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2eccbce332
commit
e9a2c24ab1
@ -1624,6 +1624,26 @@ bool AuthSSL::ProcessX509(X509 *x509, std::string &id)
|
||||
|
||||
/* we accepted it! */
|
||||
id = xid;
|
||||
|
||||
if (!cert->authed)
|
||||
{
|
||||
cert->authed = valid;
|
||||
#ifdef AUTHSSL_DEBUG
|
||||
std::cerr << "AuthSSL::ProcessX509() ";
|
||||
std::cerr << "Updating Unauthed duplicate: ";
|
||||
std::cerr << (valid ? "true" : "false");
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef AUTHSSL_DEBUG
|
||||
std::cerr << "AuthSSL::ProcessX509() ";
|
||||
std::cerr << "Original already Valid";
|
||||
std::cerr << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef AUTHSSL_DEBUG
|
||||
std::cerr << "AuthSSL::ProcessX509() Accepted Dup";
|
||||
std::cerr << std::endl;
|
||||
|
Loading…
Reference in New Issue
Block a user