Merge "Suppress warning (MSVC, C4250)"
This commit is contained in:
commit
f6a603f0f5
@ -1273,7 +1273,7 @@ unsigned QDtlsPrivateOpenSSL::pskClientCallback(const char *hint, char *identity
|
|||||||
}
|
}
|
||||||
|
|
||||||
QTlsBackend::setupClientPskAuth(&authenticator, hint ? identityHint.constData() : nullptr,
|
QTlsBackend::setupClientPskAuth(&authenticator, hint ? identityHint.constData() : nullptr,
|
||||||
hint ? std::strlen(hint) : 0, max_identity_len, max_psk_len);
|
hint ? int(std::strlen(hint)) : 0, max_identity_len, max_psk_len);
|
||||||
pskAuthenticator.swap(authenticator);
|
pskAuthenticator.swap(authenticator);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
#include <QtNetwork/qhostaddress.h>
|
#include <QtNetwork/qhostaddress.h>
|
||||||
|
|
||||||
#include <QtCore/qbytearray.h>
|
#include <QtCore/qbytearray.h>
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
#include <QtCore/qlist.h>
|
#include <QtCore/qlist.h>
|
||||||
#include <QtCore/qsharedpointer.h>
|
#include <QtCore/qsharedpointer.h>
|
||||||
|
|
||||||
@ -134,6 +135,13 @@ private:
|
|||||||
|
|
||||||
} // namespace dtlsopenssl
|
} // namespace dtlsopenssl
|
||||||
|
|
||||||
|
// The trick with 'right' ancestor in the tree overriding (only once) some shared
|
||||||
|
// virtual functions is intentional. Too bad MSVC warns me about ... exactly the
|
||||||
|
// feature of C++ that I want to use.
|
||||||
|
|
||||||
|
QT_WARNING_PUSH
|
||||||
|
QT_WARNING_DISABLE_MSVC(4250)
|
||||||
|
|
||||||
class QDtlsClientVerifierOpenSSL : public QTlsPrivate::DtlsCookieVerifier, public QDtlsBasePrivate
|
class QDtlsClientVerifierOpenSSL : public QTlsPrivate::DtlsCookieVerifier, public QDtlsBasePrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -236,6 +244,8 @@ private:
|
|||||||
QByteArray identityHint;
|
QByteArray identityHint;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QT_WARNING_POP // C4250
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
#endif // QDTLS_OPENSSL_P_H
|
#endif // QDTLS_OPENSSL_P_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user