diff options
Diffstat (limited to 'src/network/ssl/qsslpresharedkeyauthenticator.h')
-rw-r--r-- | src/network/ssl/qsslpresharedkeyauthenticator.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/network/ssl/qsslpresharedkeyauthenticator.h b/src/network/ssl/qsslpresharedkeyauthenticator.h index 5d714dc34e..026d3f43e5 100644 --- a/src/network/ssl/qsslpresharedkeyauthenticator.h +++ b/src/network/ssl/qsslpresharedkeyauthenticator.h @@ -74,17 +74,19 @@ public: Q_NETWORK_EXPORT int maximumPreSharedKeyLength() const; private: - friend Q_NETWORK_EXPORT bool operator==(const QSslPreSharedKeyAuthenticator &lhs, const QSslPreSharedKeyAuthenticator &rhs); + bool isEqual(const QSslPreSharedKeyAuthenticator &other) const; + friend class QSslSocketBackendPrivate; friend class QDtlsPrivateOpenSSL; + friend bool operator==(const QSslPreSharedKeyAuthenticator &lhs, const QSslPreSharedKeyAuthenticator &rhs) + { return lhs.isEqual(rhs); } + friend bool operator!=(const QSslPreSharedKeyAuthenticator &lhs, const QSslPreSharedKeyAuthenticator &rhs) + { return !lhs.isEqual(rhs); } + QSharedDataPointer<QSslPreSharedKeyAuthenticatorPrivate> d; }; -inline bool operator!=(const QSslPreSharedKeyAuthenticator &lhs, const QSslPreSharedKeyAuthenticator &rhs) -{ - return !operator==(lhs, rhs); -} Q_DECLARE_SHARED(QSslPreSharedKeyAuthenticator) |