Style fix: add parameter name

* As pointed out by Axel.
This commit is contained in:
Julian Harnath 2014-02-22 13:49:57 +00:00
parent dad49763d8
commit d10ecc2c41
2 changed files with 6 additions and 3 deletions

View File

@ -20,7 +20,8 @@ public:
BSecureSocket(const BSecureSocket& other);
virtual ~BSecureSocket();
virtual bool CertificateVerificationFailed(BCertificate&);
virtual bool CertificateVerificationFailed(BCertificate&
certificate);
// BSocket implementation

View File

@ -286,11 +286,12 @@ BSecureSocket::WaitForReadable(bigtime_t timeout) const
bool
BSecureSocket::CertificateVerificationFailed(BCertificate&)
BSecureSocket::CertificateVerificationFailed(BCertificate& certificate)
{
// Until apps actually make use of the certificate API, let's keep the old
// behavior and accept all connections, even if the certificate validation
// didn't work.
(void)certificate;
return true;
}
@ -358,8 +359,9 @@ BSecureSocket::~BSecureSocket()
bool
BSecureSocket::CertificateVerificationFailed(BCertificate&)
BSecureSocket::CertificateVerificationFailed(BCertificate& certificate)
{
(void)certificate;
return false;
}