diff options
Diffstat (limited to 'src/network/ssl/qocspresponse.cpp')
-rw-r--r-- | src/network/ssl/qocspresponse.cpp | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/src/network/ssl/qocspresponse.cpp b/src/network/ssl/qocspresponse.cpp index ab046b74c1..b63312506d 100644 --- a/src/network/ssl/qocspresponse.cpp +++ b/src/network/ssl/qocspresponse.cpp @@ -206,30 +206,32 @@ QSslCertificate QOcspResponse::subject() const } /*! - \fn bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs) + \fn bool QOcspResponse::operator==(const QOcspResponse &lhs, const QOcspResponse &rhs) Returns \c true if \a lhs and \a rhs are the responses for the same certificate, signed by the same responder, have the same revocation reason and the same certificate status. \since 5.13 - \relates QOcspResponse - */ -Q_NETWORK_EXPORT bool operator==(const QOcspResponse &lhs, const QOcspResponse &rhs) -{ - return lhs.d == rhs.d || *lhs.d == *rhs.d; -} +*/ /*! - \fn bool operator != (const QOcspResponse &lhs, const QOcspResponse &rhs) + \fn bool QOcspResponse::operator!=(const QOcspResponse &lhs, const QOcspResponse &rhs) + + Returns \c true if \a lhs and \a rhs are responses for different certificates, + or signed by different responders, or have different revocation reasons, or different + certificate statuses. - Returns \c true if \a lhs and \a rhs are responses for different certificates, - or signed by different responders, or have different revocation reasons, or different - certificate statuses. + \since 5.13 +*/ - \since 5.13 - \relates QOcspResponse +/*! + \internal */ +bool QOcspResponse::isEqual(const QOcspResponse &other) const +{ + return d == other.d || *d == *other.d; +} /*! \fn size_t qHash(const QOcspResponse &response, size_t seed) |