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:
parent
7d9d9caf2f
commit
bcc4a77408
2 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue