YaST2 Developers Documentation: SignatureCheckDialogs.ycp

SignatureCheckDialogs.ycp

  • Lukas Ocilka
  • Dialogs handling for RPM/Repository GPM signatures.

This module has an unstable interface.

Imports

  • DontShowAgain
  • Label
  • Linuxrc
  • Message
  • Popup
  • Stage

Global Functions

Local Variables

Local Functions

global SetShowThisPopup (string popup_type, boolean show_it, string popup_url) -> void

Functions sets whether user want's to show the dialog again

Parameters:
popup_type
show_it
popup_url
global GetShowThisPopup (string popup_type, string popup_url) -> boolean

Function returns whether user want's to show the dialog (again). true is the default if nothing is set.

Parameters:
popup_type
popup_url
Return value:
show the dialog
global SetDefaultDialogReturn (string popup_type, boolean default_return, string popup_url) -> void

Function sets the default dialog return value for case when user selected "don't show again"

Parameters:
popup_type
default_return
popup_url
global GetDefaultDialogReturn (string popup_type, string popup_url) -> boolean

Function returns the default popup return value for case when user selected "don't show again"

Parameters:
popup_type
popup_url
global CheckSignatures () -> string

A semi-public helper. Convert the kernel parameter to the sysconfig string

Return value:
sysconfig value: yes, yast, no
global CheckSignaturesInYaST () -> boolean

Should signatures be checked at all? Check a sysconfig variable (or a kernel parameter for the 1st installation stage).

Return value:
do checking?
local StringSplitter (string whattosplit, string delimiter, integer after_chars) -> string

Function adds delimiter between after_chars characters in the string

Parameters:
whattosplit
delimiter
after_chars
Return value:
with delimiters
local MessageIcon (string msg_type) -> term

Returns term with message icon

Parameters:
msg_type
Return value:
`Image(...) with margins
local YesNoButtons (symbol default_button) -> term

Returns term of yes/no buttons

Parameters:
default_button
Return value:
with buttons
local WaitForYesNoCancelUserInput () -> boolean

Returns 'true' (yes), 'false' (no) or 'nil' (cancel)

Return value:
user input yes==true
local WaitForSymbolUserInput (list <symbol> list_of_accepted, symbol default_symb) -> symbol

Waits for user input and checks it agains accepted symbols. Returns the default symbol in case of `cancel (user closes the dialog).

Parameters:
list_of_accepted
default_symb
global UseUnsignedItem (symbol item_type, string item_name, string dont_show_dialog_ident, integer repository) -> boolean

Used for unsiged file or package. Opens dialog asking whether user wants to use this unsigned item.

Parameters:
item_type
item_name
dont_show_dialog_ident
repository
Return value:
use or don't use ('true' if 'yes')
global UseItemWithNoChecksum (symbol item_type, string item_name, string dont_show_dialog_ident) -> boolean

Used for file or package on signed repository but without any checksum. Opens dialog asking whether user wants to use this item.

Parameters:
item_type
item_name
dont_show_dialog_ident
Return value:
use or don't use ('true' if 'yes')
global UseCorruptedItem (symbol item_type, string item_name, map<string,any> key, integer repository) -> boolean

Used for corrupted file or package. Opens dialog asking whether user wants to use this corrupted item.

Parameters:
item_type
item_name
key
repository
Return value:
use or don't use ('true' if 'yes')
global ItemSignedWithUnknownSignature (symbol item_type, string item_name, string key_id, string dont_show_dialog_ident, integer repoid) -> boolean

Used for file or package signed by unknown key.

Parameters:
item_type
item_name
key_id
dont_show_dialog_ident
repoid
Return value:
true if 'yes, use file'
local list_of_trusted_keys -> list <string>

List of trusted keys

See
bugzilla #282254
global ItemSignedWithPublicSignature (symbol item_type, string item_name, map<string,any> key) -> symbol

Used for file or package signed by a public key. This key is still not listed in trusted keys.

Parameters:
item_type
item_name
key
Return value:
`key_import, `install, `skip
global ImportGPGKeyDialog (map<string,any> key) -> symbol

ImportGPGKeyDialog

Parameters:
key
global ImportGPGKeyIntoTrustedDialog (map<string,any> key, integer repository) -> boolean

ImportUntrustedGPGKeyIntoTrustedDialog

Parameters:
key
repository
Return value:
whether zypp should import the key into the keyring of trusted keys
global UseFileWithWrongDigest (string filename, string requested_digest, string found_digest, string dont_show_dialog_ident) -> boolean

Ask user to accept wrong digest

Parameters:
filename Name of the file
requested_digest Expected checksum
found_digest Current checksum
dont_show_dialog_ident Uniq ID for "don't show again"
Return value:
true when user accepts the file
global UseFileWithUnknownDigest (string filename, string digest, string dont_show_dialog_ident) -> boolean

Ask user to accept a file with unknown checksum

Parameters:
filename Name of the file
digest Current checksum
dont_show_dialog_ident Uniq ID for "don't show again"
Return value:
true when user accepts the file