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:
drbob 2009-07-08 20:58:58 +00:00
parent 2eccbce332
commit e9a2c24ab1

View File

@ -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;