KIO::SslUi Namespace Reference


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


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

Detailed Description

UI methods for handling SSL errors.

Enumeration Type Documentation

◆ RulesStorage

Error rule storage behavior.


apply stored certificate rules (typically ignored errors)


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


apply stored rules and store new rules

Definition at line 20 of file sslui.h.

Function Documentation

◆ askIgnoreSslErrors()

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 16 of file sslui.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:57:19 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.