GPGME Key Selection Dialog. More...
#include "config.h"
#include <gpgme.h>
#include <locale.h>
#include <stdbool.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 "expando/lib.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "crypt_gpgme.h"
#include "gpgme_functions.h"
#include "mutt_logging.h"
#include "pgplib.h"
#include "sort.h"
Go to the source code of this file.
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. | |
long | pgp_entry_gpgme_date_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
GPGME: Date of the key - Implements ExpandoRenderData::get_number() -. | |
void | pgp_entry_gpgme_date (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: Date of the key - Implements ExpandoRenderData::get_string() -. | |
long | pgp_entry_gpgme_n_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
GPGME: Index number - Implements ExpandoRenderData::get_number() -. | |
void | pgp_entry_gpgme_p (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: Protocol - Implements ExpandoRenderData::get_string() -. | |
void | pgp_entry_gpgme_t (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: Trust/validity - Implements ExpandoRenderData::get_string() -. | |
void | pgp_entry_gpgme_u (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: User id - Implements ExpandoRenderData::get_string() -. | |
void | pgp_entry_gpgme_a (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: Key Algorithm - Implements ExpandoRenderData::get_string() -. | |
void | pgp_entry_gpgme_c (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: Key Capabilities - Implements ExpandoRenderData::get_string() -. | |
void | pgp_entry_gpgme_f (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: Key Flags - Implements ExpandoRenderData::get_string() -. | |
void | pgp_entry_gpgme_i (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: Key fingerprint - Implements ExpandoRenderData::get_string() -. | |
void | pgp_entry_gpgme_k (const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf) |
GPGME: Key id - Implements ExpandoRenderData::get_string() -. | |
long | pgp_entry_gpgme_l_num (const struct ExpandoNode *node, void *data, MuttFormatFlags flags) |
GPGME: Key length - Implements ExpandoRenderData::get_number() -. | |
static int | crypt_make_entry (struct Menu *menu, int line, int max_cols, struct Buffer *buf) |
Format a PGP Key for the Menu - Implements Menu::make_entry() -. | |
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 | |
const struct ExpandoRenderData | PgpEntryGpgmeRenderData [] |
Callbacks for GPGME Key Expandos. | |
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 242 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 272 of file dlg_gpgme.c.
const struct ExpandoRenderData PgpEntryGpgmeRenderData |
Callbacks for GPGME Key Expandos.
Definition at line 93 of file dlg_gpgme.c.