summaryrefslogtreecommitdiffstats
path: root/src/network/ssl/qdtls_openssl.cpp
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2021-03-16 17:12:18 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2021-03-19 17:32:59 +0100
commita9300f2c342eb73b3af9b7aa271dea2f3159d7b2 (patch)
treebe9fd331b0433924ce1696688b7acee5bf2d663c /src/network/ssl/qdtls_openssl.cpp
parent919425cb3a423409e794acf3c7f9150d73956b32 (diff)
Suppress warning (MSVC, C4250)
This design decision was intentional and reflects the fact that we cannot have inheritance tree 'linear' as before, since the base interface is an abstract class without any data-members. Also, fix a warning about size_t -> int implicit conversion. Fixes: QTBUG-91866 Change-Id: Icbc73c22d8adf72bbd8949125d4404ea6da69c6d Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit 1a7faeef94dcf6826c6ee564a1bfb31ebb952e56)
Diffstat (limited to 'src/network/ssl/qdtls_openssl.cpp')
-rw-r--r--src/network/ssl/qdtls_openssl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/ssl/qdtls_openssl.cpp b/src/network/ssl/qdtls_openssl.cpp
index 80b5179f69..fe6c8013c7 100644
--- a/src/network/ssl/qdtls_openssl.cpp
+++ b/src/network/ssl/qdtls_openssl.cpp
@@ -1273,7 +1273,7 @@ unsigned QDtlsPrivateOpenSSL::pskClientCallback(const char *hint, char *identity
}
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);
}