From d10ecc2c41869f11dc7e5fa25f78fdeab02a7505 Mon Sep 17 00:00:00 2001 From: Julian Harnath Date: Sat, 22 Feb 2014 13:49:57 +0000 Subject: [PATCH] Style fix: add parameter name * As pointed out by Axel. --- headers/os/net/SecureSocket.h | 3 ++- src/kits/network/libnetapi/SecureSocket.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/headers/os/net/SecureSocket.h b/headers/os/net/SecureSocket.h index b65464f51c..5b54ed4c76 100644 --- a/headers/os/net/SecureSocket.h +++ b/headers/os/net/SecureSocket.h @@ -20,7 +20,8 @@ public: BSecureSocket(const BSecureSocket& other); virtual ~BSecureSocket(); - virtual bool CertificateVerificationFailed(BCertificate&); + virtual bool CertificateVerificationFailed(BCertificate& + certificate); // BSocket implementation diff --git a/src/kits/network/libnetapi/SecureSocket.cpp b/src/kits/network/libnetapi/SecureSocket.cpp index 8d5cdbc5dc..9373026923 100644 --- a/src/kits/network/libnetapi/SecureSocket.cpp +++ b/src/kits/network/libnetapi/SecureSocket.cpp @@ -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; }