Tree @f7c21c22-b1ce-47cd-987c-0598830f8ee1/main (Download .tar.gz)
- ..
- cardman.c
- cardman.h
- certchain.c
- certchain.h
- ChangeLog-2011
- clipboard.c
- clipboard.h
- cm-dinsig.c
- cm-dinsig.h
- cm-geldkarte.c
- cm-geldkarte.h
- cm-netkey.c
- cm-netkey.h
- cm-object.c
- cm-object.h
- cm-openpgp.c
- cm-openpgp.h
- cm-unknown.c
- cm-unknown.h
- confdialog.c
- confdialog.h
- convert.c
- convert.h
- dndtest.c
- encryptdlg.c
- encryptdlg.h
- expirydlg.c
- expirydlg.h
- fileman.c
- fileman.h
- filesigndlg.c
- filesigndlg.h
- filetype.c
- filetype.h
- filewatch.c
- format-dn.c
- format-dn.h
- get-path.c
- get-path.h
- gpa-key-details.c
- gpa-key-details.h
- gpa-logo.ppm
- gpa-marshal.c
- gpa-marshal.h
- gpa-marshal.list
- gpa-resource.rc
- gpa-tofu-list.c
- gpa-tofu-list.h
- gpa-uid-list.c
- gpa-uid-list.h
- gpa.c
- gpa.h
- gpa.ico
- gpabackupop.c
- gpabackupop.h
- gpacontext.c
- gpacontext.h
- gpadatebox.c
- gpadatebox.h
- gpadatebutton.c
- gpadatebutton.h
- gpaexportclipop.c
- gpaexportclipop.h
- gpaexportfileop.c
- gpaexportfileop.h
- gpaexportop.c
- gpaexportop.h
- gpaexportserverop.c
- gpaexportserverop.h
- gpafiledecryptop.c
- gpafiledecryptop.h
- gpafileencryptop.c
- gpafileencryptop.h
- gpafileimportop.c
- gpafileimportop.h
- gpafileop.c
- gpafileop.h
- gpafilesignop.c
- gpafilesignop.h
- gpafileverifyop.c
- gpafileverifyop.h
- gpagenkeyadvop.c
- gpagenkeyadvop.h
- gpagenkeycardop.c
- gpagenkeycardop.h
- gpagenkeyop.c
- gpagenkeyop.h
- gpagenkeysimpleop.c
- gpagenkeysimpleop.h
- gpaimportbykeyidop.c
- gpaimportbykeyidop.h
- gpaimportclipop.c
- gpaimportclipop.h
- gpaimportfileop.c
- gpaimportfileop.h
- gpaimportop.c
- gpaimportop.h
- gpaimportserverop.c
- gpaimportserverop.h
- gpakeydeleteop.c
- gpakeydeleteop.h
- gpakeyexpireop.c
- gpakeyexpireop.h
- gpakeyop.c
- gpakeyop.h
- gpakeypasswdop.c
- gpakeypasswdop.h
- gpakeyselector.c
- gpakeyselector.h
- gpakeysignop.c
- gpakeysignop.h
- gpakeytrustop.c
- gpakeytrustop.h
- gpaoperation.c
- gpaoperation.h
- gpapinchange.c
- gpapinchange.h
- gpaprogressbar.c
- gpaprogressbar.h
- gpaprogressdlg.c
- gpaprogressdlg.h
- gparecvkeydlg.c
- gparecvkeydlg.h
- gpastreamdecryptop.c
- gpastreamdecryptop.h
- gpastreamencryptop.c
- gpastreamencryptop.h
- gpastreamop.c
- gpastreamop.h
- gpastreamsignop.c
- gpastreamsignop.h
- gpastreamverifyop.c
- gpastreamverifyop.h
- gpasubkeylist.c
- gpasubkeylist.h
- gpawidgets.c
- gpawidgets.h
- gpawindowkeeper.c
- gpawindowkeeper.h
- gpg-stuff.c
- gpg-stuff.h
- gpgmeedit.c
- gpgmeedit.h
- gpgmetools.c
- gpgmetools.h
- gpl-text.c
- gpl-text.h
- gtktools.c
- gtktools.h
- helpmenu.c
- helpmenu.h
- hidewnd.c
- hidewnd.h
- i18n.h
- icons.c
- icons.h
- keydeletedlg.c
- keydeletedlg.h
- keyeditdlg.c
- keyeditdlg.h
- keygendlg.c
- keygendlg.h
- keygenwizard.c
- keygenwizard.h
- keylist.c
- keylist.h
- keymanager.c
- keymanager.h
- keyserver.c
- keyserver.h
- keysigndlg.c
- keysigndlg.h
- keytable.c
- keytable.h
- launch-gpa.c
- Makefile.am
- Makefile.in
- membuf.c
- membuf.h
- options.c
- options.h
- ownertrustdlg.c
- ownertrustdlg.h
- parsetlv.c
- parsetlv.h
- passwddlg.c
- passwddlg.h
- qdchkpwd.c
- qdchkpwd.h
- recipientdlg.c
- recipientdlg.h
- selectkeydlg.c
- selectkeydlg.h
- server-access.c
- server-access.h
- server.c
- settingsdlg.c
- settingsdlg.h
- siglist.c
- siglist.h
- Signals
- strlist.c
- strlist.h
- utils.c
- verifydlg.c
- verifydlg.h
- versioninfo.rc.in
- w32-afunix.c
- w32-afunix.h
- w32reg.c
- w32reg.h
keytable.h @f7c21c22-b1ce-47cd-987c-0598830f8ee1/main — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | /* keytable.h - The GNU Privacy Assistant key table. Copyright (C) 2002 Miguel Coca Copyright (C) 2005, 2008 g10 Code GmbH. This file is part of GPA GPA is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. GPA 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/>. */ /* Table of all the keys in the keyring. Singleton object. Acts as a key cache for key listing. */ #ifndef KEYTABLE_H #define KEYTABLE_H #include <glib.h> #include <glib-object.h> #include <gtk/gtk.h> #include <gpgme.h> #include "gpacontext.h" /* GObject stuff */ #define GPA_KEYTABLE_TYPE (gpa_keytable_get_type ()) #define GPA_KEYTABLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEYTABLE_TYPE, GpaKeyTable)) #define GPA_KEYTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEYTABLE_TYPE, GpaKeyTableClass)) #define GPA_IS_KEYTABLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEYTABLE_TYPE)) #define GPA_IS_KEYTABLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEYTABLE_TYPE)) #define GPA_KEYTABLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEYTABLE_TYPE, GpaKeyTableClass)) typedef struct _GpaKeyTable GpaKeyTable; typedef struct _GpaKeyTableClass GpaKeyTableClass; typedef void (*GpaKeyTableNextFunc) (gpgme_key_t key, gpointer data); typedef void (*GpaKeyTableEndFunc) (gpointer data); struct _GpaKeyTable { GObject parent; GpaContext *context; gboolean secret; gboolean new_key; gboolean initialized; GpaKeyTableNextFunc next; GpaKeyTableEndFunc end; gpointer data; const char *fpr; int did_first_half; gpg_error_t first_half_err; GList *keys, *tmp_list; }; struct _GpaKeyTableClass { GObjectClass parent_class; }; GType gpa_keytable_get_type (void) G_GNUC_CONST; /* Retrieve the single keytable instance (one for public keys, one for secret * ones). */ GpaKeyTable *gpa_keytable_get_public_instance (); GpaKeyTable *gpa_keytable_get_secret_instance (); /* List all keys, return cached copies if they are available. * * The "next" function is called for every key, providing a new * reference for that key that should be freed. * * The "end" function is called when the listing is complete. * * This function MAY not do anything until the application goes back into * the GLib main loop. */ void gpa_keytable_list_keys (GpaKeyTable *keytable, GpaKeyTableNextFunc next, GpaKeyTableEndFunc end, gpointer data); /* Same as list_keys, but forces the internal cache to be rebuilt. */ void gpa_keytable_force_reload (GpaKeyTable *keytable, GpaKeyTableNextFunc next, GpaKeyTableEndFunc end, gpointer data); /* Load the key with the given fingerprint from GnuPG, replacing it in the * keytable if needed. */ void gpa_keytable_load_new (GpaKeyTable *keytable, const char *fpr, GpaKeyTableNextFunc next, GpaKeyTableEndFunc end, gpointer data); /* Return the key with a given fingerprint from the keytable, NULL if there is none. No reference is provided. */ gpgme_key_t gpa_keytable_lookup_key (GpaKeyTable *keytable, const char *fpr); #endif /* KEYTABLE_H */ |