ssl::CertificateVerification::IfProvided is unused

so just drop it for clarity

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I8482b34049f098c7d7f9ff5195cfb9080fd4e1a3
This commit is contained in:
Caolán McNamara 2024-05-28 09:21:37 +01:00 committed by Andras Timar
parent 7d9d9caf2f
commit bcc4a77408
2 changed files with 1 additions and 3 deletions

View file

@ -183,8 +183,7 @@ bool SslStreamSocket::verifyCertificate()
}
}
// No certificate; acceptable only if verification is not strictly required.
return (_verification == ssl::CertificateVerification::IfProvided);
return false;
}
#endif //ENABLE_SSL

View file

@ -31,7 +31,6 @@ namespace ssl
enum class CertificateVerification
{
Disabled, //< No verification is performed or results ignored.
IfProvided, //< Verified if an optional certificate is provided.
Required //< Certificate must be provided and will be verified.
};
} // namespace ssl