KIO::SslUi

KIO::SslUi Namespace Reference

Enumerations

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

Functions

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.

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 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 Thu Feb 15 2024 03:51:29 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.