From ee8c052395d484e2d094816beeb7a879947b72bd Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 27 Jun 2018 11:38:53 +0200 Subject: QtNetwork: Fix and streamline translations of QDtls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use %-placeholder formatting instead of string concatenation for messages of the form "XX failed: %1" - Introduce helper functions for duplicate messages - Introduce helper function for message reporting function failures to avoid duplication - Extract helper function for reporting SSL handshake errors Complemements ac583b686d0677517e7f8a10ce4e79c7fe227ccf. Change-Id: Iaf6c158ca8086d0b17a3e3c51955707734829615 Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Timur Pocheptsov --- src/network/ssl/qsslsocket_openssl_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/network/ssl/qsslsocket_openssl_p.h') diff --git a/src/network/ssl/qsslsocket_openssl_p.h b/src/network/ssl/qsslsocket_openssl_p.h index 2d0a5fe895..ce9096fea9 100644 --- a/src/network/ssl/qsslsocket_openssl_p.h +++ b/src/network/ssl/qsslsocket_openssl_p.h @@ -159,6 +159,8 @@ public: QSslKey *key, QSslCertificate *cert, QList *caCertificates, const QByteArray &passPhrase); + + static QString msgErrorsDuringHandshake(); }; QT_END_NAMESPACE -- cgit v1.2.3