![]() |
KD SOAP API Documentation
2.1
|
A class for handling SSL errors during SOAP calls. More...
#include <KDSoapSslHandler.h>
Public Slots | |
void | ignoreSslErrors () |
ignoreSslErrors More... | |
void | ignoreSslErrors (const QList< QSslError > &errors) |
Signals | |
void | sslErrors (KDSoapSslHandler *handler, const QList< QSslError > &errors) |
Notification of SSL errors. More... | |
A class for handling SSL errors during SOAP calls.
Definition at line 30 of file KDSoapSslHandler.h.
|
slot |
ignoreSslErrors
If this function is called, SSL errors related to network connection will be ignored, including certificate validation errors.
Note that calling this function without restraint may pose a security risk for your application. Use it with care.
This function can be called from the slot connected to the sslErrors() signal, which indicates which errors were found.
Definition at line 26 of file KDSoapSslHandler.cpp.
|
slot |
If this function is called, the SSL errors given in errors
will be ignored. Note that you can set the expected certificate in the SSL error. See QNetworkReply::ignoreSslErrors() for more information.
This function can be called from the slot connected to the sslErrors() signal, which indicates which errors were found.
errors | list of errors to ignore |
Definition at line 32 of file KDSoapSslHandler.cpp.
|
signal |
Notification of SSL errors.
This signal is emitted if the SSL/TLS session encountered errors during the set up, including certificate verification errors. The errors parameter contains the list of errors.
To indicate that the errors are not fatal and that the connection should proceed, the ignoreSslErrors() method should be called from the slot connected to this signal. If it is not called, the SSL session will be torn down before any data is exchanged.
handler | is a pointer the KDSoapSSLHandler associated with the errors |
errors | list of ssl errors |