GPGME Key Selection Dialog. More...
#include "config.h"
#include <ctype.h>
#include <gpgme.h>
#include <locale.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#include "private.h"
#include "mutt/lib.h"
#include "address/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "lib.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "crypt_gpgme.h"
#include "format_flags.h"
#include "gpgme_functions.h"
#include "mutt_logging.h"
#include "muttlib.h"
#include "sort.h"
Go to the source code of this file.
Data Structures | |
struct | CryptEntry |
An entry in the Select-Key menu. More... | |
Functions | |
static int | crypt_sort_address (const void *a, const void *b, void *sdata) |
Compare two keys by their addresses - Implements sort_t -. | |
static int | crypt_sort_keyid (const void *a, const void *b, void *sdata) |
Compare two keys by their IDs - Implements sort_t -. | |
static int | crypt_sort_date (const void *a, const void *b, void *sdata) |
Compare two keys by their dates - Implements sort_t -. | |
static int | crypt_sort_trust (const void *a, const void *b, void *sdata) |
Compare two keys by their trust levels - Implements sort_t -. | |
static char * | crypt_key_abilities (KeyFlags flags) |
Parse key flags into a string. | |
static char | crypt_flags (KeyFlags flags) |
Parse the key flags into a single character. | |
static const char * | crypt_format_str (char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags) |
Format a string for the key selection menu - Implements format_t -. | |
static void | crypt_make_entry (struct Menu *menu, char *buf, size_t buflen, int line) |
Format a menu item for the key selection list - Implements Menu::make_entry() -. | |
static void | gpgme_key_table_free (struct Menu *menu, void **ptr) |
Free the key table - Implements Menu::mdata_free() -. | |
static int | gpgme_key_config_observer (struct NotifyCallback *nc) |
Notification that a Config Variable has changed - Implements observer_t -. | |
static int | gpgme_key_window_observer (struct NotifyCallback *nc) |
Notification that a Window has changed - Implements observer_t -. | |
struct CryptKeyInfo * | dlg_gpgme (struct CryptKeyInfo *keys, struct Address *p, const char *s, unsigned int app, bool *forced_valid) |
Get the user to select a key -. | |
Variables | |
static const struct Mapping | GpgmeHelp [] |
Help Bar for the GPGME key selection dialog. | |
GPGME Key Selection Dialog.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file dlg_gpgme.c.
|
static |
Parse key flags into a string.
flags | Flags, see KeyFlags |
ptr | Flag string |
Definition at line 248 of file dlg_gpgme.c.
|
static |
Parse the key flags into a single character.
flags | Flags, see KeyFlags |
char | Flag character |
The returned character describes the most important flag.
Definition at line 278 of file dlg_gpgme.c.