NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
GPGME Key Selection Dialog

The GPGME Key Selection Dialog lets the user select a PGP key.

This is a Simple Dialog


Name Type See Also
GPGME Key Selection Dialog WT_DLG_CRYPT_GPGME dlg_select_gpgme_key()




The Simple Dialog holds a Menu. The GPGME Key Selection Dialog stores its data (CryptKeyInfo) in Menu::mdata.


Once constructed, it is controlled by the following events:

Event Type Handler
NT_CONFIG gpgme_key_config_observer()
NT_WINDOW gpgme_key_window_observer()

The GPGME Key Selection Dialog doesn't have any specific colours, so it doesn't need to support NT_COLOR.

The GPGME Key Selection Dialog does not implement MuttWindow::recalc() or MuttWindow::repaint().

Some other events are handled by the Simple Dialog.


Function Description Links
crypt_compare_address_qsort() Compare the addresses of two keys
crypt_compare_date_qsort() Compare the dates of two keys
crypt_compare_key_address() Compare Key addresses and IDs for sorting
crypt_compare_key_date() Compare Key creation dates and addresses for sorting
crypt_compare_key_trust() Compare the trust of keys for sorting
crypt_compare_keyid() Compare Key IDs and addresses for sorting
crypt_compare_keyid_qsort() Compare the IDs of two keys
crypt_compare_trust_qsort() Compare the trust levels of two keys
crypt_flags() Parse the key flags into a single character
crypt_format_str() Format a string for the key selection menu format_t, expando_api
crypt_key_abilities() Parse key flags into a string
crypt_make_entry() Format a menu item for the key selection list Menu::make_entry(), menu_make_entry
dlg_select_gpgme_key() Get the user to select a key
gpgme_key_config_observer() Notification that a Config Variable has changed observer_t, observer_api
gpgme_key_table_free() Free the key table Menu::mdata_free(), menu_mdata_free
gpgme_key_window_observer() Notification that a Window has changed observer_t, observer_api