KIO::SslUi

KIO::SslUi Namespace Reference

Enumerations

enum  RulesStorage { RecallRules = 1, StoreRules = 2, RecallAndStoreRules = 3 }
 

Functions

bool KIOWIDGETS_EXPORT askIgnoreSslErrors (const KTcpSocket *socket, RulesStorage storedRules=RecallAndStoreRules)
 
bool KIOWIDGETS_EXPORT askIgnoreSslErrors (const KSslErrorUiData &uiData, RulesStorage storedRules=RecallAndStoreRules)
 

Detailed Description

UI methods for handling SSL errors.

Enumeration Type Documentation

Error rule storage behavior.

Enumerator
RecallRules 

apply stored certificate rules (typically ignored errors)

StoreRules 

make new ignore rules from the user's choice and store them

RecallAndStoreRules 

apply stored rules and store new rules

Definition at line 37 of file sslui.h.

Function Documentation

bool KIO::SslUi::askIgnoreSslErrors ( const KTcpSocket socket,
RulesStorage  storedRules = RecallAndStoreRules 
)
Deprecated:
since 5.64 use the KSslErrorUiData variant instead.

Definition at line 30 of file sslui.cpp.

bool KIO::SslUi::askIgnoreSslErrors ( const KSslErrorUiData uiData,
RulesStorage  storedRules = RecallAndStoreRules 
)

If there are errors while establishing an SSL encrypted connection to a peer, usually due to certificate issues, and since this poses a security issue, we need confirmation from the user about how they wish to proceed.

This function provides a dialog asking the user if they wish to abort the connection or ignore the SSL errors that occurred and continue connecting. And in case of the latter whether to remember the decision in the future or ignore the error temporarily.

uiData the KSslErrorUiData object constructed from the socket that is trying to establish the encrypted connection storedRules see RulesStorage Enum

Definition at line 37 of file sslui.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Jul 7 2020 22:59:13 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.