Doc: be more explicit about need to set expected SSL cert in errors
Note added in QNetworkReply and QSslSocket documentation. Task-number: QTBUG-16770 Change-Id: I2dd8cfb913ec29a96b5465a905cd213713b8d537 Reviewed-by: Richard J. Moore <rich@kde.org>
This commit is contained in:
parent
8746a6a3e2
commit
34590e84d4
@ -657,7 +657,8 @@ void QNetworkReply::setSslConfiguration(const QSslConfiguration &config)
|
||||
If this function is called, the SSL errors given in \a errors
|
||||
will be ignored.
|
||||
|
||||
Note that you can set the expected certificate in the SSL error:
|
||||
\note Because most SSL errors are associated with a certificate, for most
|
||||
of them you must set the expected certificate this SSL error is related to.
|
||||
If, for instance, you want to issue a request to a server that uses
|
||||
a self-signed certificate, consider the following snippet:
|
||||
|
||||
|
@ -1771,7 +1771,8 @@ void QSslSocket::ignoreSslErrors()
|
||||
This method tells QSslSocket to ignore only the errors given in \a
|
||||
errors.
|
||||
|
||||
Note that you can set the expected certificate in the SSL error:
|
||||
\note Because most SSL errors are associated with a certificate, for most
|
||||
of them you must set the expected certificate this SSL error is related to.
|
||||
If, for instance, you want to connect to a server that uses
|
||||
a self-signed certificate, consider the following snippet:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user