├── gpa.png ├── po ├── nl.po ├── tr.po ├── pt_BR.po ├── zh_TW.po ├── ChangeLog-2011 ├── LINGUAS ├── quot.sed ├── .gitattributes ├── boldquot.sed ├── to-utf8 ├── remove-potcdate.sin ├── insert-header.sin ├── en@quot.header ├── en@boldquot.header ├── POTFILES.in ├── Makevars ├── Makevars.template └── Rules-quot ├── src ├── gpa.ico ├── qdchkpwd.c ├── gpa-logo.ppm ├── gpa-resource.rc ├── gpa-marshal.list ├── versioninfo.rc.in ├── gpl-text.h ├── gpa_blue_key.xpm ├── gpa_yellow_key.xpm ├── open_folder.xpm ├── Signals ├── smartcard.xpm ├── blue_key.xpm ├── hidewnd.h ├── format-dn.h ├── org.gnupg.gpa.src.gresource.xml ├── qdchkpwd.h ├── filetype.h ├── certchain.h ├── get-path.h ├── keyserver.h ├── folder.xpm ├── keydeletedlg.h ├── harddisk.xpm ├── keysigndlg.h ├── expirydlg.h ├── ownertrustdlg.h ├── gpa-tofu-list.h ├── gpa-uid-list.h ├── siglist.h ├── keygendlg.h ├── keyimpseldlg.h ├── passwddlg.h ├── gpasubkeylist.h ├── blue_yellow_cardkey.xpm ├── convert.h ├── keygenwizard.h ├── blue_yellow_key.xpm ├── helpmenu.h ├── gpawidgets.h ├── confdialog.h ├── gpawindowkeeper.h ├── strlist.h ├── w32reg.h ├── server-access.h ├── membuf.h ├── i18n.h ├── w32-afunix.h ├── parsetlv.h ├── help.xpm ├── hidewnd.c ├── gpapinchange.h ├── icons.h ├── keymanager.h ├── gpgmeedit.h ├── gpadatebox.h ├── delete.xpm ├── clipboard.h ├── gpadatebutton.h ├── gpg-stuff.h ├── gpa-key-details.h ├── cardman.h ├── gtktools.h ├── fileman.h ├── gpagenkeyop.h ├── settingsdlg.h ├── gpawindowkeeper.c ├── cm-piv.h ├── cm-netkey.h ├── cm-unknown.h ├── cm-geldkarte.h ├── gpakeypasswdop.h ├── gpakeysignop.h ├── gpakeytrustop.h ├── cm-openpgp.h ├── gpakeydeleteop.h ├── gpaimportfileop.h ├── gpaexportfileop.h ├── recipientdlg.h ├── gparecvkeydlg.h ├── keyeditdlg.h ├── gpastreamop.h ├── gpabackupop.h ├── gpagenkeysimpleop.h ├── gpakeyop.h ├── gpafilesignop.h ├── gpagenkeyadvop.h ├── gpafileverifyop.h ├── gpastreamverifyop.h ├── cm-dinsig.h ├── gpaimportclipop.h ├── gpakeyexpireop.h ├── gpaimportserverop.h ├── gpaexportserverop.h ├── gpaexportclipop.h ├── gpagenkeycardop.h ├── gpaoperation.h ├── gpastreamdecryptop.h ├── gpaprogressdlg.h ├── verifydlg.h ├── gpaexportop.h ├── gpaprogressbar.h └── gpafiledecryptop.h ├── st-fonts ├── README ├── cur-8x14b-a.png ├── cur-8x14b-b.png ├── cur-8x14b-c.png ├── cur-8x14b-d.png ├── cur-8x14m-a.png ├── cur-8x14m-b.png ├── cur-8x14m-c.png ├── cur-8x14m-d.png ├── cur-13x24b-a.png ├── cur-13x24b-b.png ├── cur-13x24b-c.png ├── cur-13x24b-d.png ├── cur-13x24m-a.png ├── cur-13x24m-b.png ├── cur-13x24m-c.png ├── cur-13x24m-d.png └── ChangeLog-2011 ├── doc ├── Makefile.am └── HACKING ├── m4 ├── Makefile.am ├── check_zlib.m4 ├── nls.m4 └── ChangeLog-2011 ├── to-utf8 ├── autogen.rc ├── gpa.desktop ├── README.W32 ├── ChangeLog ├── .gitignore ├── gpadefs.h.in ├── acinclude.m4 ├── Changelog-pixmaps-2011 ├── THANKS └── gpa.spec /gpa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/gpa.png -------------------------------------------------------------------------------- /po/nl.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/po/nl.po -------------------------------------------------------------------------------- /po/tr.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/po/tr.po -------------------------------------------------------------------------------- /po/pt_BR.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/po/pt_BR.po -------------------------------------------------------------------------------- /po/zh_TW.po: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/po/zh_TW.po -------------------------------------------------------------------------------- /src/gpa.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/src/gpa.ico -------------------------------------------------------------------------------- /src/qdchkpwd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/src/qdchkpwd.c -------------------------------------------------------------------------------- /src/gpa-logo.ppm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/src/gpa-logo.ppm -------------------------------------------------------------------------------- /src/gpa-resource.rc: -------------------------------------------------------------------------------- 1 | 1 ICON "gpa.ico" 2 | 3 | #include "versioninfo.rc" 4 | -------------------------------------------------------------------------------- /st-fonts/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/README -------------------------------------------------------------------------------- /po/ChangeLog-2011: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/po/ChangeLog-2011 -------------------------------------------------------------------------------- /doc/Makefile.am: -------------------------------------------------------------------------------- 1 | 2 | EXTRA_DIST = gpa.1 HACKING 3 | 4 | man_MANS = gpa.1 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/gpa-marshal.list: -------------------------------------------------------------------------------- 1 | INT:STRING,STRING 2 | VOID:INT,INT 3 | VOID:POINTER,POINTER 4 | -------------------------------------------------------------------------------- /src/versioninfo.rc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/src/versioninfo.rc.in -------------------------------------------------------------------------------- /st-fonts/cur-8x14b-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-8x14b-a.png -------------------------------------------------------------------------------- /st-fonts/cur-8x14b-b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-8x14b-b.png -------------------------------------------------------------------------------- /st-fonts/cur-8x14b-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-8x14b-c.png -------------------------------------------------------------------------------- /st-fonts/cur-8x14b-d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-8x14b-d.png -------------------------------------------------------------------------------- /st-fonts/cur-8x14m-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-8x14m-a.png -------------------------------------------------------------------------------- /st-fonts/cur-8x14m-b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-8x14m-b.png -------------------------------------------------------------------------------- /st-fonts/cur-8x14m-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-8x14m-c.png -------------------------------------------------------------------------------- /st-fonts/cur-8x14m-d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-8x14m-d.png -------------------------------------------------------------------------------- /st-fonts/cur-13x24b-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-13x24b-a.png -------------------------------------------------------------------------------- /st-fonts/cur-13x24b-b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-13x24b-b.png -------------------------------------------------------------------------------- /st-fonts/cur-13x24b-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-13x24b-c.png -------------------------------------------------------------------------------- /st-fonts/cur-13x24b-d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-13x24b-d.png -------------------------------------------------------------------------------- /st-fonts/cur-13x24m-a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-13x24m-a.png -------------------------------------------------------------------------------- /st-fonts/cur-13x24m-b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-13x24m-b.png -------------------------------------------------------------------------------- /st-fonts/cur-13x24m-c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-13x24m-c.png -------------------------------------------------------------------------------- /st-fonts/cur-13x24m-d.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gpg/gpa/master/st-fonts/cur-13x24m-d.png -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | # Set of available languages. 2 | de cs fr zh_TW zh_CN pt_BR ja nl es sv pl ru tr ar 3 | -------------------------------------------------------------------------------- /src/gpl-text.h: -------------------------------------------------------------------------------- 1 | /* gpl-text.h - The text of the GPL. */ 2 | 3 | const char *get_gpl_text (void); 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /po/quot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | -------------------------------------------------------------------------------- /m4/Makefile.am: -------------------------------------------------------------------------------- 1 | EXTRA_DIST = gettext.m4 iconv.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 \ 2 | nls.m4 po.m4 progtest.m4 check_zlib.m4 \ 3 | gpgme.m4 gpg-error.m4 libassuan.m4 4 | 5 | 6 | -------------------------------------------------------------------------------- /po/.gitattributes: -------------------------------------------------------------------------------- 1 | # You should add 2 | #[filter "cleanpo"] 3 | # clean = "awk '/^\"POT-Creation-Date:/&&!s{s=1;next};!/^#: /{print}'" 4 | # to your config file. 5 | 6 | /??.po filter=cleanpo 7 | /??_??.po filter=cleanpo 8 | -------------------------------------------------------------------------------- /po/boldquot.sed: -------------------------------------------------------------------------------- 1 | s/"\([^"]*\)"/“\1”/g 2 | s/`\([^`']*\)'/‘\1’/g 3 | s/ '\([^`']*\)' / ‘\1’ /g 4 | s/ '\([^`']*\)'$/ ‘\1’/g 5 | s/^'\([^`']*\)' /‘\1’ /g 6 | s/“”/""/g 7 | s/“/“/g 8 | s/”/”/g 9 | s/‘/‘/g 10 | s/’/’/g 11 | -------------------------------------------------------------------------------- /to-utf8: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Convert a po file to utf8 3 | 4 | if [ $# != 1 ]; then 5 | echo "usage: to-utf8 pofile" >&2 6 | exit 1 7 | fi 8 | 9 | fname="$1" 10 | fromset=`sed -n '/^"Content-Type:/ s/.*charset=\([a-zA-Z0-9_-]*\).*/\1/p' $fname` 11 | 12 | iconv -f $fromset -t utf-8 < $fname | \ 13 | sed '/^"Content-Type:/ s/charset=[a-zA-Z0-9_-]*/charset=utf-8/' 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /po/to-utf8: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Convert a po file to utf8 3 | 4 | if [ $# != 1 ]; then 5 | echo "usage: to-utf8 pofile" >&2 6 | exit 1 7 | fi 8 | 9 | fname="$1" 10 | fromset=`sed -n '/^"Content-Type:/ s/.*charset=\([a-zA-Z0-9_-]*\).*/\1/p' $fname` 11 | 12 | iconv --from-code=$fromset --to-code=utf-8 < $fname | \ 13 | sed '/^"Content-Type:/ s/charset=[a-zA-Z0-9_-]*/charset=utf-8/' 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /autogen.rc: -------------------------------------------------------------------------------- 1 | # autogen.sh configuration for GPA -*- sh -*- 2 | 3 | configure_opts=" 4 | --with-zlib=@SYSROOT@ 5 | --with-gpgme-prefix=@SYSROOT@ 6 | --with-libiconv-prefix=@SYSROOT@ 7 | SYSROOT=\"@SYSROOT@\" 8 | PKG_CONFIG=\"@SYSROOT@/bin/pkg-config\" 9 | PKG_CONFIG_LIBDIR=\"@SYSROOT@/lib/pkgconfig\" 10 | " 11 | 12 | final_info="./configure --enable-maintainer-mode && make" 13 | -------------------------------------------------------------------------------- /gpa.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=gpa 3 | Name[sv]=gpa 4 | Name[en_US.ISO8859-1]=gpa 5 | GenericName=GNU Privacy Assistant 6 | GenericName[sv]=GNU Integritets-hjälpreda 7 | GenericName[en_US.ISO8859-1]=GNU Privacy Assistant 8 | Exec=gpa %f 9 | Icon=gpa 10 | Terminal=false 11 | Type=Application 12 | Categories=GTK;Application;Security;Utility; 13 | MimeType=application/pgp-encrypted;application/pgp-signature 14 | -------------------------------------------------------------------------------- /st-fonts/ChangeLog-2011: -------------------------------------------------------------------------------- 1 | 2011-12-01 Werner Koch 2 | 3 | NB: ChangeLog files are no longer manually maintained. Starting 4 | on December 1st, 2011 we put change information only in the GIT 5 | commit log, and generate a top-level ChangeLog file from logs at 6 | "make dist". See doc/HACKING for details. 7 | 8 | 2000-07-27 15:33:48 Werner Koch (wk@habibti.openit.de) 9 | 10 | Converted the original GIF fonts to PNG. 11 | -------------------------------------------------------------------------------- /README.W32: -------------------------------------------------------------------------------- 1 | NOTE, THAT THE INFORMATION BELOW ARE PRETTY MUCH OUT OF DATE! 2 | 3 | Some hints for compiling GPA for Windows: 4 | 5 | - supported compiler: i686-w64-mingw32 and some older mingw versions. 6 | 7 | - once you have the cross-compiler set up: 8 | ./autogen.sh 9 | ./autogen.sh --build-w32 10 | make 11 | and if you want to make gpa.exe lean: 12 | cd src 13 | rm gpa 14 | (compile gpa again with option -mwindows) 15 | mingw32 strip gpa 16 | -------------------------------------------------------------------------------- /po/remove-potcdate.sin: -------------------------------------------------------------------------------- 1 | # Sed script that remove the POT-Creation-Date line in the header entry 2 | # from a POT file. 3 | # 4 | # The distinction between the first and the following occurrences of the 5 | # pattern is achieved by looking at the hold space. 6 | /^"POT-Creation-Date: .*"$/{ 7 | x 8 | # Test if the hold space is empty. 9 | s/P/P/ 10 | ta 11 | # Yes it was empty. First occurrence. Remove the line. 12 | g 13 | d 14 | bb 15 | :a 16 | # The hold space was nonempty. Following occurrences. Do nothing. 17 | x 18 | :b 19 | } 20 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | No more ChangeLog files 2 | ======================== 3 | 4 | Do not modify any of the ChangeLog files in GPA. Starting on 5 | December 12st, 2011 we put change information only in the GIT commit 6 | log, and generate a top-level ChangeLog file from logs at "make dist" 7 | time. As such, there are strict requirements on the form of the 8 | commit log messages. See doc/HACKING for details. The old ChangeLog 9 | files have all be renamed to ChangeLog-2011. 10 | 11 | 12 | 13 | Local Variables: 14 | buffer-read-only: t 15 | mode: text 16 | End: 17 | -------------------------------------------------------------------------------- /src/gpa_blue_key.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *gpa_blue_key_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "22 11 4 1", 5 | " c Gray0", 6 | ". c #72706f", 7 | "X c #c2ebff", 8 | "o c None", 9 | /* pixels */ 10 | "oooooooooooooooo ooooo", 11 | "ooooooooooooo X ooo", 12 | "ooooooooooooo XXXXX o", 13 | "oo XXXX X o", 14 | "o XXXXXXXXXXXXXXX . X ", 15 | "o XXXXXXXXXXXXXXX . X ", 16 | "o. X X XXXXX XX ", 17 | "oo ... .. XXXXXX .", 18 | "oo........oo. XXXXXX o", 19 | "ooooooooooooo. XXX .o", 20 | "oooooooooooooo. ...o" 21 | }; 22 | -------------------------------------------------------------------------------- /src/gpa_yellow_key.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *gpa_yellow_key_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "22 11 4 1", 5 | " c Gray0", 6 | ". c #72706f", 7 | "X c #f6da24", 8 | "o c None", 9 | /* pixels */ 10 | "oooooooooooooooo ooooo", 11 | "ooooooooooooooo X oooo", 12 | "ooooooooooooo XXX oo", 13 | "oo XXXXXX o", 14 | "o XXXXXXXXXXXXXXXX XX ", 15 | " XXXXXXXXXXXXXXXX . X ", 16 | ". X X X XXXXXX X .", 17 | "o. . . . ... XXXXX ..", 18 | "oo...o.o..oo. XXXXX .o", 19 | "ooooooooooooo. XXX ..o", 20 | "oooooooooooooo. ...o" 21 | }; 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Makefile.in 2 | aclocal.m4 3 | autom4te.cache/ 4 | configure 5 | config.h.in 6 | config.h 7 | config.log 8 | config.status 9 | doc/gpa.info* 10 | doc/stamp-vti 11 | doc/version.texi 12 | po/gpa.pot 13 | po/POTFILES 14 | stamp-h1 15 | Makefile 16 | .deps/ 17 | /VERSION 18 | src/versioninfo.rc 19 | 20 | # Files created by make when not using a VPATH build 21 | *.o 22 | po/en@boldquot.insert-header 23 | po/en@boldquot.po 24 | po/en@quot.insert-header 25 | po/en@quot.po 26 | po/stamp-po 27 | po/remove-potcdate.sed 28 | src/gpa 29 | src/dndtest 30 | src/gpa-marshal.c 31 | src/gpa-marshal.h 32 | src/org.gnupg.gpa.src.c 33 | src/org.gnupg.gpa.src.h 34 | /gpadefs.h 35 | -------------------------------------------------------------------------------- /gpadefs.h.in: -------------------------------------------------------------------------------- 1 | /* Generated automatically by make from gpadefs.h.in. */ 2 | 3 | /* This file is expected to be included by config.h only. It's 4 | purpose is to provide parameters (e.g. "datadir") whose final 5 | values are determined at make-time, not at configure-time. */ 6 | 7 | #ifdef HAVE_DRIVE_LETTERS 8 | /* These W32 locations are fallbacks and not used with current gpg 9 | installations. */ 10 | # define GPA_DATADIR "c:/lib/gnupg" 11 | # define GPG_PROGRAM "c:/gnupg/gpg" 12 | # define GPA_KEYSERVER_HELPERS_DIR "c:/gnupg" 13 | #else 14 | # define GPA_DATADIR "@datadir@" 15 | # define GPG_PROGRAM GPG_PATH 16 | # define GPA_KEYSERVER_HELPERS_DIR KEYSERVER_HELPERS_DIR 17 | #endif 18 | -------------------------------------------------------------------------------- /acinclude.m4: -------------------------------------------------------------------------------- 1 | dnl 2 | dnl autoconf macros for this project 3 | dnl 4 | 5 | dnl GNUPG_CHECK_TYPEDEF(TYPE, HAVE_NAME) 6 | dnl Check whether a typedef exists and create a #define $2 if it exists 7 | dnl 8 | AC_DEFUN([GNUPG_CHECK_TYPEDEF], 9 | [ AC_MSG_CHECKING(for $1 typedef) 10 | AC_CACHE_VAL(gnupg_cv_typedef_$1, 11 | [AC_TRY_COMPILE([#define _GNU_SOURCE 1 12 | #include 13 | #include ], [ 14 | #undef $1 15 | int a = sizeof($1); 16 | ], gnupg_cv_typedef_$1=yes, gnupg_cv_typedef_$1=no )]) 17 | AC_MSG_RESULT($gnupg_cv_typedef_$1) 18 | if test "$gnupg_cv_typedef_$1" = yes; then 19 | AC_DEFINE($2,1,[Defined if a `]$1[' is typedef'd]) 20 | fi 21 | ]) 22 | -------------------------------------------------------------------------------- /po/insert-header.sin: -------------------------------------------------------------------------------- 1 | # Sed script that inserts the file called HEADER before the header entry. 2 | # 3 | # At each occurrence of a line starting with "msgid ", we execute the following 4 | # commands. At the first occurrence, insert the file. At the following 5 | # occurrences, do nothing. The distinction between the first and the following 6 | # occurrences is achieved by looking at the hold space. 7 | /^msgid /{ 8 | x 9 | # Test if the hold space is empty. 10 | s/m/m/ 11 | ta 12 | # Yes it was empty. First occurrence. Read the file. 13 | r HEADER 14 | # Output the file's contents by reading the next line. But don't lose the 15 | # current line while doing this. 16 | g 17 | N 18 | bb 19 | :a 20 | # The hold space was nonempty. Following occurrences. Do nothing. 21 | x 22 | :b 23 | } 24 | -------------------------------------------------------------------------------- /Changelog-pixmaps-2011: -------------------------------------------------------------------------------- 1 | 2011-12-01 Werner Koch 2 | 3 | NB: ChangeLog files are no longer manually maintained. Starting 4 | on December 1st, 2011 we put change information only in the GIT 5 | commit log, and generate a top-level ChangeLog file from logs at 6 | "make dist". See doc/HACKING for details. 7 | 8 | 2009-02-03 Werner Koch 9 | 10 | * blue_yellow_cardkey.xpm: New. 11 | 12 | 2008-12-17 Marcus Brinkmann 13 | 14 | * smartcard.xpm: Darken border. 15 | 16 | 2008-12-16 Werner Koch 17 | 18 | * smartcard.xpm: New. Create simple smartcard icon. 19 | 20 | 2008-01-24 Marcus Brinkmann 21 | 22 | * Makefile.am (noinst_HEADERS): Add keyringeditor.xpm. 23 | 24 | 2002-12-12 Miguel Coca 25 | 26 | * New directory with the old icons, in some cases resized to fit the 27 | standard toolbar size. 28 | -------------------------------------------------------------------------------- /src/open_folder.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * open_folder_xpm[] = { 3 | "18 15 23 1", 4 | " c None", 5 | ". c #000000", 6 | "+ c #0B0B0B", 7 | "@ c #A39D64", 8 | "# c #BAB670", 9 | "$ c #131313", 10 | "% c #8C8659", 11 | "& c #D1CE7B", 12 | "* c #E7E587", 13 | "= c #FEFE94", 14 | "- c #FFFF94", 15 | "; c #FFEE94", 16 | "> c #FFE694", 17 | ", c #79714F", 18 | "' c #FFF694", 19 | ") c #FFDE94", 20 | "! c #FFD694", 21 | "~ c #948D5D", 22 | "{ c #BEB972", 23 | "] c #FFCE94", 24 | "^ c #D8D580", 25 | "/ c #EBEA8A", 26 | "( c #D8D680", 27 | " .. ", 28 | " +..@#. ", 29 | " .. .$.%@#&*=-...", 30 | ".%%..%%@#&*=-..;>.", 31 | ".,%%%@#&*=-..';>).", 32 | " .,@#&*=-..-';>)!.", 33 | " .~{*=-..--';>)!].", 34 | " .^/-.---';>)!]].", 35 | " .((/.--';>)!]]].", 36 | " .((.-';>)!]]]].", 37 | " .((.';>)!]]].. ", 38 | " .(.;>)!]].. ", 39 | " .(.>)!].. ", 40 | " ..)!.. ", 41 | " ... "}; 42 | -------------------------------------------------------------------------------- /src/Signals: -------------------------------------------------------------------------------- 1 | -*- org -*- 2 | 3 | This file documents the use of Glib signals in GPA. 4 | 5 | ** changed_ui_mode 6 | Emitted if the preference setting is changed from simple to advanced 7 | user interface mode and vice versa. 8 | *** Defined: 9 | file:options.c 10 | *** Connected: 11 | file:keyring.c::keyring_ui_mode_changed 12 | *** Emitted: 13 | file:options.c::gpa_options_set_simplified_ui 14 | 15 | ** changed_show_advanced_option 16 | Emitted if the preference setting for "show advanced options" is changed. 17 | user interface mode and vice versa. 18 | *** Defined: 19 | file:options.c 20 | *** Connected: 21 | *** Emitted: 22 | file:options.c::gpa_options_set_show_advanced_options 23 | 24 | 25 | ** changed_default_key 26 | 27 | ** changed_default_keyserver 28 | 29 | ** changed_view 30 | 31 | 32 | ** changed_backup_generated 33 | 34 | -------------------------------------------------------------------------------- /src/smartcard.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * smartcard_xpm[] = { 3 | "24 24 6 1", 4 | " c None", 5 | ". c #CFCCC8", 6 | "+ c #8F8D8B", 7 | "@ c #FFFFFF", 8 | "# c #FFD700", 9 | "$ c #FF9D00", 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 | -------------------------------------------------------------------------------- /src/blue_key.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *blue_key_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "22 14 21 1", 5 | " c Gray0", 6 | ". c Gray17", 7 | "X c #353939", 8 | "o c #383c3c", 9 | "O c #3f4747", 10 | "+ c #484c4c", 11 | "@ c #485151", 12 | "# c #495555", 13 | "$ c #4d5555", 14 | "% c #555555", 15 | "& c #5f5f5f", 16 | "* c #707878", 17 | "= c Gray50", 18 | "- c #8e8e8e", 19 | "; c Gray61", 20 | ": c #92aaaa", 21 | "> c #aaaaaa", 22 | ", c #b9b9b9", 23 | "< c #d5d5d5", 24 | "1 c #daffff", 25 | "2 c None", 26 | /* pixels */ 27 | "2222222222222222222222", 28 | "2222222222222222222222", 29 | "222222222222>$##$$2222", 30 | "222222222222@:111:@222", 31 | "22>$$$$$$$$$#111:::+22", 32 | "2>@111111111111:OO: 22", 33 | "2+:111111111111:Oo: 22", 34 | "2>X# O O#O.O1111::1 22", 35 | "22;====--=-&O11111#X22", 36 | "22222222<<2<*#:11#X;22", 37 | "222222222222,&XOO%=222", 38 | "2222222222222<;--;2222", 39 | "2222222222222222222222", 40 | "2222222222222222222222" 41 | }; 42 | -------------------------------------------------------------------------------- /src/hidewnd.h: -------------------------------------------------------------------------------- 1 | /* hidewnd.h 2 | * Copyright (C) 2001 Timo Schulz 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef HIDEWND_H 22 | #define HIDEWND_H 23 | 24 | int hide_gpa_console_window( void ); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /src/format-dn.h: -------------------------------------------------------------------------------- 1 | /* format-dn.h - Functions to format an ASN.1 Distinguished Name. 2 | * Copyright (C) 2009 g10 Code GmbH. 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef FORMAT_DN_H 21 | #define FORMAT_DN_H 22 | 23 | char *gpa_format_dn (const char *name); 24 | 25 | #endif /*FORMAT_DN_H*/ 26 | -------------------------------------------------------------------------------- /src/org.gnupg.gpa.src.gresource.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | blue_key.xpm 5 | blue_yellow_cardkey.xpm 6 | blue_yellow_key.xpm 7 | brief.xpm 8 | decrypt.xpm 9 | detailed.xpm 10 | 11 | delete.xpm 12 | edit.xpm 13 | encrypt.xpm 14 | export.xpm 15 | gpa_blue_key.xpm 16 | gpa_logo.xpm 17 | gpa_yellow_key.xpm 18 | import.xpm 19 | 20 | keyringeditor.xpm 21 | keyring.xpm 22 | sign.xpm 23 | smartcard.xpm 24 | 25 | verify.xpm 26 | wizard_backup.xpm 27 | wizard_genkey.xpm 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /src/qdchkpwd.h: -------------------------------------------------------------------------------- 1 | /* QDCHKPWD - Quick and Dirty CHecK for PassWorDs 2 | * 3 | * Copyright (C) 2002 G-N-U GmbH - http://www.g-n-u.de 4 | * 5 | * QDCHKPWD is free software; you can redistribute it and/or modify 6 | * it under the terms of the GNU General Public License as published 7 | * by the Free Software Foundation; either version 2 of the License, 8 | * or (at your option) any later version. 9 | * 10 | * QDCHKPWD is distributed in the hope that it will be useful, 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | * GNU General Public License for more details. 14 | * 15 | * You should have received a copy of the GNU General Public License 16 | * along with QDCHKPWD; if not, write to the Free Software Foundation, 17 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 18 | */ 19 | 20 | #ifndef QDCHKPWD_H 21 | #define QDCHKPWD_H 22 | 23 | extern double qdchkpwd (const char *pwd); 24 | 25 | #endif /* QDCHKPWD_H */ 26 | -------------------------------------------------------------------------------- /src/filetype.h: -------------------------------------------------------------------------------- 1 | /* filetype.h - Identify file types 2 | * Copyright (C) 2012 g10 Code GmbH 3 | * 4 | * This file is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation; either version 2.1 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This file is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program; if not, see . 16 | */ 17 | 18 | #ifndef FILETYPE_H 19 | #define FILETYPE_H 20 | 21 | int is_cms_file (const char *fname); 22 | int is_cms_data (const char *data, size_t datalen); 23 | int is_cms_data_ext (gpgme_data_t dh); 24 | 25 | 26 | #endif /*FILETYPE_H*/ 27 | -------------------------------------------------------------------------------- /src/certchain.h: -------------------------------------------------------------------------------- 1 | /* certchain.h - Definitions of functions to show a certification chain. 2 | * Copyright (C) 2009 g10 Code GmbH. 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef CERTCHAIN_H 21 | #define CERTCHAIN_H 22 | 23 | GtkWidget *gpa_certchain_new (void); 24 | void gpa_certchain_update (GtkWidget *list, gpgme_key_t key); 25 | 26 | 27 | 28 | #endif /*CERTCHAIN_H*/ 29 | -------------------------------------------------------------------------------- /src/get-path.h: -------------------------------------------------------------------------------- 1 | /* get-path.h - Find a system path. 2 | Copyright (C) 2008 g10 Code GmbH. 3 | 4 | This file is part of GPA. 5 | 6 | GPA is free software; you can redistribute it and/or modify it 7 | under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 2 of the License, or 9 | (at your option) any later version. 10 | 11 | GPA is distributed in the hope that it will be useful, but 12 | WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | GNU General Public License for more details. 15 | 16 | You should have received a copy of the GNU General Public License along 17 | with this program; if not, write to the Free Software Foundation, Inc., 18 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ 19 | 20 | #ifndef GET_PATH_H 21 | #define GET_PATH_H 22 | 23 | /* Get the path to the default home directory. */ 24 | gchar *default_homedir (void); 25 | 26 | #endif /* GET_PATH_H */ 27 | 28 | -------------------------------------------------------------------------------- /src/keyserver.h: -------------------------------------------------------------------------------- 1 | /* keyserver.h 2 | * Copyright (C) 2001 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef KEYSERVER_H 22 | #define KEYSERVER_H 23 | 24 | #include 25 | 26 | 27 | int keyserver_read_list (const gchar *filename); 28 | GList *keyserver_get_as_glist (void); 29 | 30 | 31 | #endif /*KEYSERVER_H*/ 32 | -------------------------------------------------------------------------------- /m4/check_zlib.m4: -------------------------------------------------------------------------------- 1 | # check_zlib.m4 - autoconf macro to detect zlib. 2 | # Copyright (C) 2005 g10 Code GmbH 3 | # 4 | # This file is free software; as a special exception the author gives 5 | # unlimited permission to copy and/or distribute it, with or without 6 | # modifications, as long as this notice is preserved. 7 | # 8 | # This file is distributed in the hope that it will be useful, but 9 | # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the 10 | # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 11 | 12 | 13 | dnl zlib test 14 | AC_DEFUN([CHECK_ZLIB], [ 15 | AC_ARG_WITH(zlib, AS_HELP_STRING([--with-zlib=PATH], 16 | [Look for zlib library installed in PATH/lib and headers in 17 | PATH/include rather than default include and library paths. (Use an 18 | absolute path)]), 19 | CPPFLAGS="$CPPFLAGS -I${withval}/include" 20 | LDFLAGS="$LDFLAGS -L${withval}/lib", 21 | ) 22 | 23 | AC_CHECK_LIB(z, compress, 24 | LIBS="$LIBS -lz", 25 | AC_MSG_ERROR([GPA requires zlib (https://zlib.net/ or install Debian package zlib1g-dev)])) 26 | 27 | AC_SUBST(LIBZ) 28 | ]) 29 | -------------------------------------------------------------------------------- /src/folder.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * folder_xpm[] = { 3 | "18 14 34 1", 4 | " c None", 5 | ". c #000000", 6 | "+ c #6D4D2B", 7 | "@ c #FFFFFF", 8 | "# c #FFFF94", 9 | "$ c #FEFEF7", 10 | "% c #FFF394", 11 | "& c #FFED94", 12 | "* c #FFF794", 13 | "= c #FEEC94", 14 | "- c #FFEB94", 15 | "; c #FFE594", 16 | "> c #FFFB94", 17 | ", c #FFF594", 18 | "' c #FFEF94", 19 | ") c #FFE994", 20 | "! c #FFE394", 21 | "~ c #FFDD94", 22 | "{ c #FFF994", 23 | "] c #FFE794", 24 | "^ c #FFE194", 25 | "/ c #FFDB94", 26 | "( c #FFD594", 27 | "_ c #FFFD94", 28 | ": c #FFF194", 29 | "< c #FFDF94", 30 | "[ c #FED693", 31 | "} c #FFD394", 32 | "| c #FFCE94", 33 | "1 c #FFD794", 34 | "2 c #FFD194", 35 | "3 c #FFCF94", 36 | "4 c #FFD994", 37 | "5 c #FED293", 38 | " .. ", 39 | " .. .+@...", 40 | " .#. .+$..%&.", 41 | " .#..+$..*=-;.", 42 | " .++$..>,')!~.", 43 | " .$..#{%&]^/(.", 44 | " ..#_*:-;<[}|.", 45 | " ..>,')!~12||.", 46 | " ..%&]^/(3|||.", 47 | " ..-;<4}|||.. ", 48 | " ..!~125|.. ", 49 | " ../(3|.. ", 50 | " .}|.. ", 51 | " .. "}; 52 | -------------------------------------------------------------------------------- /src/keydeletedlg.h: -------------------------------------------------------------------------------- 1 | /* keydeletedlg.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef KEYDELETEDLG_H 22 | #define KEYDELETEDLG_H 23 | 24 | #include 25 | gboolean gpa_delete_dialog_run (GtkWidget * parent, gpgme_key_t key); 26 | 27 | #endif /* KEYDELETEDLG_H */ 28 | -------------------------------------------------------------------------------- /src/harddisk.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * harddisk_xpm[] = { 3 | "22 16 30 1", 4 | " c None", 5 | ". c #000000", 6 | "+ c #7C7C7C", 7 | "@ c #7F7F7F", 8 | "# c #838383", 9 | "$ c #979797", 10 | "% c #989898", 11 | "& c #8B8B8B", 12 | "* c #626262", 13 | "= c #B4B4B4", 14 | "- c #CECECE", 15 | "; c #CFCFCF", 16 | "> c #BBBBBB", 17 | ", c #888888", 18 | "' c #767676", 19 | ") c #B0B0B0", 20 | "! c #BCBCBC", 21 | "~ c #C8C8C8", 22 | "{ c #CDCDCD", 23 | "] c #A2A2A2", 24 | "^ c #7E7E7E", 25 | "/ c #8E8E8E", 26 | "( c #AFAFAF", 27 | "_ c #BEBEBE", 28 | ": c #C0C0C0", 29 | "< c #B2B2B2", 30 | "[ c #939393", 31 | "} c #595959", 32 | "| c #00CE00", 33 | "1 c #797979", 34 | " . ", 35 | " ..+.. ", 36 | " ..@@@@@.. ", 37 | " ..#$%&@@@@@.. ", 38 | " ..*=-;;;>,@@@@@. ", 39 | " ..@');;;;;;!@@@@@@.", 40 | " ..@@@@!;;;;;;~@@@@...", 41 | ".@@@@@@${;;;;-]@@..@@.", 42 | "..^@@@@@/(_:<[}..@@@@.", 43 | ".@..@@@@@@@@+..@@@@.. ", 44 | ".@@@..@@@@@..@@@@.. ", 45 | ".@@@@@..@..@@@@.. ", 46 | " ..@@@|@.@@@@.. ", 47 | " ..@@@.@1.. ", 48 | " ..@... ", 49 | " .. "}; 50 | -------------------------------------------------------------------------------- /src/keysigndlg.h: -------------------------------------------------------------------------------- 1 | /* keysigndlg.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef KEYSIGNDLG_H 22 | #define KEYSIGNDLG_H 23 | 24 | #include 25 | 26 | gboolean gpa_key_sign_run_dialog (GtkWidget * parent, gpgme_key_t key, 27 | gboolean * sign_locally); 28 | 29 | 30 | #endif /* KEYSIGNDLG_H */ 31 | -------------------------------------------------------------------------------- /src/expirydlg.h: -------------------------------------------------------------------------------- 1 | /* expirydlg.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef EXPIRYDLG_H 22 | #define EXPIRYDLG_H 23 | 24 | #include 25 | gboolean gpa_expiry_dialog_run (GtkWidget * window, gpgme_key_t key, 26 | GDate ** new_date); 27 | 28 | #endif /* EXPIRYDLG_H */ 29 | -------------------------------------------------------------------------------- /src/ownertrustdlg.h: -------------------------------------------------------------------------------- 1 | /* keyring.c - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef OWNERTRUSTDLG_H 22 | #define OWNERTRUSTDLG_H 23 | 24 | #include 25 | #include 26 | 27 | gboolean gpa_ownertrust_run_dialog (gpgme_key_t key, GtkWidget *parent, 28 | gpgme_validity_t *new_trust); 29 | 30 | #endif /* OWNERTRUSTDLG_H */ 31 | -------------------------------------------------------------------------------- /src/gpa-tofu-list.h: -------------------------------------------------------------------------------- 1 | /* gpa-tofu-list.h - A list to show TOFU information 2 | * Copyright (C) 2016 g10 Code GmbH 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPA_TOFU_LIST_H 21 | #define GPA_TOFU_LIST_H 22 | 23 | #include 24 | 25 | /* Create a new TOFU list. */ 26 | GtkWidget * gpa_tofu_list_new (void); 27 | 28 | /* Set the key for which TOFU information shall be shown. */ 29 | void gpa_tofu_list_set_key (GtkWidget *list, gpgme_key_t key); 30 | 31 | #endif /* GPA_TOFU_LIST_H */ 32 | -------------------------------------------------------------------------------- /src/gpa-uid-list.h: -------------------------------------------------------------------------------- 1 | /* gpa-uid-list.h - A list to show TOFU information 2 | * Copyright (C) 2018 g10 Code GmbH 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPA_UID_LIST_H 21 | #define GPA_UID_LIST_H 22 | 23 | #include 24 | 25 | /* Create a new User ID list. */ 26 | GtkWidget * gpa_uid_list_new (void); 27 | 28 | /* Set the key for which User ID information shall be shown. */ 29 | void gpa_uid_list_set_key (GtkWidget *list, gpgme_key_t key); 30 | 31 | #endif /* GPA_UID_LIST_H */ 32 | -------------------------------------------------------------------------------- /src/siglist.h: -------------------------------------------------------------------------------- 1 | /* siglist.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef SIGLIST_H 22 | #define SIGLIST_H 23 | 24 | #include 25 | 26 | GtkWidget * gpa_siglist_new (void); 27 | /* Display the signatures on user ID idx. With idx == -1, display all 28 | * signatures. */ 29 | void gpa_siglist_set_signatures (GtkWidget * list, gpgme_key_t key, int idx); 30 | 31 | #endif /* SIGLIST_H */ 32 | -------------------------------------------------------------------------------- /src/keygendlg.h: -------------------------------------------------------------------------------- 1 | /* keygendlg.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * Copyright (C) 2008 g10 Code GmbH 4 | * 5 | * This file is part of GPA 6 | * 7 | * GPA is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GPA is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 20 | */ 21 | 22 | #ifndef KEYGENDLG_H 23 | #define KEYGENDLG_H 24 | 25 | #include 26 | #include "gpgmetools.h" 27 | 28 | gpa_keygen_para_t * gpa_key_gen_run_dialog (GtkWidget *parent, 29 | const char *forcard); 30 | 31 | 32 | #endif /* KEYSIGNDLG_H */ 33 | -------------------------------------------------------------------------------- /src/keyimpseldlg.h: -------------------------------------------------------------------------------- 1 | /* keyimpseldlg.h - The GNU Privacy Assistant - Key import selection dialog 2 | * Copyright (C) 2002 G-N-U GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY - without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with GPA. If not, write to the Free Software Foundation, Inc., 18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 | */ 20 | 21 | #ifndef KEYIMPSELDLG_H 22 | #define KEYIMPSELDLG_H 23 | 24 | #include 25 | 26 | void gpa_key_import_selection_dialog_run (GtkWidget *parent, 27 | GList *keys, 28 | const gchar *keyserver); 29 | 30 | #endif /* KEYIMPSELDLG_H */ 31 | -------------------------------------------------------------------------------- /src/passwddlg.h: -------------------------------------------------------------------------------- 1 | /* passwddlg.h - The GNU Privacy Assistant 2 | * Copyright (C) 2002, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | /* The "new passphrase" dialog. It's really a GPGME passphrase callback. */ 22 | 23 | #ifndef PASSWDDLG_H 24 | #define PASSWDDLG_H 25 | 26 | gpg_error_t gpa_change_passphrase_dialog_run (void *hook, 27 | const char *uid_hint, 28 | const char *passphrase_info, 29 | int prev_was_bad, int fd); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /src/gpasubkeylist.h: -------------------------------------------------------------------------------- 1 | /* gpasubkeylist.h - The GNU Privacy Assistant 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_SUBKEYLIST_H 22 | #define GPA_SUBKEYLIST_H 23 | 24 | #include 25 | 26 | /* Create a new subkey list. 27 | */ 28 | GtkWidget * gpa_subkey_list_new (void); 29 | 30 | /* Set the key whose subkeys should be displayed. 31 | */ 32 | void gpa_subkey_list_set_key (GtkWidget * list, gpgme_key_t key); 33 | 34 | #endif /* GPA_SUBKEYLIST_H */ 35 | -------------------------------------------------------------------------------- /src/blue_yellow_cardkey.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char * blue_yellow_cardkey_xpm[] = { 3 | "22 14 39 1", 4 | " c None", 5 | ". c #AAAAAA", 6 | "+ c #555129", 7 | "@ c #000000", 8 | "# c #554E12", 9 | "$ c #FFE935", 10 | "% c #AA9C24", 11 | "& c #514C24", 12 | "* c #555555", 13 | "= c #AAA67E", 14 | "- c #8E8E8E", 15 | "; c #7F7F7F", 16 | "> c #393939", 17 | ", c #716C45", 18 | "' c #47421A", 19 | ") c #2B2B2B", 20 | "! c #9C9C9C", 21 | "~ c #707070", 22 | "{ c #737575", 23 | "] c #6E7171", 24 | "^ c #868E8E", 25 | "/ c #9EAAAA", 26 | "( c #DAFFFF", 27 | "_ c #BCD5D5", 28 | ": c #5C5F5F", 29 | "< c #8C9C9C", 30 | "[ c #3B3F3F", 31 | "} c #92AAAA", 32 | "| c #495555", 33 | "1 c #404949", 34 | "2 c #353939", 35 | "3 c #697171", 36 | "4 c #3F4747", 37 | "5 c #545959", 38 | "6 c #828484", 39 | "7 c #303030", 40 | "8 c #FF9D00", 41 | "9 c #B9B9B9", 42 | "0 c #D5D5D5", 43 | " .+@@+ ", 44 | " .#$$$%&. ", 45 | " .********@%$$$$$& ", 46 | " =#$$$$$$$$$$$$#@##- ", 47 | " @$$$$$$$$$$$$$@;##> ", 48 | " ,#'#@''#''%$$$%#%#) ", 49 | " !**;;~;*~~'$$$$$$'{. ", 50 | " ]^/((_/((:'%$$$#,<[ ", 51 | " [}}}|}}(||*'@@'*{}1 ", 52 | " $$$$$$234*;56;;;/(|7 ", 53 | " $8$$$$-9;0 ;|((((}4! ", 54 | " $$$$$$ 24|||4;0 ", 55 | " $$$$$$ !;))*;0 ", 56 | " ... "}; 57 | -------------------------------------------------------------------------------- /po/en@quot.header: -------------------------------------------------------------------------------- 1 | # All this catalog "translates" are quotation characters. 2 | # The msgids must be ASCII and therefore cannot contain real quotation 3 | # characters, only substitutes like grave accent (0x60), apostrophe (0x27) 4 | # and double quote (0x22). These substitutes look strange; see 5 | # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html 6 | # 7 | # This catalog translates grave accent (0x60) and apostrophe (0x27) to 8 | # left single quotation mark (U+2018) and right single quotation mark (U+2019). 9 | # It also translates pairs of apostrophe (0x27) to 10 | # left single quotation mark (U+2018) and right single quotation mark (U+2019) 11 | # and pairs of quotation mark (0x22) to 12 | # left double quotation mark (U+201C) and right double quotation mark (U+201D). 13 | # 14 | # When output to an UTF-8 terminal, the quotation characters appear perfectly. 15 | # When output to an ISO-8859-1 terminal, the single quotation marks are 16 | # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to 17 | # grave/acute accent (by libiconv), and the double quotation marks are 18 | # transliterated to 0x22. 19 | # When output to an ASCII terminal, the single quotation marks are 20 | # transliterated to apostrophes, and the double quotation marks are 21 | # transliterated to 0x22. 22 | # 23 | -------------------------------------------------------------------------------- /src/convert.h: -------------------------------------------------------------------------------- 1 | /* convert.c - Conversion functions 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef CONVERT_H 21 | #define CONVERT_H 1 22 | 23 | const char *gpa_unit_expiry_time_string (int idx); 24 | char gpa_time_unit_from_string (const char *string); 25 | char *gpa_date_string (unsigned long t); 26 | char *gpa_expiry_date_string (unsigned long expiry_time); 27 | char *gpa_creation_date_string (unsigned long creation_time); 28 | char *gpa_update_origin_string (unsigned long last_update, unsigned int origin); 29 | const char *gpa_sex_char_to_string (char sex); 30 | 31 | #endif /*CONVERT_H*/ 32 | -------------------------------------------------------------------------------- /src/keygenwizard.h: -------------------------------------------------------------------------------- 1 | /* keygendlg.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef KEYGENWIZARD_H 22 | #define KEYGENWIZARD_H 23 | 24 | #include 25 | 26 | typedef gboolean (*GpaKeyGenWizardGenerateCb) (gpa_keygen_para_t *params, 27 | gboolean do_backup, 28 | gpointer data); 29 | 30 | GtkWidget *gpa_keygen_wizard_new (GtkWidget * parent, 31 | GpaKeyGenWizardGenerateCb generate_action, 32 | gpointer data); 33 | 34 | #endif /* KEYGENWIZARD_H */ 35 | -------------------------------------------------------------------------------- /src/blue_yellow_key.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *blue_yellow_key_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "22 14 39 1", 5 | " c Gray0", 6 | ". c #282929", 7 | "X c Gray17", 8 | "o c Gray19", 9 | "O c #353939", 10 | "+ c #393939", 11 | "@ c #3b3f3f", 12 | "# c #3f4747", 13 | "$ c #47421a", 14 | "% c #554e12", 15 | "& c #514c24", 16 | "* c #555129", 17 | "= c #404949", 18 | "- c #495555", 19 | "; c #555555", 20 | ": c #545959", 21 | "> c #5c5f5f", 22 | ", c #716c45", 23 | "< c #697171", 24 | "1 c #6e7171", 25 | "2 c Gray44", 26 | "3 c #737575", 27 | "4 c Gray50", 28 | "5 c #aa9c24", 29 | "6 c #aaa67e", 30 | "7 c #ffe935", 31 | "8 c #828484", 32 | "9 c #868e8e", 33 | "0 c #8e8e8e", 34 | "q c #8c9c9c", 35 | "w c Gray61", 36 | "e c #92aaaa", 37 | "r c #9eaaaa", 38 | "t c #aaaaaa", 39 | "y c #b9b9b9", 40 | "u c #bcd5d5", 41 | "i c #d5d5d5", 42 | "p c #daffff", 43 | "a c None", 44 | /* pixels */ 45 | "aaaaaaaaaaaat* *aaaaa", 46 | "aaaaaaaaaaat%7775&taaa", 47 | "aat;;;;;;;; 577777&aaa", 48 | "a6%777777777777% %%0aa", 49 | "a 7777777777777 4%%+aa", 50 | "a,%$% $$%$$57775%5%Xaa", 51 | "aw;;4424;22$777777$3ta", 52 | "aa19rppurpp>$5777%,q@a", 53 | "aa@eee-eep--;$ $;3e=a", 54 | "aawO##XO<#;4:8444rp-oa", 55 | "aaaw40w0y4ia4-ppppe#wa", 56 | "aaaaaaaaaaaaaO#---#4ia", 57 | "aaaaaaaaaaaaaw4XX;4iaa", 58 | "aaaaaaaaaaaaaaatttaaaa" 59 | }; 60 | -------------------------------------------------------------------------------- /m4/nls.m4: -------------------------------------------------------------------------------- 1 | # nls.m4 serial 5 (gettext-0.18) 2 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, 3 | dnl Inc. 4 | dnl This file is free software; the Free Software Foundation 5 | dnl gives unlimited permission to copy and/or distribute it, 6 | dnl with or without modifications, as long as this notice is preserved. 7 | dnl 8 | dnl This file can can be used in projects which are not available under 9 | dnl the GNU General Public License or the GNU Library General Public 10 | dnl License but which still want to provide support for the GNU gettext 11 | dnl functionality. 12 | dnl Please note that the actual code of the GNU gettext library is covered 13 | dnl by the GNU Library General Public License, and the rest of the GNU 14 | dnl gettext package package is covered by the GNU General Public License. 15 | dnl They are *not* in the public domain. 16 | 17 | dnl Authors: 18 | dnl Ulrich Drepper , 1995-2000. 19 | dnl Bruno Haible , 2000-2003. 20 | 21 | AC_PREREQ([2.50]) 22 | 23 | AC_DEFUN([AM_NLS], 24 | [ 25 | AC_MSG_CHECKING([whether NLS is requested]) 26 | dnl Default is enabled NLS 27 | AC_ARG_ENABLE([nls], 28 | [ --disable-nls do not use Native Language Support], 29 | USE_NLS=$enableval, USE_NLS=yes) 30 | AC_MSG_RESULT([$USE_NLS]) 31 | AC_SUBST([USE_NLS]) 32 | ]) 33 | -------------------------------------------------------------------------------- /src/helpmenu.h: -------------------------------------------------------------------------------- 1 | /* helpmenu.h - The GNU Privacy Assistant. 2 | Copyright (C) 2000, 2001 G-N-U GmbH. 3 | 4 | This file is part of GPA. 5 | 6 | GPA is free software; you can redistribute it and/or modify it 7 | under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | GPA is distributed in the hope that it will be useful, but WITHOUT 12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, see . */ 18 | 19 | #ifndef HELPMENU_H__ 20 | #define HELPMENU_H__ 21 | 22 | #include 23 | 24 | /* Display the about dialog. */ 25 | void gpa_help_about(GSimpleAction *simple, GVariant *parameter, gpointer user_data); 26 | 27 | static const GActionEntry gpa_help_menu_g_action_entries[] = 28 | { 29 | { "help", NULL }, 30 | #if 0 31 | { "help_contents", gpa_help_contents, NULL, NULL, NULL, { 0, 0, 0 } }, 32 | #endif 33 | { "help_about", gpa_help_about, NULL, NULL, NULL, { 0, 0, 0 } }, 34 | }; 35 | 36 | 37 | #endif /* HELPMENU_H__ */ 38 | -------------------------------------------------------------------------------- /src/gpawidgets.h: -------------------------------------------------------------------------------- 1 | /* gpawidgets.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPAWIDGETS_H 22 | #define GPAWIDGETS_H 23 | 24 | #include 25 | 26 | extern GtkWidget *gpa_key_info_new (gpgme_key_t key); 27 | 28 | extern GtkWidget *gpa_expiry_frame_new (GDate *expiryDate); 29 | extern gchar *gpa_expiry_frame_validate (GtkWidget *expiry_frame); 30 | extern gboolean gpa_expiry_frame_get_expiration(GtkWidget *expiry_frame, 31 | GDate **date, 32 | int *interval, gchar *unit); 33 | 34 | #endif /* GPAWIDGETS_H */ 35 | -------------------------------------------------------------------------------- /src/confdialog.h: -------------------------------------------------------------------------------- 1 | /* confdialog.c - The GNU Privacy Assistant 2 | * Copyright (C) 2008 g10 Code GmbH 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef CONFDIALOG_H 22 | #define CONFDIALOG_H 23 | 24 | GtkWidget *gpa_backend_config_dialog_new (void); 25 | 26 | 27 | char *gpa_load_gpgconf_string (const char *cname, const char *name); 28 | void gpa_store_gpgconf_string (const char *cname, 29 | const char *name, const char *value); 30 | 31 | 32 | 33 | char *gpa_load_configured_keyserver (void); 34 | void gpa_store_configured_keyserver (const char *value); 35 | char *gpa_configure_keyserver (GtkWidget *parent); 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /po/en@boldquot.header: -------------------------------------------------------------------------------- 1 | # All this catalog "translates" are quotation characters. 2 | # The msgids must be ASCII and therefore cannot contain real quotation 3 | # characters, only substitutes like grave accent (0x60), apostrophe (0x27) 4 | # and double quote (0x22). These substitutes look strange; see 5 | # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html 6 | # 7 | # This catalog translates grave accent (0x60) and apostrophe (0x27) to 8 | # left single quotation mark (U+2018) and right single quotation mark (U+2019). 9 | # It also translates pairs of apostrophe (0x27) to 10 | # left single quotation mark (U+2018) and right single quotation mark (U+2019) 11 | # and pairs of quotation mark (0x22) to 12 | # left double quotation mark (U+201C) and right double quotation mark (U+201D). 13 | # 14 | # When output to an UTF-8 terminal, the quotation characters appear perfectly. 15 | # When output to an ISO-8859-1 terminal, the single quotation marks are 16 | # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to 17 | # grave/acute accent (by libiconv), and the double quotation marks are 18 | # transliterated to 0x22. 19 | # When output to an ASCII terminal, the single quotation marks are 20 | # transliterated to apostrophes, and the double quotation marks are 21 | # transliterated to 0x22. 22 | # 23 | # This catalog furthermore displays the text between the quotation marks in 24 | # bold face, assuming the VT100/XTerm escape sequences. 25 | # 26 | -------------------------------------------------------------------------------- /doc/HACKING: -------------------------------------------------------------------------------- 1 | # HACKING -*- org -*- 2 | #+TITLE: Hacking notes for GPA 3 | #+STARTUP: showall 4 | 5 | * No more ChangeLog files 6 | 7 | Do not modify any of the ChangeLog files in Libassuan. Starting 8 | on December 12st, 2011 we put change information only in the GIT 9 | commit log, and generate a top-level ChangeLog file from logs at 10 | "make dist" time. As such, there are strict requirements on the 11 | form of the commit log messages. The old ChangeLog files have all 12 | be renamed to ChangeLog-2011 13 | 14 | 15 | * Commit log requirements 16 | 17 | Your commit log should always start with a one-line summary, the 18 | second line should be blank, and the remaining lines are usually 19 | ChangeLog-style entries for all affected files. However, it's fine 20 | -- even recommended -- to write a few lines of prose describing the 21 | change, when the summary and ChangeLog entries don't give enough of 22 | the big picture. Omit the leading TABs that you're used to seeing 23 | in a "real" ChangeLog file, but keep the maximum line length at 72 24 | or smaller, so that the generated ChangeLog lines, each with its 25 | leading TAB, will not exceed 80 columns. 26 | 27 | If you want to add extra text to the commit log which shall not be 28 | copied to the ChangeLog, use a separator consisting of two dashes at 29 | the start of a line (optionally followed by white space). 30 | -------------------------------------------------------------------------------- /src/gpawindowkeeper.h: -------------------------------------------------------------------------------- 1 | /* gpawindowkeeper.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPAWINDOWKEEPER_H 22 | #define GPAWINDOWKEEPER_H 23 | 24 | #include 25 | #include 26 | 27 | typedef struct 28 | { 29 | GtkWidget *window; 30 | GList *listParam; 31 | } 32 | GpaWindowKeeper; 33 | 34 | extern GpaWindowKeeper *gpa_windowKeeper_new (void); 35 | extern void gpa_windowKeeper_set_window (GpaWindowKeeper * keeper, 36 | GtkWidget * window); 37 | extern void gpa_windowKeeper_add_param (GpaWindowKeeper * keeper, 38 | gpointer param); 39 | extern void gpa_windowKeeper_release (GpaWindowKeeper * keeper); 40 | 41 | #endif /*GPAWINDOWKEEPER*/ 42 | -------------------------------------------------------------------------------- /src/strlist.h: -------------------------------------------------------------------------------- 1 | /* strlist.h 2 | * Copyright (C) 1998, 2000, 2001, 2006 Free Software Foundation, Inc. 3 | * 4 | * This file is part of JNLIB. 5 | * 6 | * JNLIB is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU Lesser General Public License as 8 | * published by the Free Software Foundation; either version 3 of 9 | * the License, or (at your option) any later version. 10 | * 11 | * JNLIB is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPA_STRLIST_H 21 | #define GPA_STRLIST_H 22 | 23 | struct string_list 24 | { 25 | struct string_list *next; 26 | unsigned int flags; 27 | char d[1]; 28 | }; 29 | typedef struct string_list *strlist_t; 30 | 31 | void free_strlist (strlist_t sl); 32 | strlist_t add_to_strlist (strlist_t *list, const char *string); 33 | 34 | strlist_t append_to_strlist (strlist_t *list, const char *string); 35 | 36 | strlist_t strlist_copy (strlist_t list); 37 | 38 | strlist_t strlist_prev (strlist_t head, strlist_t node); 39 | strlist_t strlist_last (strlist_t node); 40 | char * strlist_pop (strlist_t *list); 41 | 42 | #define FREE_STRLIST(a) do { free_strlist((a)); (a) = NULL ; } while(0) 43 | 44 | 45 | #endif /*GPA_STRLIST_H*/ 46 | -------------------------------------------------------------------------------- /src/w32reg.h: -------------------------------------------------------------------------------- 1 | /* w32reg.h - MS-Windows Registry access 2 | Copyright (C) 1998 Free Software Foundation, Inc. 3 | Copyright (C) 2008 g10 Code GmbH. 4 | 5 | This file is part of GPA. 6 | 7 | GPA is free software; you can redistribute it and/or modify it 8 | under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 2 of the License, or 10 | (at your option) any later version. 11 | 12 | GPA is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License along 18 | with this program; if not, write to the Free Software Foundation, Inc., 19 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ 20 | 21 | #ifndef W32REG_H 22 | #define W32REG_H 23 | 24 | /* Return a string from the Win32 Registry or NULL in case of error. 25 | Caller must release the return value with g_free (). A NULL for 26 | root is an alias for HKEY_CURRENT_USER with a fallback for 27 | HKEY_LOCAL_MACHINE. */ 28 | char *read_w32_registry_string (const char *root, 29 | const char *dir, const char *name); 30 | 31 | /* Write string VALUE into the W32 Registry ROOT, DIR and NAME. If 32 | NAME does not exist, it is created. */ 33 | int write_w32_registry_string (const char *root, const char *dir, 34 | const char *name, const char *value); 35 | 36 | #endif /* W32REG_H */ 37 | -------------------------------------------------------------------------------- /THANKS: -------------------------------------------------------------------------------- 1 | GPA was originally written by Markus Gerwinski. Other people 2 | contributed by reporting problems, suggesting various improvements or 3 | submitting actual code. Here is a list of those people. Help us keep 4 | it complete and free of errors. See the file AUTHORS for the current 5 | maintainer. 6 | 7 | Andreas Rönnquist gusnan at gusnan.se 8 | Beate Esser begrafik at aol.com 9 | Benedikt Wildenhain mail at benedikt-wildenhain.de 10 | Bernhard Herzog bh at intevation.de 11 | Clive Lin clive at CirX.ORG 12 | Jan-Oliver Wagner jan at intevation.de 13 | Markus Gerwinski markus at gnu.de 14 | Michael Mauch michael.mauch at gmx.de 15 | Michael Roth mroth at nessie.de 16 | Miguel Coca mcoca at gnu.org 17 | Peter Gerwinski peter.gerwinski at g-n-u.de 18 | Peter Hanecak hanecak at megaloman.sk 19 | Peter Neuhaus pneuhaus at openit.de 20 | Richard Becker becker at it-fabrik.de 21 | Shell Hung shell at linux.org.hk 22 | Timo Schulz ts at winpt.org 23 | Werner Koch wk at gnupg.org 24 | Francis J. A. Pinteric linuxdoctor at linux.ca 25 | Michael Anckaert xantor at linux.be 26 | Steffen Michalek steffen at michalek.de 27 | Mick Ohrberg Mick.Ohrberg at umb.com 28 | TAKAHASHI Tamotsu tamo at momonga-linux.org 29 | wwp chabredier.tristan at free.fr 30 | 31 | 32 | Thanks to Michael Roth for his PGG project which heavily influenced 33 | the formerly used GPAPA. 34 | 35 | The development of this software has partly been funded by the German 36 | Ministry for Economics and Technology under grant VIB3-68553.168-001/1999. 37 | -------------------------------------------------------------------------------- /src/server-access.h: -------------------------------------------------------------------------------- 1 | /* server-access.h - The GNU Privacy Assistant 2 | * Copyright (C) 2002, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | /* A set of functions to access the gpg keyserver helper programs. 22 | */ 23 | 24 | #ifndef SERVER_ACCESS_H 25 | #define SERVER_ACCESS_H 26 | #ifdef ENABLE_KEYSERVER_SUPPORT 27 | 28 | #include 29 | #include 30 | #include "gpa.h" 31 | 32 | /* Send the keys in NULL terminated array KEYS to the keyserver SERVER. 33 | * The PARENT window is used as parent for any dialog the function displays. 34 | */ 35 | gboolean server_send_keys (const gchar *server, const gchar *keyid, 36 | gpgme_data_t data, GtkWidget *parent); 37 | 38 | gboolean server_get_key (const gchar *server, const gchar *keyid, 39 | gpgme_data_t *data, GtkWidget *parent); 40 | 41 | #endif /*ENABLE_KEYSERVER_SUPPORT*/ 42 | #endif /*SERVER_ACCESS_H*/ 43 | -------------------------------------------------------------------------------- /src/membuf.h: -------------------------------------------------------------------------------- 1 | /* membuf.h - A simple implementation of a dynamic buffer 2 | * Copyright (C) 2001, 2003 Free Software Foundation, Inc. 3 | * 4 | * This file is part of GnuPG. 5 | * 6 | * GnuPG is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GnuPG is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPA_MEMBUF_H 21 | #define GPA_MEMBUF_H 22 | 23 | /* The definition of the structure is private, we only need it here, 24 | so it can be allocated on the stack. */ 25 | struct private_membuf_s 26 | { 27 | size_t len; 28 | size_t size; 29 | char *buf; 30 | int out_of_core; 31 | }; 32 | 33 | typedef struct private_membuf_s membuf_t; 34 | 35 | /* Return the current length of the membuf. */ 36 | #define get_membuf_len(a) ((a)->len) 37 | #define is_membuf_ready(a) ((a)->buf || (a)->out_of_core) 38 | #define MEMBUF_ZERO { 0, 0, NULL, 0} 39 | 40 | void init_membuf (membuf_t *mb, size_t initiallen); 41 | void put_membuf (membuf_t *mb, const void *buf, size_t len); 42 | void put_membuf_str (membuf_t *mb, const char *string); 43 | void *get_membuf (membuf_t *mb, size_t *len); 44 | 45 | 46 | #endif /*GPA_MEMBUF_H*/ 47 | -------------------------------------------------------------------------------- /src/i18n.h: -------------------------------------------------------------------------------- 1 | /* i18n.h 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef I18N_H 22 | #define I18N_H 23 | 24 | #ifdef USE_SIMPLE_GETTEXT 25 | int set_gettext_file (const char *filename); 26 | char *gettext (const char *msgid); 27 | char *ngettext (const char *msgid1, const char *msgid2, 28 | unsigned long int n); 29 | 30 | # define _(a) gettext (a) 31 | # define N_(a) (a) 32 | 33 | #else /* !USE_SIMPLE_GETTEXT */ 34 | # ifdef HAVE_LOCALE_H 35 | # include 36 | # endif 37 | 38 | # ifdef ENABLE_NLS 39 | # include 40 | # define _(a) gettext (a) 41 | # ifdef gettext_noop 42 | # define N_(a) gettext_noop (a) 43 | # else 44 | # define N_(a) (a) 45 | # endif 46 | # else 47 | # define _(a) (a) 48 | # define N_(a) (a) 49 | # define ngettext(a,b,c) ((c)==1? (a):(b)) 50 | # endif 51 | #endif /* !USE_SIMPLE_GETTEXT */ 52 | 53 | 54 | #endif /*I18N_H*/ 55 | 56 | -------------------------------------------------------------------------------- /src/w32-afunix.h: -------------------------------------------------------------------------------- 1 | /* w32-afunix.h - AF_UNIX emulation for Windows 2 | * Copyright (C) 2004, 2006 g10 Code GmbH 3 | * 4 | * This file is part of JNLIB. 5 | * 6 | * JNLIB is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU Lesser General Public License as 8 | * published by the Free Software Foundation; either version 3 of 9 | * the License, or (at your option) any later version. 10 | * 11 | * JNLIB is distributed in the hope that it will be useful, but 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | * Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public 17 | * License along with this program; if not, see . 18 | */ 19 | 20 | #ifdef _WIN32 21 | #ifndef W32AFUNIX_DEFS_H 22 | #define W32AFUNIX_DEFS_H 23 | 24 | #include 25 | #include 26 | #include 27 | #include 28 | 29 | #define DIRSEP_C '\\' 30 | 31 | #define AF_LOCAL AF_UNIX 32 | /* We need to prefix the structure with a sockaddr_in header so we can 33 | use it later for sendto and recvfrom. */ 34 | struct sockaddr_un 35 | { 36 | short sun_family; 37 | unsigned short sun_port; 38 | struct in_addr sun_addr; 39 | char sun_path[108-2-4]; /* Path name. */ 40 | }; 41 | 42 | int _w32_close (int fd); 43 | int _w32_sock_new (int domain, int type, int proto); 44 | int _w32_sock_bind (int sockfd, struct sockaddr *addr, int addrlen); 45 | int _w32_sock_connect (int sockfd, struct sockaddr *addr, int addrlen); 46 | 47 | #endif /*W32AFUNIX_DEFS_H*/ 48 | #endif /*_WIN32*/ 49 | -------------------------------------------------------------------------------- /src/parsetlv.h: -------------------------------------------------------------------------------- 1 | /* parsetlv.h - TLV functions defintions 2 | * Copyright (C) 2012 g10 Code GmbH 3 | * 4 | * This file is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU Lesser General Public License as 6 | * published by the Free Software Foundation; either version 2.1 of 7 | * the License, or (at your option) any later version. 8 | * 9 | * This file is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | * GNU Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public License 15 | * along with this program; if not, see . 16 | */ 17 | 18 | #ifndef PARSETLV_H 19 | #define PARSETLV_H 20 | 21 | /* ASN.1 constants. */ 22 | #define ASN1_CLASS_UNIVERSAL 0 23 | #define ASN1_CLASS_APPLICATION 1 24 | #define ASN1_CLASS_CONTEXT 2 25 | #define ASN1_CLASS_PRIVATE 3 26 | #define ASN1_TAG_OBJECT_ID 6 27 | #define ASN1_TAG_SEQUENCE 16 28 | 29 | 30 | /* Object used with parse_tlv. */ 31 | struct tlvinfo_s 32 | { 33 | int cls; /* The class of the tag. */ 34 | int tag; /* The tag. */ 35 | int is_cons; /* True if it is a constructed object. */ 36 | int is_ndef; /* True if the object has an indefinite length. */ 37 | size_t length; /* The length of the value. */ 38 | size_t nhdr; /* The number of octets in the header (tag,length). */ 39 | }; 40 | typedef struct tlvinfo_s tlvinfo_t; 41 | 42 | /*-- parsetlv.c --*/ 43 | int parse_tlv (char const **buffer, size_t *size, tlvinfo_t *ti); 44 | 45 | 46 | #endif /*PARSETLV_H*/ 47 | -------------------------------------------------------------------------------- /src/help.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *help_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "32 32 19 1", 5 | " c Gray0", 6 | ". c Gray17", 7 | "X c #39332a", 8 | "o c #473c2a", 9 | "O c #4c412f", 10 | "+ c #55452a", 11 | "@ c #514634", 12 | "# c #554b38", 13 | "$ c #555047", 14 | "% c #555555", 15 | "& c #716654", 16 | "* c #727272", 17 | "= c Gray50", 18 | "- c #aa8a53", 19 | "; c #ffcf7c", 20 | ": c #aaa08e", 21 | "> c #aaaaaa", 22 | ", c #d5d5d5", 23 | "< c None", 24 | /* pixels */ 25 | "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", 26 | "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", 27 | "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", 28 | "<<<<<<<<$# ##><<<<<<$ #><<<<<", 29 | "<<<<<<$ +;;;;;-+O><<<$+;;- ,<<<<", 30 | "<<<<<$+;;;;;;;;;-+*<<#;;;;+%<<<<", 31 | "<<<<$+;;;;;;;;;;;;o*<#;;;;+=><<<", 32 | "<<<>+;;;;+ ooo-;;;-o>#;;;;+=><<<", 33 | "<<<$+;;;+X=,<> ;;;; =#;;;;+=><<<", 34 | "<<<#;;;-o=,<<<#-;;;+%#;;;;+%><<<", 35 | "<<<$+;;+%><<<<#-;;;+%@;;;;+%><<<", 36 | "<<<<$ X=<<<<>+;;;;+=@-;;;+=<<<<", 37 | "<<<<<<,><<<<> -;;;-o=$+;;; =<<<<", 38 | "<<<<<<<<<<<> -;;;; %>%+;;; =<<<<", 39 | "<<<<<<<<<<:#;;;;- %><>+;;;o=<<<<", 40 | "<<<<<<<<<%+;;;;- %><<<+;;-o><<<<", 41 | "<<<<<<<<<#;;;;+X=><<<< ;;+.><<<<", 42 | "<<<<<<<<>+;;;+X=,<<<<< ;;+.><<<<", 43 | "<<<<<<<<%+;;; =,<<<<<<#;;+%><<<<", 44 | "<<<<<<<<< -;+X><<<<<<<$+; =<<<<<", 45 | "<<<<<<<<<>@oX=,<<<<<<<<#O&><<<<<", 46 | "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", 47 | "<<<<<<<<<># $<<<<<<<<<># $<<<<<<", 48 | "<<<<<<<<>+-;- ,<<<<<<>+;;-o,<<<<", 49 | "<<<<<<<<#-;;;+.,<<<<<#-;;;+%<<<<", 50 | "<<<<<<<<#;;;;+.><<<<< ;;;;+.><<<", 51 | "<<<<<<<<$+;;;o%><<<<<$+;;; =,<<<", 52 | "<<<<<<<<<$++ &=<<<<<<<#++ &><<<<", 53 | "<<<<<<<<<<>*>><<<<<<<<<>*>><<<<<", 54 | "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", 55 | "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<", 56 | "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" 57 | }; 58 | -------------------------------------------------------------------------------- /po/POTFILES.in: -------------------------------------------------------------------------------- 1 | src/cardman.c 2 | src/certchain.c 3 | src/clipboard.c 4 | src/clipboard.h 5 | src/cm-dinsig.c 6 | src/cm-geldkarte.c 7 | src/cm-netkey.c 8 | src/cm-object.c 9 | src/cm-openpgp.c 10 | src/cm-unknown.c 11 | src/confdialog.c 12 | src/convert.c 13 | src/encryptdlg.c 14 | src/expirydlg.c 15 | src/fileman.c 16 | src/filesigndlg.c 17 | src/format-dn.c 18 | src/gpa-key-details.c 19 | src/gpa-uid-list.c 20 | src/gpa.c 21 | src/gpa.h 22 | src/gpabackupop.c 23 | src/gpacontext.c 24 | src/gpadatebutton.c 25 | src/gpaexportclipop.c 26 | src/gpaexportfileop.c 27 | src/gpaexportop.c 28 | src/gpaexportserverop.c 29 | src/gpafiledecryptop.c 30 | src/gpafileencryptop.c 31 | src/gpafileimportop.c 32 | src/gpafileop.c 33 | src/gpafilesignop.c 34 | src/gpafileverifyop.c 35 | src/gpagenkeyadvop.c 36 | src/gpagenkeycardop.c 37 | src/gpagenkeyop.c 38 | src/gpagenkeysimpleop.c 39 | src/gpaimportclipop.c 40 | src/gpaimportfileop.c 41 | src/gpaimportop.c 42 | src/gpaimportserverop.c 43 | src/gpakeydeleteop.c 44 | src/gpakeyexpireop.c 45 | src/gpakeyop.c 46 | src/gpakeypasswdop.c 47 | src/gpakeyselector.c 48 | src/gpakeysignop.c 49 | src/gpakeytrustop.c 50 | src/gpaoperation.c 51 | src/gpaprogressdlg.c 52 | src/gparecvkeydlg.c 53 | src/gpastreamdecryptop.c 54 | src/gpastreamencryptop.c 55 | src/gpastreamsignop.c 56 | src/gpastreamverifyop.c 57 | src/gpasubkeylist.c 58 | src/gpawidgets.c 59 | src/gpawindowkeeper.c 60 | src/gpgmeedit.c 61 | src/gpgmetools.c 62 | src/gtktools.c 63 | src/helpmenu.c 64 | src/helpmenu.h 65 | src/hidewnd.c 66 | src/icons.c 67 | src/keydeletedlg.c 68 | src/keyeditdlg.c 69 | src/keygendlg.c 70 | src/keygenwizard.c 71 | src/keylist.c 72 | src/keymanager.c 73 | src/keyserver.c 74 | src/keysigndlg.c 75 | src/keytable.c 76 | src/options.c 77 | src/ownertrustdlg.c 78 | src/passwddlg.c 79 | src/qdchkpwd.c 80 | src/recipientdlg.c 81 | src/selectkeydlg.c 82 | src/server-access.c 83 | src/settingsdlg.c 84 | src/siglist.c 85 | src/verifydlg.c 86 | src/w32reg.c 87 | -------------------------------------------------------------------------------- /po/Makevars: -------------------------------------------------------------------------------- 1 | # Makefile variables for PO directory in any package using GNU gettext. 2 | 3 | # Usually the message domain is the same as the package name. 4 | DOMAIN = $(PACKAGE) 5 | 6 | # These two variables depend on the location of this directory. 7 | subdir = po 8 | top_builddir = .. 9 | 10 | # These options get passed to xgettext. 11 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ 12 | 13 | # This is the copyright holder that gets inserted into the header of the 14 | # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding 15 | # package. (Note that the msgstr strings, extracted from the package's 16 | # sources, belong to the copyright holder of the package.) Translators are 17 | # expected to transfer the copyright for their translations to this person 18 | # or entity, or to disclaim their copyright. The empty string stands for 19 | # the public domain; in this case the translators are expected to disclaim 20 | # their copyright. 21 | COPYRIGHT_HOLDER = 22 | 23 | # This is the email address or URL to which the translators shall report 24 | # bugs in the untranslated strings: 25 | # - Strings which are not entire sentences, see the maintainer guidelines 26 | # in the GNU gettext documentation, section 'Preparing Strings'. 27 | # - Strings which use unclear terms or require additional context to be 28 | # understood. 29 | # - Strings which make invalid assumptions about notation of date, time or 30 | # money. 31 | # - Pluralisation problems. 32 | # - Incorrect English spelling. 33 | # - Incorrect formatting. 34 | # It can be your email address, or a mailing list address where translators 35 | # can write to without being subscribed, or the URL of a web page through 36 | # which the translators can contact you. 37 | MSGID_BUGS_ADDRESS = translations@gnupg.org 38 | 39 | # This is the list of locale categories, beyond LC_MESSAGES, for which the 40 | # message catalogs shall be used. It is usually empty. 41 | EXTRA_LOCALE_CATEGORIES = 42 | -------------------------------------------------------------------------------- /src/hidewnd.c: -------------------------------------------------------------------------------- 1 | /* hidewnd.c - MS-Windows console hiding (W98, ME) 2 | * Copyright (C) 2001 Timo Schulz 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #include 22 | 23 | /* This module is only used in this environment */ 24 | #if defined(__MINGW32__) || defined(__CYGWIN__) 25 | #include 26 | 27 | #include 28 | 29 | static HWND console_window = NULL; 30 | 31 | static BOOL CALLBACK 32 | enum_parent_windows( HWND hwnd, LPARAM lparam ) 33 | { 34 | char wndclass[ 512 ]; 35 | char wndtext[ 512 ]; 36 | 37 | GetWindowText( hwnd, wndtext, sizeof( wndtext ) ); 38 | GetClassName( hwnd, wndclass, sizeof( wndclass ) ); 39 | 40 | if ( (!strcmp( wndclass, "tty" ) && strstr( wndtext, "gpa" )) 41 | || (!strcmp ( wndclass, "ConsoleWindowClass" ) 42 | && (strstr (wndtext, "GPA") || strstr (wndtext, "gpa.exe")))) 43 | { 44 | console_window = hwnd; 45 | return FALSE; 46 | } 47 | 48 | return TRUE; 49 | } 50 | 51 | int 52 | hide_gpa_console_window( void ) 53 | { 54 | EnumWindows( enum_parent_windows, 0 ); 55 | if ( console_window ) 56 | ShowWindow( console_window, SW_HIDE ); 57 | return 0; 58 | } 59 | 60 | #endif /* __MINGW32__ */ 61 | -------------------------------------------------------------------------------- /po/Makevars.template: -------------------------------------------------------------------------------- 1 | # Makefile variables for PO directory in any package using GNU gettext. 2 | 3 | # Usually the message domain is the same as the package name. 4 | DOMAIN = $(PACKAGE) 5 | 6 | # These two variables depend on the location of this directory. 7 | subdir = po 8 | top_builddir = .. 9 | 10 | # These options get passed to xgettext. 11 | XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ 12 | 13 | # This is the copyright holder that gets inserted into the header of the 14 | # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding 15 | # package. (Note that the msgstr strings, extracted from the package's 16 | # sources, belong to the copyright holder of the package.) Translators are 17 | # expected to transfer the copyright for their translations to this person 18 | # or entity, or to disclaim their copyright. The empty string stands for 19 | # the public domain; in this case the translators are expected to disclaim 20 | # their copyright. 21 | COPYRIGHT_HOLDER = Free Software Foundation, Inc. 22 | 23 | # This is the email address or URL to which the translators shall report 24 | # bugs in the untranslated strings: 25 | # - Strings which are not entire sentences, see the maintainer guidelines 26 | # in the GNU gettext documentation, section 'Preparing Strings'. 27 | # - Strings which use unclear terms or require additional context to be 28 | # understood. 29 | # - Strings which make invalid assumptions about notation of date, time or 30 | # money. 31 | # - Pluralisation problems. 32 | # - Incorrect English spelling. 33 | # - Incorrect formatting. 34 | # It can be your email address, or a mailing list address where translators 35 | # can write to without being subscribed, or the URL of a web page through 36 | # which the translators can contact you. 37 | MSGID_BUGS_ADDRESS = 38 | 39 | # This is the list of locale categories, beyond LC_MESSAGES, for which the 40 | # message catalogs shall be used. It is usually empty. 41 | EXTRA_LOCALE_CATEGORIES = 42 | -------------------------------------------------------------------------------- /po/Rules-quot: -------------------------------------------------------------------------------- 1 | # Special Makefile rules for English message catalogs with quotation marks. 2 | 3 | DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot 4 | 5 | .SUFFIXES: .insert-header .po-update-en 6 | 7 | en@quot.po-create: 8 | $(MAKE) en@quot.po-update 9 | en@boldquot.po-create: 10 | $(MAKE) en@boldquot.po-update 11 | 12 | en@quot.po-update: en@quot.po-update-en 13 | en@boldquot.po-update: en@boldquot.po-update-en 14 | 15 | .insert-header.po-update-en: 16 | @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ 17 | if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ 18 | tmpdir=`pwd`; \ 19 | echo "$$lang:"; \ 20 | ll=`echo $$lang | sed -e 's/@.*//'`; \ 21 | LC_ALL=C; export LC_ALL; \ 22 | cd $(srcdir); \ 23 | if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ 24 | if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 25 | rm -f $$tmpdir/$$lang.new.po; \ 26 | else \ 27 | if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 28 | :; \ 29 | else \ 30 | echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 31 | exit 1; \ 32 | fi; \ 33 | fi; \ 34 | else \ 35 | echo "creation of $$lang.po failed!" 1>&2; \ 36 | rm -f $$tmpdir/$$lang.new.po; \ 37 | fi 38 | 39 | en@quot.insert-header: insert-header.sin 40 | sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header 41 | 42 | en@boldquot.insert-header: insert-header.sin 43 | sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header 44 | 45 | mostlyclean: mostlyclean-quot 46 | mostlyclean-quot: 47 | rm -f *.insert-header 48 | -------------------------------------------------------------------------------- /gpa.spec: -------------------------------------------------------------------------------- 1 | %define name gpa 2 | %define version 0.9.3 3 | 4 | Summary: Graphical user interface for the GnuPG 5 | Name: %{name} 6 | Version: %{version} 7 | Release: 1 8 | License: GPLv3+ 9 | Group: Applications/System 10 | Source0: ftp://ftp.gnupg.org/gcrypt/gpa/gpa-%{version}.tar.bz2 11 | Source1: ftp://ftp.gnupg.org/gcrypt/gpa/gpa-%{version}.tar.bz2.sig 12 | URL: http://www.gnupg.org/gpa.html 13 | BuildRoot: %{_tmppath}/%{name}-root 14 | 15 | %description 16 | The GNU Privacy Assistant is a graphical user interface for the GNU Privacy 17 | Guard (GnuPG). GnuPG is a system that provides you with privacy by 18 | encrypting emails or other documents and with authentication of received 19 | files by signature management. 20 | 21 | %prep 22 | %setup -q 23 | 24 | %build 25 | %configure 26 | make 27 | 28 | %install 29 | rm -rf ${RPM_BUILD_ROOT} 30 | install -Dpm 644 gpa.png \ 31 | %{buildroot}%{_datadir}/pixmaps/gpa.png 32 | install -Dpm 644 gpa.desktop \ 33 | %{buildroot}%{_datadir}/applications/gpa.desktop 34 | %makeinstall 35 | 36 | %clean 37 | rm -rf ${RPM_BUILD_ROOT} 38 | 39 | %files 40 | %defattr(-,root,root) 41 | %doc ABOUT-NLS AUTHORS COPYING ChangeLog ChangeLog-2011 NEWS README THANKS TODO 42 | %{_bindir}/gpa 43 | %dir %{_datadir}/%{name} 44 | %{_datadir}/%{name}/*.* 45 | %{_datadir}/locale/*/*/gpa.mo 46 | %{_datadir}/applications/gpa.desktop 47 | %{_datadir}/pixmaps/gpa.png 48 | %{_mandir}/man1/gpa.1.gz 49 | 50 | %changelog 51 | * Wed Aug 15 2012 Michael Petzold 0.9.3-1 52 | - fixed source paths 53 | - 'Copyright: GPL' -> 'License: GPLv3+' 54 | - removed 'Requires: gnupg' (would have liked to specify 'gnupg OR gnupg2' but 55 | that doesn't seem possible) 56 | - install: updated icon filename 57 | - files: updated doc line, removed gtkrc, added gpa.1.gz 58 | 59 | * Tue Mar 19 2002 Keith Hudson 60 | - updated for 0.4.3 61 | - added gnome menu entry 62 | 63 | * Fri Aug 3 2001 Peter Hanecak 64 | [0.4.1-1] 65 | - initial spec 66 | -------------------------------------------------------------------------------- /src/gpapinchange.h: -------------------------------------------------------------------------------- 1 | /* gpapinchange.h - The GNU Privacy Assistant: PIN Chnage 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPAPINCHNAGE_H 21 | #define GPAPINCHNAGE_H 1 22 | 23 | #include 24 | 25 | /* Declare the Object. */ 26 | typedef struct _GpaPinChange GpaPinChange; 27 | typedef struct _GpaPinChangeClass GpaPinChangeClass; 28 | 29 | GType gpa_pin_change_get_type (void) G_GNUC_CONST; 30 | 31 | #define GPA_PIN_CHANGE_TYPE (gpa_pin_change_get_type ()) 32 | 33 | #define GPA_PIN_CHANGE(obj) \ 34 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_PIN_CHANGE_TYPE, GpaPinChange)) 35 | 36 | #define GPA_PIN_CHANGE_CLASS(klass) \ 37 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 38 | GPA_PIN_CHANGE_TYPE, GpaPinChangeClass)) 39 | 40 | #define GPA_IS_PIN_CHANGE(obj) \ 41 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_PIN_CHANGE_TYPE)) 42 | 43 | #define GPA_IS_PIN_CHANGE_CLASS(klass) \ 44 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_PIN_CHANGE_TYPE)) 45 | 46 | #define GPA_PIN_CHANGE_GET_CLASS(obj) \ 47 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 | GPA_PIN_CHANGE_TYPE, GpaPinChangeClass)) 49 | 50 | /* The public API. */ 51 | 52 | GtkWidget *gpa_pin_change_new (void); 53 | 54 | 55 | #endif /*GPAPINCHNAGE_H*/ 56 | -------------------------------------------------------------------------------- /src/icons.h: -------------------------------------------------------------------------------- 1 | /* icons.h - Icons for GPA 2 | Copyright (C) 2000 G-N-U GmbH. 3 | Copyright (C) 2008 g10 Code GmbH. 4 | 5 | This file is part of GPA. 6 | 7 | GPA is free software; you can redistribute it and/or modify it 8 | under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 2 of the License, or 10 | (at your option) any later version. 11 | 12 | GPA is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License along 18 | with this program; if not, write to the Free Software Foundation, Inc., 19 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ 20 | 21 | #ifndef ICONS_H 22 | #define ICONS_H 23 | 24 | // GdkPixbuf *gpa_create_icon_pixbuf (const char *name); 25 | 26 | void gpa_register_stock_items (void); 27 | 28 | #define GPA_STOCK_SIGN "gpa-sign" 29 | #define GPA_STOCK_VERIFY "gpa-verify" 30 | #define GPA_STOCK_ENCRYPT "gpa-encrypt" 31 | #define GPA_STOCK_DECRYPT "gpa-decrypt" 32 | 33 | /* Windows items. */ 34 | #define GPA_STOCK_KEYMAN "gpa-keyring" 35 | #define GPA_STOCK_KEYMAN_SIMPLE "gpa-keyringeditor" 36 | #define GPA_STOCK_FILEMAN "gpa-fileman" 37 | #define GPA_STOCK_CLIPBOARD "gpa-clipboard" 38 | #define GPA_STOCK_CARDMAN "gpa-cardman" 39 | 40 | /* Toolbar in key manager. */ 41 | #define GPA_STOCK_BRIEF "gpa-brief" 42 | #define GPA_STOCK_DETAILED "gpa-detailed" 43 | #define GPA_STOCK_EDIT "gpa-edit" 44 | #define GPA_STOCK_IMPORT "gpa-import" 45 | #define GPA_STOCK_EXPORT "gpa-export" 46 | #define GPA_STOCK_BACKUP "gpa-backup" 47 | 48 | #define GPA_STOCK_SECRET_CARDKEY "gpa-secret-cardkey" 49 | #define GPA_STOCK_SECRET_KEY "gpa-secret-key" 50 | #define GPA_STOCK_PUBLIC_KEY "gpa-public-key" 51 | 52 | extern const char *icons_string; 53 | 54 | 55 | #endif /*ICONS_H*/ 56 | -------------------------------------------------------------------------------- /src/keymanager.h: -------------------------------------------------------------------------------- 1 | /* keymanager.h - The Key Manager 2 | * Copyright (C) 2009 g10 Code GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef KEYMANAGER_H 21 | #define KEYMANAGER_H 22 | 23 | /* Declare the Object. */ 24 | typedef struct _GpaKeyManager GpaKeyManager; 25 | typedef struct _GpaKeyManagerClass GpaKeyManagerClass; 26 | 27 | GType gpa_key_manager_get_type (void) G_GNUC_CONST; 28 | 29 | #define GPA_KEY_MANAGER_TYPE (gpa_key_manager_get_type ()) 30 | 31 | #define GPA_KEY_MANAGER(obj) \ 32 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_MANAGER_TYPE, GpaKeyManager)) 33 | 34 | #define GPA_KEY_MANAGER_CLASS(klass) \ 35 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 36 | GPA_KEY_MANAGER_TYPE, GpaKeyManagerClass)) 37 | 38 | #define GPA_IS_KEY_MANAGER(obj) \ 39 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_MANAGER_TYPE)) 40 | 41 | #define GPA_IS_KEY_MANAGER_CLASS(klass) \ 42 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_MANAGER_TYPE)) 43 | 44 | #define GPA_KEY_MANAGER_GET_CLASS(obj) \ 45 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 46 | GPA_KEY_MANAGER_TYPE, GpaKeyManagerClass)) 47 | 48 | 49 | /* The public API. */ 50 | 51 | GtkWidget *gpa_key_manager_get_instance (gboolean *r_created); 52 | 53 | gboolean gpa_key_manager_is_open (void); 54 | 55 | gboolean key_manager_maybe_firsttime (void); 56 | 57 | 58 | #endif /*KEYMANAGER_H*/ 59 | -------------------------------------------------------------------------------- /src/gpgmeedit.h: -------------------------------------------------------------------------------- 1 | /* gpgmeedit.h - The GNU Privacy Assistant 2 | * Copyright (C) 2002, Miguel Coca. 3 | * Copyright (C) 2008, 2009 g10 Code GmbH. 4 | * 5 | * This file is part of GPA 6 | * 7 | * GPA is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GPA is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 20 | */ 21 | 22 | /* Wrappers around gpgme_op_edit for common tasks */ 23 | 24 | #ifndef GPGMEEDIT_H 25 | #define GPGMEEDIT_H 26 | 27 | #include "gpa.h" 28 | #include "gpacontext.h" 29 | #include 30 | #include 31 | 32 | /* Change the ownertrust of a key */ 33 | gpg_error_t gpa_gpgme_edit_trust_start (GpaContext *ctx, gpgme_key_t key, 34 | gpgme_validity_t ownertrust); 35 | 36 | /* Change the expiry date of a key */ 37 | gpg_error_t gpa_gpgme_edit_expire_start (GpaContext *ctx, gpgme_key_t key, 38 | GDate *date); 39 | 40 | /* Sign this key with the given private key. If local is true, make a local 41 | * signature. */ 42 | gpg_error_t gpa_gpgme_edit_sign_start (GpaContext *ctx, gpgme_key_t key, 43 | gpgme_key_t secret_key, 44 | gboolean local); 45 | 46 | /* Change the key's passphrase. 47 | */ 48 | gpg_error_t gpa_gpgme_edit_passwd_start (GpaContext *ctx, gpgme_key_t key); 49 | 50 | gpg_error_t gpa_gpgme_card_edit_genkey_start (GpaContext *ctx, gpa_keygen_para_t *parms); 51 | 52 | #if 0 53 | gpg_error_t gpa_gpgme_card_edit_modify_start (GpaContext *ctx, const gchar *login); 54 | #endif 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /src/gpadatebox.h: -------------------------------------------------------------------------------- 1 | /* gpadatebox.h - A box to show an optional date. 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPADATEBOX_H 21 | #define GPADATEBOX_H 22 | 23 | #include 24 | 25 | 26 | /* Declare the Object. */ 27 | typedef struct _GpaDateBox GpaDateBox; 28 | typedef struct _GpaDateBoxClass GpaDateBoxClass; 29 | 30 | GType gpa_date_box_get_type (void) G_GNUC_CONST; 31 | 32 | #define GPA_DATE_BOX_TYPE (gpa_date_box_get_type ()) 33 | 34 | #define GPA_DATE_BOX(obj) \ 35 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_DATE_BOX_TYPE, GpaDateBox)) 36 | 37 | #define GPA_DATE_BOX_CLASS(klass) \ 38 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 39 | GPA_DATE_BOX_TYPE, GpaDateBoxClass)) 40 | 41 | #define IS_GPA_DATE_BOX(obj) \ 42 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_DATE_BOX_TYPE)) 43 | 44 | #define IS_GPA_DATE_BOX_CLASS(klass) \ 45 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_DATE_BOX_TYPE)) 46 | 47 | #define GPA_DATE_BOX_GET_CLASS(obj) \ 48 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 49 | GPA_DATE_BOX_TYPE, GpaDateBoxClass)) 50 | 51 | 52 | /* The public functions. */ 53 | GtkWidget *gpa_date_box_new (void); 54 | 55 | void gpa_date_box_set_date (GpaDateBox *self, GDate *date); 56 | 57 | gboolean gpa_date_box_get_date (GpaDateBox *self, GDate *r_date); 58 | 59 | 60 | #endif /*GPADATEBOX_H*/ 61 | -------------------------------------------------------------------------------- /src/delete.xpm: -------------------------------------------------------------------------------- 1 | /* XPM */ 2 | static char *delete_xpm[] = { 3 | /* columns rows colors chars-per-pixel */ 4 | "32 32 37 1", 5 | " c Gray0", 6 | ". c Gray4", 7 | "X c Gray6", 8 | "o c #131313", 9 | "O c #181818", 10 | "+ c #1d1d1d", 11 | "@ c #202020", 12 | "# c Gray15", 13 | "$ c Gray16", 14 | "% c Gray17", 15 | "& c Gray19", 16 | "* c #343434", 17 | "= c Gray21", 18 | "- c #393939", 19 | "; c #3c3c3c", 20 | ": c Gray24", 21 | "> c Gray25", 22 | ", c Gray26", 23 | "< c #444444", 24 | "1 c Gray28", 25 | "2 c #4c4c4c", 26 | "3 c Gray30", 27 | "4 c #515151", 28 | "5 c #555555", 29 | "6 c #5f5f5f", 30 | "7 c Gray39", 31 | "8 c #686868", 32 | "9 c #717171", 33 | "0 c #727272", 34 | "q c #777777", 35 | "w c Gray50", 36 | "e c Gray61", 37 | "r c #aaaaaa", 38 | "t c #b2b2b2", 39 | "y c #b9b9b9", 40 | "u c #d5d5d5", 41 | "i c None", 42 | /* pixels */ 43 | "iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii", 44 | "iiiiiiiiiiiiiiiiiiiii55<5iiiiiii", 45 | "iiiiiiiiiiiro6iiiir3 5555 >iiiii", 46 | "iiiiiiiiir& 5uiir riiiiii5 uiii", 47 | "iiiiii5 . +8<<;qt*55iii 5eqttt;$5iiiir 33iiii ri", 51 | "ii+ 6uir;tq;;;#5iiiiiiriiiii ri", 52 | "irO@ui>3-tq*5ww75iiiiiiiiiiir5iiiirii5-wiii", 57 | "iiiiiii;*6uiiiiii55iirr -euiii", 58 | "ii5 uii iii $reriiiii", 59 | "ii< 55 55 r5$ri55iir1eriiiiiiii", 60 | "ii55rr rr irrri4rii5$riiiiiiiii", 61 | "iirrrr rr iri%r iii5$iiiiiiiiii", 62 | "iirrrr rr iri%55iii5 riiiiiiiii", 63 | "ii< rr rr ir - riir 0riiiiiiiii", 64 | "ii5 rr rr ir$r5iii wriiiiiiiiii", 65 | "ii5 rr rr ir$55iii55iiiiiiiiiii", 66 | "ii5 rr rr ir$ iii5 -5euiiiiiiiiiiii", 73 | "iiiiiiiiiiiiiiurruiiiiiiiiiiiiii", 74 | "iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii" 75 | }; 76 | -------------------------------------------------------------------------------- /src/clipboard.h: -------------------------------------------------------------------------------- 1 | /* clipboard.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000 G-N-U GmbH. 3 | * Copyright (C) 2007, 2008 g10 Code GmbH 4 | * 5 | * This file is part of GPA 6 | * 7 | * GPA is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GPA is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 20 | * 02110-1301, USA. 21 | */ 22 | 23 | #ifndef CLIPBOARD_H 24 | #define CLIPBOARD_H 25 | 26 | #include 27 | 28 | /* Declare the Object. */ 29 | typedef struct _GpaClipboard GpaClipboard; 30 | typedef struct _GpaClipboardClass GpaClipboardClass; 31 | 32 | GType gpa_clipboard_get_type (void) G_GNUC_CONST; 33 | 34 | #define GPA_CLIPBOARD_TYPE (gpa_clipboard_get_type ()) 35 | 36 | #define GPA_CLIPBOARD(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_CLIPBOARD_TYPE, GpaClipboard)) 38 | 39 | #define GPA_CLIPBOARD_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 41 | GPA_CLIPBOARD_TYPE, GpaClipboardClass)) 42 | 43 | #define GPA_IS_CLIPBOARD(obj) \ 44 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_CLIPBOARD_TYPE)) 45 | 46 | #define GPA_IS_CLIPBOARD_CLASS(klass) \ 47 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_CLIPBOARD_TYPE)) 48 | 49 | #define GPA_CLIPBOARD_GET_CLASS(obj) \ 50 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 51 | GPA_CLIPBOARD_TYPE, GpaClipboardClass)) 52 | 53 | 54 | 55 | /* Our own API. */ 56 | 57 | GtkWidget *gpa_clipboard_get_instance (void); 58 | 59 | gboolean gpa_clipboard_is_open (void); 60 | 61 | #endif /*CLIPBOARD_H*/ 62 | -------------------------------------------------------------------------------- /src/gpadatebutton.h: -------------------------------------------------------------------------------- 1 | /* gpadatebutton.h - A button to show and select a date. 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPADATEBUTTON_H 21 | #define GPADATEBUTTON_H 22 | 23 | #include 24 | 25 | 26 | /* Declare the Object. */ 27 | typedef struct _GpaDateButton GpaDateButton; 28 | typedef struct _GpaDateButtonClass GpaDateButtonClass; 29 | 30 | GType gpa_date_button_get_type (void) G_GNUC_CONST; 31 | 32 | #define GPA_DATE_BUTTON_TYPE (gpa_date_button_get_type ()) 33 | 34 | #define GPA_DATE_BUTTON(obj) \ 35 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_DATE_BUTTON_TYPE, GpaDateButton)) 36 | 37 | #define GPA_DATE_BUTTON_CLASS(klass) \ 38 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 39 | GPA_DATE_BUTTON_TYPE, GpaDateButtonClass)) 40 | 41 | #define IS_GPA_DATE_BUTTON(obj) \ 42 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_DATE_BUTTON_TYPE)) 43 | 44 | #define IS_ACCOUNTLIST_CLASS(klass) \ 45 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_DATE_BUTTON_TYPE)) 46 | 47 | #define GPA_DATE_BUTTON_GET_CLASS(obj) \ 48 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 49 | GPA_DATE_BUTTON_TYPE, GpaDateButtonClass)) 50 | 51 | 52 | /* The public functions. */ 53 | GtkWidget *gpa_date_button_new (void); 54 | 55 | void gpa_date_button_set_date (GpaDateButton *self, GDate *date); 56 | 57 | gboolean gpa_date_button_get_date (GpaDateButton *self, GDate *r_date); 58 | 59 | 60 | #endif /*GPADATEBUTTON_H*/ 61 | -------------------------------------------------------------------------------- /src/gpg-stuff.h: -------------------------------------------------------------------------------- 1 | /* gpg-stuff.h - Code taken from GnuPG. 2 | * Copyright (C) 2008 g10 Code GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPG_STUFF_H 21 | #define GPG_STUFF_H 22 | 23 | #include "strlist.h" 24 | 25 | struct keyserver_spec 26 | { 27 | char *uri; 28 | char *scheme; 29 | char *auth; 30 | char *host; 31 | char *port; 32 | char *path; 33 | char *opaque; 34 | strlist_t options; 35 | struct 36 | { 37 | unsigned int direct_uri:1; 38 | } flags; 39 | struct keyserver_spec *next; 40 | }; 41 | typedef struct keyserver_spec *keyserver_spec_t; 42 | 43 | 44 | void free_keyserver_spec (struct keyserver_spec *keyserver); 45 | keyserver_spec_t parse_keyserver_uri (const char *string, 46 | int require_scheme, 47 | const char *configname, 48 | unsigned int configlineno); 49 | 50 | 51 | 52 | /* Linked list of methods to find a key. */ 53 | struct akl 54 | { 55 | enum 56 | { 57 | AKL_NODEFAULT, 58 | AKL_LOCAL, 59 | AKL_CERT, 60 | AKL_PKA, 61 | AKL_LDAP, 62 | AKL_KEYSERVER, 63 | AKL_SPEC 64 | } type; 65 | struct keyserver_spec *spec; 66 | struct akl *next; 67 | }; 68 | typedef struct akl *akl_t; 69 | 70 | 71 | void gpg_release_akl (akl_t akl); 72 | 73 | /* Note: VALUE will be changed on return from the fucntion. */ 74 | akl_t gpg_parse_auto_key_locate (char *value); 75 | 76 | 77 | 78 | #endif /*GPG_STUFF_H*/ 79 | -------------------------------------------------------------------------------- /src/gpa-key-details.h: -------------------------------------------------------------------------------- 1 | /* gpa-key-details.h - A widget to show key details. 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPA_KEY_DETAILS_H 21 | #define GPA_KEY_DETAILS_H 22 | 23 | #include 24 | 25 | /* Declare the Object. */ 26 | typedef struct _GpaKeyDetails GpaKeyDetails; 27 | typedef struct _GpaKeyDetailsClass GpaKeyDetailsClass; 28 | 29 | GType gpa_key_details_get_type (void) G_GNUC_CONST; 30 | 31 | #define GPA_KEY_DETAILS_TYPE (gpa_key_details_get_type ()) 32 | 33 | #define GPA_KEY_DETAILS(obj) \ 34 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_DETAILS_TYPE, GpaKeyDetails)) 35 | 36 | #define GPA_KEY_DETAILS_CLASS(klass) \ 37 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 38 | GPA_KEY_DETAILS_TYPE, GpaKeyDetailsClass)) 39 | 40 | #define GPA_IS_KEY_DETAILS(obj) \ 41 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_DETAILS_TYPE)) 42 | 43 | #define GPA_IS_KEY_DETAILS_CLASS(klass) \ 44 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_DETAILS_TYPE)) 45 | 46 | #define GPA_KEY_DETAILS_GET_CLASS(obj) \ 47 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 48 | GPA_KEY_DETAILS_TYPE, GpaKeyDetailsClass)) 49 | 50 | 51 | /* The class specific API. */ 52 | GtkWidget *gpa_key_details_new (void); 53 | void gpa_key_details_update (GtkWidget *keydetails, 54 | gpgme_key_t key, int keycount); 55 | void gpa_key_details_find (GtkWidget *keydetails, const char *pattern); 56 | 57 | 58 | #endif /*GPA_KEY_DETAILS_H*/ 59 | -------------------------------------------------------------------------------- /src/cardman.h: -------------------------------------------------------------------------------- 1 | /* cardman.h - The GNU Privacy Assistant: card manager. 2 | * Copyright (C) 2000 G-N-U GmbH. 3 | * Copyright (C) 2007, 2008 g10 Code GmbH 4 | * 5 | * This file is part of GPA 6 | * 7 | * GPA is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GPA is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 20 | * 02110-1301, USA. 21 | */ 22 | 23 | #ifndef CARDMAN_H 24 | #define CARDMAN_H 25 | 26 | #ifdef ENABLE_CARD_MANAGER 27 | 28 | #include 29 | 30 | /* Declare the Object. */ 31 | typedef struct _GpaCardManager GpaCardManager; 32 | typedef struct _GpaCardManagerClass GpaCardManagerClass; 33 | 34 | GType gpa_card_manager_get_type (void) G_GNUC_CONST; 35 | 36 | #define GPA_CARD_MANAGER_TYPE (gpa_card_manager_get_type ()) 37 | 38 | #define GPA_CARD_MANAGER(obj) \ 39 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_CARD_MANAGER_TYPE, GpaCardManager)) 40 | 41 | #define GPA_CARD_MANAGER_CLASS(klass) \ 42 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 43 | GPA_CARD_MANAGER_TYPE, GpaCardManagerClass)) 44 | 45 | #define GPA_IS_CARD_MANAGER(obj) \ 46 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_CARD_MANAGER_TYPE)) 47 | 48 | #define GPA_IS_CARD_MANAGER_CLASS(klass) \ 49 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_CARD_MANAGER_TYPE)) 50 | 51 | #define GPA_CARD_MANAGER_GET_CLASS(obj) \ 52 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 53 | GPA_CARD_MANAGER_TYPE, GpaCardManagerClass)) 54 | 55 | /* Our own API. */ 56 | 57 | GtkWidget *gpa_card_manager_get_instance (void); 58 | 59 | 60 | gboolean gpa_card_manager_is_open (void); 61 | 62 | #endif /*ENABLE_CARD_MANAGER*/ 63 | #endif /*CARDMAN_H*/ 64 | -------------------------------------------------------------------------------- /src/gtktools.h: -------------------------------------------------------------------------------- 1 | /* gtktools.h - The GNU Privacy Assistant 2 | Copyright (C) 2000, 2001 G-N-U GmbH. 3 | Copyright (C) 2008 g10 Code GmbH. 4 | 5 | This file is part of GPA. 6 | 7 | GPA is free software; you can redistribute it and/or modify it 8 | under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 3 of the License, or 10 | (at your option) any later version. 11 | 12 | GPA is distributed in the hope that it will be useful, but WITHOUT 13 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 15 | License for more details. 16 | 17 | You should have received a copy of the GNU General Public License 18 | along with this program; if not, see . */ 19 | 20 | 21 | #ifndef GTK_TOOLS_H_ 22 | #define GTK_TOOLS_H_ 23 | 24 | #include 25 | #include 26 | 27 | #include "gpacontext.h" 28 | 29 | 30 | /* Show a modal info message. */ 31 | void gpa_show_info (GtkWidget *parent, 32 | const char *format, ...) G_GNUC_PRINTF(2,3); 33 | /* Show a modal warning message. */ 34 | void gpa_show_warn (GtkWidget *parent, GpaContext *ctx, 35 | const char *format, ...) G_GNUC_PRINTF(3,4); 36 | 37 | /* Set a tooltip TEXT to WIDGET. TEXT and WIDGET may both be NULL. 38 | This function is useful so that GPA can be build with older GTK+ 39 | versions. */ 40 | void gpa_add_tooltip (GtkWidget *widget, const char *text); 41 | 42 | /* Set the title of COLUMN to TITLE and also set TOOLTIP. */ 43 | void gpa_set_column_title (GtkTreeViewColumn *column, 44 | const char *title, const char *tooltip); 45 | 46 | /* Set the homogeneous property for all children of TOOLBAR to IS_HOM. */ 47 | void gpa_toolbar_set_homogeneous (GtkToolbar *toolbar, gboolean is_hom); 48 | 49 | /* Customized set title function. */ 50 | void gpa_window_set_title (GtkWindow *window, const char *string); 51 | 52 | 53 | 54 | /* Deprecated functions. */ 55 | void gpa_window_error (const gchar * message, GtkWidget * messenger); 56 | void gpa_window_message (const gchar * message, GtkWidget * messenger); 57 | 58 | 59 | 60 | #endif /* GTK_TOOLS_H_ */ 61 | -------------------------------------------------------------------------------- /src/fileman.h: -------------------------------------------------------------------------------- 1 | /* fileman.h - The GNU Privacy Assistant 2 | * Copyright (C) 2000 G-N-U GmbH. 3 | * Copyright (C) 2007 g10 Code GmbH 4 | * 5 | * This file is part of GPA 6 | * 7 | * GPA is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GPA is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 20 | * 02110-1301, USA. 21 | */ 22 | 23 | #ifndef FILEMAN_H 24 | #define FILEMAN_H 25 | 26 | #include 27 | 28 | /* Declare the Object. */ 29 | typedef struct _GpaFileManager GpaFileManager; 30 | typedef struct _GpaFileManagerClass GpaFileManagerClass; 31 | 32 | GType gpa_file_manager_get_type (void) G_GNUC_CONST; 33 | 34 | #define GPA_FILE_MANAGER_TYPE (gpa_file_manager_get_type ()) 35 | 36 | #define GPA_FILE_MANAGER(obj) \ 37 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_FILE_MANAGER_TYPE, GpaFileManager)) 38 | 39 | #define GPA_FILE_MANAGER_CLASS(klass) \ 40 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 41 | GPA_FILE_MANAGER_TYPE, GpaFileManagerClass)) 42 | 43 | #define GPA_IS_FILE_MANAGER(obj) \ 44 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_FILE_MANAGER_TYPE)) 45 | 46 | #define GPA_IS_FILE_MANAGER_CLASS(klass) \ 47 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_FILE_MANAGER_TYPE)) 48 | 49 | #define GPA_FILE_MANAGER_GET_CLASS(obj) \ 50 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 51 | GPA_FILE_MANAGER_TYPE, GpaFileManagerClass)) 52 | 53 | 54 | 55 | /* Our own API. */ 56 | 57 | GtkWidget *gpa_file_manager_get_instance (void); 58 | 59 | gboolean gpa_file_manager_is_open (void); 60 | 61 | void gpa_file_manager_open_file (GpaFileManager *fileman, 62 | const char *filename); 63 | 64 | 65 | #endif /*FILEMAN_H*/ 66 | -------------------------------------------------------------------------------- /m4/ChangeLog-2011: -------------------------------------------------------------------------------- 1 | 2011-12-01 Werner Koch 2 | 3 | NB: ChangeLog files are no longer manually maintained. Starting 4 | on December 12st, 2011 we put change information only in the GIT 5 | commit log, and generate a top-level ChangeLog file from logs at 6 | "make dist". See doc/HACKING for details. 7 | 8 | 2008-12-15 gettextize 9 | 10 | * gettext.m4: Upgrade to gettext-0.17. 11 | * iconv.m4: Upgrade to gettext-0.17. 12 | * lib-ld.m4: Upgrade to gettext-0.17. 13 | * lib-link.m4: Upgrade to gettext-0.17. 14 | * lib-prefix.m4: Upgrade to gettext-0.17. 15 | * nls.m4: Upgrade to gettext-0.17. 16 | * po.m4: Upgrade to gettext-0.17. 17 | * progtest.m4: Upgrade to gettext-0.17. 18 | 19 | 2008-09-04 Marcus Brinkmann 20 | 21 | * Makefile.am (EXTRA_DIST): Reset to only the manually included 22 | files. 23 | 24 | 2005-11-18 Werner Koch 25 | 26 | * gpgme.m4: Updated. 27 | 28 | 2005-10-21 Werner Koch 29 | 30 | * Makefile.am: Add check_zlib.m4 and gpgme.m4. 31 | 32 | 2005-10-21 Marcus Brinkmann 33 | 34 | * gpgme.m4: New file. 35 | 36 | 2005-10-06 Marcus Brinkmann 37 | 38 | * check_zlib.m4: New file. 39 | 40 | 2003-10-13 gettextize 41 | 42 | * codeset.m4: New file, from gettext-0.12.1. 43 | * gettext.m4: New file, from gettext-0.12.1. 44 | * glibc21.m4: New file, from gettext-0.12.1. 45 | * iconv.m4: New file, from gettext-0.12.1. 46 | * intdiv0.m4: New file, from gettext-0.12.1. 47 | * inttypes.m4: New file, from gettext-0.12.1. 48 | * inttypes_h.m4: New file, from gettext-0.12.1. 49 | * inttypes-pri.m4: New file, from gettext-0.12.1. 50 | * isc-posix.m4: New file, from gettext-0.12.1. 51 | * lcmessage.m4: New file, from gettext-0.12.1. 52 | * lib-ld.m4: New file, from gettext-0.12.1. 53 | * lib-link.m4: New file, from gettext-0.12.1. 54 | * lib-prefix.m4: New file, from gettext-0.12.1. 55 | * nls.m4: New file, from gettext-0.12.1. 56 | * po.m4: New file, from gettext-0.12.1. 57 | * progtest.m4: New file, from gettext-0.12.1. 58 | * stdint_h.m4: New file, from gettext-0.12.1. 59 | * uintmax_t.m4: New file, from gettext-0.12.1. 60 | * ulonglong.m4: New file, from gettext-0.12.1. 61 | * Makefile.am: New file. 62 | -------------------------------------------------------------------------------- /src/gpagenkeyop.h: -------------------------------------------------------------------------------- 1 | /* gpagenkeyop.h - The GpaGenKeyOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_GEN_KEY_OP_H 22 | #define GPA_GEN_KEY_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpaoperation.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_GEN_KEY_OPERATION_TYPE (gpa_gen_key_operation_get_type ()) 31 | #define GPA_GEN_KEY_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_GEN_KEY_OPERATION_TYPE, GpaGenKeyOperation)) 32 | #define GPA_GEN_KEY_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_GEN_KEY_OPERATION_TYPE, GpaGenKeyOperationClass)) 33 | #define GPA_IS_GEN_KEY_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_GEN_KEY_OPERATION_TYPE)) 34 | #define GPA_IS_GEN_KEY_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_GEN_KEY_OPERATION_TYPE)) 35 | #define GPA_GEN_KEY_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_GEN_KEY_OPERATION_TYPE, GpaGenKeyOperationClass)) 36 | 37 | typedef struct _GpaGenKeyOperation GpaGenKeyOperation; 38 | typedef struct _GpaGenKeyOperationClass GpaGenKeyOperationClass; 39 | 40 | struct _GpaGenKeyOperation { 41 | GpaOperation parent; 42 | 43 | }; 44 | 45 | struct _GpaGenKeyOperationClass { 46 | GpaOperationClass parent_class; 47 | 48 | /* "A key was generated" signal. 49 | */ 50 | void (*generated_key) (GpaGenKeyOperation *op, const char *new_key_fpr); 51 | }; 52 | 53 | GType gpa_gen_key_operation_get_type (void) G_GNUC_CONST; 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /src/settingsdlg.h: -------------------------------------------------------------------------------- 1 | /* settingsdlg.c - The GNU Privacy Assistant 2 | Copyright (C) 2008 g10 Code GmbH. 3 | 4 | This file is part of GPA. 5 | 6 | GPA is free software; you can redistribute it and/or modify it 7 | under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | GPA is distributed in the hope that it will be useful, but WITHOUT 12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, see . */ 18 | 19 | #ifndef SETTINGSDLG_H 20 | #define SETTINGSDLG_H 21 | 22 | 23 | /* Definitions to define the object. */ 24 | #define SETTINGS_DLG_TYPE \ 25 | (settings_dlg_get_type ()) 26 | 27 | #define SETTINGS_DLG(obj) \ 28 | (G_TYPE_CHECK_INSTANCE_CAST \ 29 | ((obj), SETTINGS_DLG_TYPE,\ 30 | SettingsDlg)) 31 | 32 | #define SETTINGS_DLG_CLASS(klass) \ 33 | (G_TYPE_CHECK_CLASS_CAST \ 34 | ((klass), SETTINGS_DLG_TYPE, \ 35 | SettingsDlgClass)) 36 | 37 | #define IS_SETTINGS_DLG(obj) \ 38 | (G_TYPE_CHECK_INSTANCE_TYPE \ 39 | ((obj), SETTINGS_DLG_TYPE)) 40 | 41 | #define IS_SETTINGS_DLG_CLASS(klass) \ 42 | (G_TYPE_CHECK_CLASS_TYPE \ 43 | ((klass), SETTINGS_DLG_TYPE)) 44 | 45 | #define SETTINGS_DLG_GET_CLASS(obj) \ 46 | (G_TYPE_INSTANCE_GET_CLASS \ 47 | ((obj), SETTINGS_DLG_TYPE, \ 48 | SettingsDlgClass)) 49 | 50 | typedef struct _SettingsDlg SettingsDlg; 51 | typedef struct _SettingsDlgClass SettingsDlgClass; 52 | 53 | 54 | GType settings_dlg_get_type (void) G_GNUC_CONST; 55 | 56 | 57 | /************************************ 58 | ************ Public API ************ 59 | ************************************/ 60 | 61 | /* Create and show the settings dialog. */ 62 | void settings_dlg_new (GtkWidget *parent); 63 | 64 | /* Tell whether the settings dialog is open. */ 65 | gboolean settings_is_open (void); 66 | 67 | 68 | #endif /*SETTINGSDLG_H*/ 69 | -------------------------------------------------------------------------------- /src/gpawindowkeeper.c: -------------------------------------------------------------------------------- 1 | /* gpawindowkeeper.c - The GNU Privacy Assistant 2 | * Copyright (C) 2000, 2001 G-N-U GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #include 22 | 23 | #include 24 | #include 25 | #include "gpa.h" 26 | #include "gpawindowkeeper.h" 27 | 28 | static GList *tempWindows = NULL; 29 | 30 | GpaWindowKeeper * 31 | gpa_windowKeeper_new (void) 32 | { 33 | /* var */ 34 | GpaWindowKeeper *keeper; 35 | /* commands */ 36 | keeper = (GpaWindowKeeper *) g_malloc (sizeof (GpaWindowKeeper)); 37 | keeper->window = NULL; 38 | keeper->listParam = NULL; 39 | tempWindows = g_list_append (tempWindows, keeper); 40 | return (keeper); 41 | } /* GpaWindowKeeper */ 42 | 43 | void 44 | gpa_windowKeeper_set_window (GpaWindowKeeper * keeper, GtkWidget * window) 45 | { 46 | keeper->window = window; 47 | } /* gpa_windowKeeper_set_window */ 48 | 49 | void 50 | gpa_windowKeeper_add_param (GpaWindowKeeper * keeper, gpointer param) 51 | { 52 | keeper->listParam = g_list_append (keeper->listParam, param); 53 | } /* gpa_windowKeeper_add_param */ 54 | 55 | void 56 | gpa_windowKeeper_release_exec (gpointer data, gpointer userData) 57 | { 58 | if (data) 59 | g_free (data); 60 | } /* gpa_windowKeeper_release_exec */ 61 | 62 | void 63 | gpa_windowKeeper_release (GpaWindowKeeper * keeper) 64 | { 65 | gtk_widget_destroy (keeper->window); 66 | g_list_foreach (keeper->listParam, gpa_windowKeeper_release_exec, NULL); 67 | tempWindows = g_list_remove (tempWindows, keeper); 68 | g_free (keeper); 69 | } /* gpa_windowKeeper_release */ 70 | -------------------------------------------------------------------------------- /src/cm-piv.h: -------------------------------------------------------------------------------- 1 | /* cm-piv.h - Widget to show information about a PIV card. 2 | * Copyright (C) 2019 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute and/or modify this part 7 | * of GPA under the terms of either 8 | * 9 | * - the GNU Lesser General Public License as published by the Free 10 | * Software Foundation; either version 3 of the License, or (at 11 | * your option) any later version. 12 | * 13 | * or 14 | * 15 | * - the GNU General Public License as published by the Free 16 | * Software Foundation; either version 2 of the License, or (at 17 | * your option) any later version. 18 | * 19 | * or both in parallel, as here. 20 | * 21 | * GPA is distributed in the hope that it will be useful, but WITHOUT 22 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 23 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 24 | * License for more details. 25 | * 26 | * You should have received a copy of the GNU General Public License 27 | * along with this program; if not, see . 28 | * SPDX-License-Identifier: LGPL-3.0-or-later OR GPL-2.0-or-later 29 | */ 30 | 31 | #ifndef CM_PIV_H 32 | #define CM_PIV_H 33 | 34 | #include 35 | 36 | /* Declare the Object. */ 37 | typedef struct _GpaCMPiv GpaCMPiv; 38 | typedef struct _GpaCMPivClass GpaCMPivClass; 39 | 40 | GType gpa_cm_piv_get_type (void) G_GNUC_CONST; 41 | 42 | #define GPA_CM_PIV_TYPE (gpa_cm_piv_get_type ()) 43 | 44 | #define GPA_CM_PIV(obj) \ 45 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_CM_PIV_TYPE, GpaCMPiv)) 46 | 47 | #define GPA_CM_PIV_CLASS(klass) \ 48 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 49 | GPA_CM_PIV_TYPE, GpaCMPivClass)) 50 | 51 | #define GPA_IS_CM_PIV(obj) \ 52 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_CM_PIV_TYPE)) 53 | 54 | #define GPA_IS_CM_PIV_CLASS(klass) \ 55 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_CM_PIV_TYPE)) 56 | 57 | #define GPA_CM_PIV_GET_CLASS(obj) \ 58 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 59 | GPA_CM_PIV_TYPE, GpaCMPivClass)) 60 | 61 | 62 | /* The class specific API. */ 63 | GtkWidget *gpa_cm_piv_new (void); 64 | void gpa_cm_piv_reload (GtkWidget *widget, gpgme_ctx_t gpgagent); 65 | 66 | 67 | 68 | #endif /*CM_PIV_H*/ 69 | -------------------------------------------------------------------------------- /src/cm-netkey.h: -------------------------------------------------------------------------------- 1 | /* cm-netkey.h - Widget to show information about a Netkey card. 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute and/or modify this part 7 | * of GPA under the terms of either 8 | * 9 | * - the GNU Lesser General Public License as published by the Free 10 | * Software Foundation; either version 3 of the License, or (at 11 | * your option) any later version. 12 | * 13 | * or 14 | * 15 | * - the GNU General Public License as published by the Free 16 | * Software Foundation; either version 2 of the License, or (at 17 | * your option) any later version. 18 | * 19 | * or both in parallel, as here. 20 | * 21 | * GPA is distributed in the hope that it will be useful, but WITHOUT 22 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 23 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 24 | * License for more details. 25 | * 26 | * You should have received a copy of the GNU General Public License 27 | * along with this program; if not, see . 28 | */ 29 | 30 | #ifndef CM_NETKEY_H 31 | #define CM_NETKEY_H 32 | 33 | #include 34 | 35 | /* Declare the Object. */ 36 | typedef struct _GpaCMNetkey GpaCMNetkey; 37 | typedef struct _GpaCMNetkeyClass GpaCMNetkeyClass; 38 | 39 | GType gpa_cm_netkey_get_type (void) G_GNUC_CONST; 40 | 41 | #define GPA_CM_NETKEY_TYPE (gpa_cm_netkey_get_type ()) 42 | 43 | #define GPA_CM_NETKEY(obj) \ 44 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_CM_NETKEY_TYPE, GpaCMNetkey)) 45 | 46 | #define GPA_CM_NETKEY_CLASS(klass) \ 47 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 48 | GPA_CM_NETKEY_TYPE, GpaCMNetkeyClass)) 49 | 50 | #define GPA_IS_CM_NETKEY(obj) \ 51 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_CM_NETKEY_TYPE)) 52 | 53 | #define GPA_IS_CM_NETKEY_CLASS(klass) \ 54 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_CM_NETKEY_TYPE)) 55 | 56 | #define GPA_CM_NETKEY_GET_CLASS(obj) \ 57 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 58 | GPA_CM_NETKEY_TYPE, GpaCMNetkeyClass)) 59 | 60 | 61 | /* The class specific API. */ 62 | GtkWidget *gpa_cm_netkey_new (void); 63 | void gpa_cm_netkey_reload (GtkWidget *widget, gpgme_ctx_t gpgagent); 64 | 65 | 66 | 67 | #endif /*CM_NETKEY_H*/ 68 | -------------------------------------------------------------------------------- /src/cm-unknown.h: -------------------------------------------------------------------------------- 1 | /* cm-unknown.h - Widget to show information about an unknown card. 2 | * Copyright (C) 2009, 2011 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute and/or modify this part 7 | * of GPA under the terms of either 8 | * 9 | * - the GNU Lesser General Public License as published by the Free 10 | * Software Foundation; either version 3 of the License, or (at 11 | * your option) any later version. 12 | * 13 | * or 14 | * 15 | * - the GNU General Public License as published by the Free 16 | * Software Foundation; either version 2 of the License, or (at 17 | * your option) any later version. 18 | * 19 | * or both in parallel, as here. 20 | * 21 | * GPA is distributed in the hope that it will be useful, but WITHOUT 22 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 23 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 24 | * License for more details. 25 | * 26 | * You should have received a copy of the GNU General Public License 27 | * along with this program; if not, see . 28 | */ 29 | 30 | #ifndef CM_UNKNOWN_H 31 | #define CM_UNKNOWN_H 32 | 33 | #include 34 | 35 | /* Declare the Object. */ 36 | typedef struct _GpaCMUnknown GpaCMUnknown; 37 | typedef struct _GpaCMUnknownClass GpaCMUnknownClass; 38 | 39 | GType gpa_cm_unknown_get_type (void) G_GNUC_CONST; 40 | 41 | #define GPA_CM_UNKNOWN_TYPE (gpa_cm_unknown_get_type ()) 42 | 43 | #define GPA_CM_UNKNOWN(obj) \ 44 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_CM_UNKNOWN_TYPE, GpaCMUnknown)) 45 | 46 | #define GPA_CM_UNKNOWN_CLASS(klass) \ 47 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 48 | GPA_CM_UNKNOWN_TYPE, GpaCMUnknownClass)) 49 | 50 | #define GPA_IS_CM_UNKNOWN(obj) \ 51 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_CM_UNKNOWN_TYPE)) 52 | 53 | #define GPA_IS_CM_UNKNOWN_CLASS(klass) \ 54 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_CM_UNKNOWN_TYPE)) 55 | 56 | #define GPA_CM_UNKNOWN_GET_CLASS(obj) \ 57 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 58 | GPA_CM_UNKNOWN_TYPE, GpaCMUnknownClass)) 59 | 60 | 61 | /* The class specific API. */ 62 | GtkWidget *gpa_cm_unknown_new (void); 63 | void gpa_cm_unknown_reload (GtkWidget *widget, gpgme_ctx_t gpgagent); 64 | 65 | 66 | 67 | #endif /*CM_UNKNOWN_H*/ 68 | -------------------------------------------------------------------------------- /src/cm-geldkarte.h: -------------------------------------------------------------------------------- 1 | /* cm-geldkarte.h - Widget to show information about a Geldkarte. 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute and/or modify this part 7 | * of GPA under the terms of either 8 | * 9 | * - the GNU Lesser General Public License as published by the Free 10 | * Software Foundation; either version 3 of the License, or (at 11 | * your option) any later version. 12 | * 13 | * or 14 | * 15 | * - the GNU General Public License as published by the Free 16 | * Software Foundation; either version 2 of the License, or (at 17 | * your option) any later version. 18 | * 19 | * or both in parallel, as here. 20 | * 21 | * GPA is distributed in the hope that it will be useful, but WITHOUT 22 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 23 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 24 | * License for more details. 25 | * 26 | * You should have received a copy of the GNU General Public License 27 | * along with this program; if not, see . 28 | */ 29 | 30 | #ifndef CM_GELDKARTE_H 31 | #define CM_GELDKARTE_H 32 | 33 | #include 34 | 35 | /* Declare the Object. */ 36 | typedef struct _GpaCMGeldkarte GpaCMGeldkarte; 37 | typedef struct _GpaCMGeldkarteClass GpaCMGeldkarteClass; 38 | 39 | GType gpa_cm_geldkarte_get_type (void) G_GNUC_CONST; 40 | 41 | #define GPA_CM_GELDKARTE_TYPE (gpa_cm_geldkarte_get_type ()) 42 | 43 | #define GPA_CM_GELDKARTE(obj) \ 44 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_CM_GELDKARTE_TYPE, GpaCMGeldkarte)) 45 | 46 | #define GPA_CM_GELDKARTE_CLASS(klass) \ 47 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 48 | GPA_CM_GELDKARTE_TYPE, GpaCMGeldkarteClass)) 49 | 50 | #define GPA_IS_CM_GELDKARTE(obj) \ 51 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_CM_GELDKARTE_TYPE)) 52 | 53 | #define GPA_IS_CM_GELDKARTE_CLASS(klass) \ 54 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_CM_GELDKARTE_TYPE)) 55 | 56 | #define GPA_CM_GELDKARTE_GET_CLASS(obj) \ 57 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 58 | GPA_CM_GELDKARTE_TYPE, GpaCMGeldkarteClass)) 59 | 60 | 61 | /* The class specific API. */ 62 | GtkWidget *gpa_cm_geldkarte_new (void); 63 | void gpa_cm_geldkarte_reload (GtkWidget *widget, gpgme_ctx_t gpgagent); 64 | 65 | 66 | 67 | #endif /*CM_GELDKARTE_H*/ 68 | -------------------------------------------------------------------------------- /src/gpakeypasswdop.h: -------------------------------------------------------------------------------- 1 | /* gpakeypasswdop.h - The GpaKeyPasswdOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_KEY_PASSWD_OP_H 22 | #define GPA_KEY_PASSWD_OP_H 23 | 24 | #include 25 | #include 26 | #include "gpa.h" 27 | #include "gpakeyop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_KEY_PASSWD_OPERATION_TYPE (gpa_key_passwd_operation_get_type ()) 31 | #define GPA_KEY_PASSWD_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_PASSWD_OPERATION_TYPE, GpaKeyPasswdOperation)) 32 | #define GPA_KEY_PASSWD_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEY_PASSWD_OPERATION_TYPE, GpaKeyPasswdOperationClass)) 33 | #define GPA_IS_KEY_PASSWD_ENCRYPT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_PASSWD_OPERATION_TYPE)) 34 | #define GPA_IS_KEY_PASSWD_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_PASSWD_OPERATION_TYPE)) 35 | #define GPA_KEY_PASSWD_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEY_PASSWD_OPERATION_TYPE, GpaKeyPasswdOperationClass)) 36 | 37 | typedef struct _GpaKeyPasswdOperation GpaKeyPasswdOperation; 38 | typedef struct _GpaKeyPasswdOperationClass GpaKeyPasswdOperationClass; 39 | 40 | struct _GpaKeyPasswdOperation { 41 | GpaKeyOperation parent; 42 | }; 43 | 44 | struct _GpaKeyPasswdOperationClass { 45 | GpaKeyOperationClass parent_class; 46 | }; 47 | 48 | GType gpa_key_passwd_operation_get_type (void) G_GNUC_CONST; 49 | 50 | /* API */ 51 | 52 | /* Creates a new key deletion operation. 53 | */ 54 | GpaKeyPasswdOperation* 55 | gpa_key_passwd_operation_new (GtkWidget *window, GList *keys); 56 | 57 | #endif 58 | -------------------------------------------------------------------------------- /src/gpakeysignop.h: -------------------------------------------------------------------------------- 1 | /* gpakeysignop.h - The GpaKeySignOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_KEY_SIGN_OP_H 22 | #define GPA_KEY_SIGN_OP_H 23 | 24 | #include 25 | #include 26 | #include "gpa.h" 27 | #include "gpakeyop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_KEY_SIGN_OPERATION_TYPE (gpa_key_sign_operation_get_type ()) 31 | #define GPA_KEY_SIGN_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_SIGN_OPERATION_TYPE, GpaKeySignOperation)) 32 | #define GPA_KEY_SIGN_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEY_SIGN_OPERATION_TYPE, GpaKeySignOperationClass)) 33 | #define GPA_IS_KEY_SIGN_ENCRYPT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_SIGN_OPERATION_TYPE)) 34 | #define GPA_IS_KEY_SIGN_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_SIGN_OPERATION_TYPE)) 35 | #define GPA_KEY_SIGN_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEY_SIGN_OPERATION_TYPE, GpaKeySignOperationClass)) 36 | 37 | typedef struct _GpaKeySignOperation GpaKeySignOperation; 38 | typedef struct _GpaKeySignOperationClass GpaKeySignOperationClass; 39 | 40 | struct _GpaKeySignOperation { 41 | GpaKeyOperation parent; 42 | 43 | gpgme_key_t signer_key; 44 | int signed_keys; 45 | }; 46 | 47 | struct _GpaKeySignOperationClass { 48 | GpaKeyOperationClass parent_class; 49 | }; 50 | 51 | GType gpa_key_sign_operation_get_type (void) G_GNUC_CONST; 52 | 53 | /* API */ 54 | 55 | /* Creates a new key deletion operation. 56 | */ 57 | GpaKeySignOperation* 58 | gpa_key_sign_operation_new (GtkWidget *window, GList *keys); 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /src/gpakeytrustop.h: -------------------------------------------------------------------------------- 1 | /* gpakeytrustop.h - The GpaKeyTrustOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_KEY_TRUST_OP_H 22 | #define GPA_KEY_TRUST_OP_H 23 | 24 | #include 25 | #include 26 | #include "gpa.h" 27 | #include "gpakeyop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_KEY_TRUST_OPERATION_TYPE (gpa_key_trust_operation_get_type ()) 31 | #define GPA_KEY_TRUST_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_TRUST_OPERATION_TYPE, GpaKeyTrustOperation)) 32 | #define GPA_KEY_TRUST_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEY_TRUST_OPERATION_TYPE, GpaKeyTrustOperationClass)) 33 | #define GPA_IS_KEY_TRUST_ENCRYPT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_TRUST_OPERATION_TYPE)) 34 | #define GPA_IS_KEY_TRUST_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_TRUST_OPERATION_TYPE)) 35 | #define GPA_KEY_TRUST_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEY_TRUST_OPERATION_TYPE, GpaKeyTrustOperationClass)) 36 | 37 | typedef struct _GpaKeyTrustOperation GpaKeyTrustOperation; 38 | typedef struct _GpaKeyTrustOperationClass GpaKeyTrustOperationClass; 39 | 40 | struct _GpaKeyTrustOperation { 41 | GpaKeyOperation parent; 42 | 43 | int modified_keys; 44 | }; 45 | 46 | struct _GpaKeyTrustOperationClass { 47 | GpaKeyOperationClass parent_class; 48 | }; 49 | 50 | GType gpa_key_trust_operation_get_type (void) G_GNUC_CONST; 51 | 52 | /* API */ 53 | 54 | /* Creates a new key deletion operation. 55 | */ 56 | GpaKeyTrustOperation* 57 | gpa_key_trust_operation_new (GtkWidget *window, GList *keys); 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /src/cm-openpgp.h: -------------------------------------------------------------------------------- 1 | /* cm-openpgp.h - OpenPGP card part for the card manager. 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute and/or modify this part 7 | * of GPA under the terms of either 8 | * 9 | * - the GNU Lesser General Public License as published by the Free 10 | * Software Foundation; either version 3 of the License, or (at 11 | * your option) any later version. 12 | * 13 | * or 14 | * 15 | * - the GNU General Public License as published by the Free 16 | * Software Foundation; either version 2 of the License, or (at 17 | * your option) any later version. 18 | * 19 | * or both in parallel, as here. 20 | * 21 | * GPA is distributed in the hope that it will be useful, but WITHOUT 22 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 23 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 24 | * License for more details. 25 | * 26 | * You should have received a copy of the GNU General Public License 27 | * along with this program; if not, see . 28 | */ 29 | 30 | #ifndef CM_OPENPGP_H 31 | #define CM_OPENPGP_H 32 | 33 | #include 34 | 35 | /* Declare the Object. */ 36 | typedef struct _GpaCMOpenpgp GpaCMOpenpgp; 37 | typedef struct _GpaCMOpenpgpClass GpaCMOpenpgpClass; 38 | 39 | GType gpa_cm_openpgp_get_type (void) G_GNUC_CONST; 40 | 41 | #define GPA_CM_OPENPGP_TYPE (gpa_cm_openpgp_get_type ()) 42 | 43 | #define GPA_CM_OPENPGP(obj) \ 44 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_CM_OPENPGP_TYPE, GpaCMOpenpgp)) 45 | 46 | #define GPA_CM_OPENPGP_CLASS(klass) \ 47 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 48 | GPA_CM_OPENPGP_TYPE, GpaCMOpenpgpClass)) 49 | 50 | #define GPA_IS_CM_OPENPGP(obj) \ 51 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_CM_OPENPGP_TYPE)) 52 | 53 | #define GPA_IS_CM_OPENPGP_CLASS(klass) \ 54 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_CM_OPENPGP_TYPE)) 55 | 56 | #define GPA_CM_OPENPGP_GET_CLASS(obj) \ 57 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 58 | GPA_CM_OPENPGP_TYPE, GpaCMOpenpgpClass)) 59 | 60 | 61 | /* The class specific API. */ 62 | GtkWidget *gpa_cm_openpgp_new (void); 63 | void gpa_cm_openpgp_reload (GtkWidget *widget, gpgme_ctx_t gpgagent); 64 | char *gpa_cm_openpgp_get_key_attributes (GtkWidget *widget); 65 | 66 | 67 | 68 | #endif /*CM_OPENPGP_H*/ 69 | -------------------------------------------------------------------------------- /src/gpakeydeleteop.h: -------------------------------------------------------------------------------- 1 | /* gpakeydeleteop.h - The GpaKeyDeleteOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_KEY_DELETE_OP_H 22 | #define GPA_KEY_DELETE_OP_H 23 | 24 | #include 25 | #include 26 | #include "gpa.h" 27 | #include "gpakeyop.h" 28 | #include "keydeletedlg.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_KEY_DELETE_OPERATION_TYPE (gpa_key_delete_operation_get_type ()) 32 | #define GPA_KEY_DELETE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_DELETE_OPERATION_TYPE, GpaKeyDeleteOperation)) 33 | #define GPA_KEY_DELETE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEY_DELETE_OPERATION_TYPE, GpaKeyDeleteOperationClass)) 34 | #define GPA_IS_KEY_DELETE_ENCRYPT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_DELETE_OPERATION_TYPE)) 35 | #define GPA_IS_KEY_DELETE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_DELETE_OPERATION_TYPE)) 36 | #define GPA_KEY_DELETE_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEY_DELETE_OPERATION_TYPE, GpaKeyDeleteOperationClass)) 37 | 38 | typedef struct _GpaKeyDeleteOperation GpaKeyDeleteOperation; 39 | typedef struct _GpaKeyDeleteOperationClass GpaKeyDeleteOperationClass; 40 | 41 | struct _GpaKeyDeleteOperation { 42 | GpaKeyOperation parent; 43 | }; 44 | 45 | struct _GpaKeyDeleteOperationClass { 46 | GpaKeyOperationClass parent_class; 47 | }; 48 | 49 | GType gpa_key_delete_operation_get_type (void) G_GNUC_CONST; 50 | 51 | /* API */ 52 | 53 | /* Creates a new key deletion operation. 54 | */ 55 | GpaKeyDeleteOperation* 56 | gpa_key_delete_operation_new (GtkWidget *window, GList *keys); 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /src/gpaimportfileop.h: -------------------------------------------------------------------------------- 1 | /* gpaimportfileop.h - The GpaImportFileOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_IMPORT_FILE_OP_H 22 | #define GPA_IMPORT_FILE_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpaimportop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_IMPORT_FILE_OPERATION_TYPE (gpa_import_file_operation_get_type ()) 31 | #define GPA_IMPORT_FILE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_IMPORT_FILE_OPERATION_TYPE, GpaImportFileOperation)) 32 | #define GPA_IMPORT_FILE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_IMPORT_FILE_OPERATION_TYPE, GpaImportFileOperationClass)) 33 | #define GPA_IS_IMPORT_FILE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_IMPORT_FILE_OPERATION_TYPE)) 34 | #define GPA_IS_IMPORT_FILE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_IMPORT_FILE_OPERATION_TYPE)) 35 | #define GPA_IMPORT_FILE_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_IMPORT_FILE_OPERATION_TYPE, GpaImportFileOperationClass)) 36 | 37 | typedef struct _GpaImportFileOperation GpaImportFileOperation; 38 | typedef struct _GpaImportFileOperationClass GpaImportFileOperationClass; 39 | 40 | struct _GpaImportFileOperation { 41 | GpaImportOperation parent; 42 | 43 | char *file; 44 | int fd; 45 | }; 46 | 47 | struct _GpaImportFileOperationClass { 48 | GpaImportOperationClass parent_class; 49 | 50 | }; 51 | 52 | GType gpa_import_file_operation_get_type (void) G_GNUC_CONST; 53 | 54 | /* API */ 55 | 56 | /* Creates a new import from file operation. 57 | */ 58 | GpaImportFileOperation* 59 | gpa_import_file_operation_new (GtkWidget *window); 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /src/gpaexportfileop.h: -------------------------------------------------------------------------------- 1 | /* gpaexportfileop.h - The GpaExportFileOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_EXPORT_FILE_OP_H 22 | #define GPA_EXPORT_FILE_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpaexportop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_EXPORT_FILE_OPERATION_TYPE (gpa_export_file_operation_get_type ()) 31 | #define GPA_EXPORT_FILE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_EXPORT_FILE_OPERATION_TYPE, GpaExportFileOperation)) 32 | #define GPA_EXPORT_FILE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_EXPORT_FILE_OPERATION_TYPE, GpaExportFileOperationClass)) 33 | #define GPA_IS_EXPORT_FILE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_EXPORT_FILE_OPERATION_TYPE)) 34 | #define GPA_IS_EXPORT_FILE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_EXPORT_FILE_OPERATION_TYPE)) 35 | #define GPA_EXPORT_FILE_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_EXPORT_FILE_OPERATION_TYPE, GpaExportFileOperationClass)) 36 | 37 | typedef struct _GpaExportFileOperation GpaExportFileOperation; 38 | typedef struct _GpaExportFileOperationClass GpaExportFileOperationClass; 39 | 40 | struct _GpaExportFileOperation { 41 | GpaExportOperation parent; 42 | 43 | char *file; 44 | int fd; 45 | }; 46 | 47 | struct _GpaExportFileOperationClass { 48 | GpaExportOperationClass parent_class; 49 | 50 | }; 51 | 52 | GType gpa_export_file_operation_get_type (void) G_GNUC_CONST; 53 | 54 | /* API */ 55 | 56 | /* Creates a new export to file operation. 57 | */ 58 | GpaExportFileOperation* 59 | gpa_export_file_operation_new (GtkWidget *window, GList *keys); 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /src/recipientdlg.h: -------------------------------------------------------------------------------- 1 | /* recipientdlg.h - A dialog to select a mail recipient. 2 | * Copyright (C) 2008 g10 Code GmbH. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef RECIPIENTDLG_H 21 | #define RECIPIENTDLG_H 22 | 23 | 24 | /* Definitions to define the object. */ 25 | #define RECIPIENT_DLG_TYPE \ 26 | (recipient_dlg_get_type ()) 27 | 28 | #define RECIPIENT_DLG(obj) \ 29 | (G_TYPE_CHECK_INSTANCE_CAST \ 30 | ((obj), RECIPIENT_DLG_TYPE,\ 31 | RecipientDlg)) 32 | 33 | #define RECIPIENT_DLG_CLASS(klass) \ 34 | (G_TYPE_CHECK_CLASS_CAST \ 35 | ((klass), RECIPIENT_DLG_TYPE, \ 36 | RecipientDlgClass)) 37 | 38 | #define IS_RECIPIENT_DLG(obj) \ 39 | (G_TYPE_CHECK_INSTANCE_TYPE \ 40 | ((obj), RECIPIENT_DLG_TYPE)) 41 | 42 | #define IS_RECIPIENT_DLG_CLASS(klass) \ 43 | (G_TYPE_CHECK_CLASS_TYPE \ 44 | ((klass), RECIPIENT_DLG_TYPE)) 45 | 46 | #define RECIPIENT_DLG_GET_CLASS(obj) \ 47 | (G_TYPE_INSTANCE_GET_CLASS \ 48 | ((obj), RECIPIENT_DLG_TYPE, \ 49 | RecipientDlgClass)) 50 | 51 | typedef struct _RecipientDlg RecipientDlg; 52 | typedef struct _RecipientDlgClass RecipientDlgClass; 53 | 54 | 55 | GType recipient_dlg_get_type (void) G_GNUC_CONST; 56 | 57 | 58 | /************************************ 59 | ************ Public API ************ 60 | ************************************/ 61 | 62 | RecipientDlg *recipient_dlg_new (GtkWidget *parent); 63 | void recipient_dlg_set_recipients (RecipientDlg *dialog, GSList *recipients, 64 | gpgme_protocol_t protocol); 65 | gpgme_key_t *recipient_dlg_get_keys (RecipientDlg *dialog, 66 | gpgme_protocol_t *r_protocol); 67 | 68 | 69 | 70 | #endif /*RECIPIENTDLG_H*/ 71 | -------------------------------------------------------------------------------- /src/gparecvkeydlg.h: -------------------------------------------------------------------------------- 1 | /* gparecvkeydlg.h - The GpaReceiveKeyDialog object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_RECEIVE_KEY_DIALOG_H 22 | #define GPA_RECEIVE_KEY_DIALOG_H 23 | 24 | #include 25 | #include 26 | #include 27 | #include "gpacontext.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_RECEIVE_KEY_DIALOG_TYPE (gpa_receive_key_dialog_get_type ()) 31 | #define GPA_RECEIVE_KEY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_RECEIVE_KEY_DIALOG_TYPE, GpaReceiveKeyDialog)) 32 | #define GPA_RECEIVE_KEY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_RECEIVE_KEY_DIALOG_TYPE, GpaReceiveKeyDialogClass)) 33 | #define GPA_IS_RECEIVE_KEY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_RECEIVE_KEY_DIALOG_TYPE)) 34 | #define GPA_IS_RECEIVE_KEY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_RECEIVE_KEY_DIALOG_TYPE)) 35 | #define GPA_RECEIVE_KEY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_RECEIVE_KEY_DIALOG_TYPE, GpaReceiveKeyDialogClass)) 36 | 37 | typedef struct _GpaReceiveKeyDialog GpaReceiveKeyDialog; 38 | typedef struct _GpaReceiveKeyDialogClass GpaReceiveKeyDialogClass; 39 | 40 | struct _GpaReceiveKeyDialog { 41 | GtkDialog parent; 42 | 43 | GtkWidget *entry; 44 | }; 45 | 46 | struct _GpaReceiveKeyDialogClass { 47 | GtkDialogClass parent_class; 48 | }; 49 | 50 | GType gpa_receive_key_dialog_get_type (void) G_GNUC_CONST; 51 | 52 | /* API */ 53 | 54 | /* Create a new receive key dialog. 55 | */ 56 | GtkWidget* 57 | gpa_receive_key_dialog_new (GtkWidget *parent); 58 | 59 | /* Retrieve the selected key ID. 60 | */ 61 | const gchar* 62 | gpa_receive_key_dialog_get_id (GpaReceiveKeyDialog *dialog); 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /src/keyeditdlg.h: -------------------------------------------------------------------------------- 1 | /* keyeditdlg.h - The GpaKeyEditDialog object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_KEY_EDIT_DIALOG_H 22 | #define GPA_KEY_EDIT_DIALOG_H 23 | 24 | #include 25 | #include 26 | #include 27 | #include "gpacontext.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_KEY_EDIT_DIALOG_TYPE (gpa_key_edit_dialog_get_type ()) 31 | #define GPA_KEY_EDIT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_EDIT_DIALOG_TYPE, GpaKeyEditDialog)) 32 | #define GPA_KEY_EDIT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEY_EDIT_DIALOG_TYPE, GpaKeyEditDialogClass)) 33 | #define GPA_IS_KEY_EDIT_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_EDIT_DIALOG_TYPE)) 34 | #define GPA_IS_KEY_EDIT_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_EDIT_DIALOG_TYPE)) 35 | #define GPA_KEY_EDIT_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEY_EDIT_DIALOG_TYPE, GpaKeyEditDialogClass)) 36 | 37 | typedef struct _GpaKeyEditDialog GpaKeyEditDialog; 38 | typedef struct _GpaKeyEditDialogClass GpaKeyEditDialogClass; 39 | 40 | struct _GpaKeyEditDialog { 41 | GtkDialog parent; 42 | 43 | /* Key being modified */ 44 | gpgme_key_t key; 45 | 46 | /* Expiry date label */ 47 | GtkWidget *expiry; 48 | }; 49 | 50 | struct _GpaKeyEditDialogClass { 51 | GtkDialogClass parent_class; 52 | 53 | /* "Key modified" signal */ 54 | void (*key_modified) (GpaKeyEditDialog *dialog, gpgme_key_t key); 55 | }; 56 | 57 | GType gpa_key_edit_dialog_get_type (void) G_GNUC_CONST; 58 | 59 | /* API */ 60 | 61 | /* Create a new "edit key" dialog. 62 | */ 63 | GtkWidget* 64 | gpa_key_edit_dialog_new (GtkWidget *parent, gpgme_key_t key); 65 | 66 | #endif 67 | -------------------------------------------------------------------------------- /src/gpastreamop.h: -------------------------------------------------------------------------------- 1 | /* gpastreamop.h - The GpaStreamOperation object. 2 | * Copyright (C) 2007 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute it and/or modify it 7 | * under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 3 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, but WITHOUT 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | * License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, see . 18 | */ 19 | 20 | #ifndef GPA_STREAM_OP_H 21 | #define GPA_STREAM_OP_H 22 | 23 | #include 24 | #include 25 | #include "gpa.h" 26 | #include "gpaoperation.h" 27 | #include "gpaprogressdlg.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_STREAM_OPERATION_TYPE \ 31 | (gpa_stream_operation_get_type ()) 32 | #define GPA_STREAM_OPERATION(obj) \ 33 | (G_TYPE_CHECK_INSTANCE_CAST \ 34 | ((obj), GPA_STREAM_OPERATION_TYPE, GpaStreamOperation)) 35 | #define GPA_STREAM_OPERATION_CLASS(klass) \ 36 | (G_TYPE_CHECK_CLASS_CAST \ 37 | ((klass), GPA_STREAM_OPERATION_TYPE, \ 38 | GpaStreamOperationClass)) 39 | #define GPA_IS_STREAM_OPERATION(obj) \ 40 | (G_TYPE_CHECK_INSTANCE_TYPE \ 41 | ((obj), GPA_STREAM_OPERATION_TYPE)) 42 | #define GPA_IS_STREAM_OPERATION_CLASS(klass) \ 43 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_STREAM_OPERATION_TYPE)) 44 | #define GPA_STREAM_OPERATION_GET_CLASS(obj) \ 45 | (G_TYPE_INSTANCE_GET_CLASS \ 46 | ((obj), GPA_STREAM_OPERATION_TYPE, GpaStreamOperationClass)) 47 | 48 | typedef struct _GpaStreamOperation GpaStreamOperation; 49 | typedef struct _GpaStreamOperationClass GpaStreamOperationClass; 50 | 51 | struct _GpaStreamOperation { 52 | GpaOperation parent; 53 | 54 | gpgme_data_t input_stream; 55 | gpgme_data_t output_stream; 56 | gpgme_data_t message_stream; 57 | 58 | GtkWidget *progress_dialog; 59 | }; 60 | 61 | struct _GpaStreamOperationClass { 62 | GpaOperationClass parent_class; 63 | 64 | }; 65 | 66 | GType gpa_stream_operation_get_type (void) G_GNUC_CONST; 67 | 68 | /*** API ***/ 69 | 70 | 71 | 72 | #endif /*GPA_STREAM_OP_H*/ 73 | -------------------------------------------------------------------------------- /src/gpabackupop.h: -------------------------------------------------------------------------------- 1 | /* gpabackupop.h - The GpaBackupOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_BACKUP_OP_H 22 | #define GPA_BACKUP_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpaoperation.h" 28 | #include "gpaprogressdlg.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_BACKUP_OPERATION_TYPE (gpa_backup_operation_get_type ()) 32 | #define GPA_BACKUP_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_BACKUP_OPERATION_TYPE, GpaBackupOperation)) 33 | #define GPA_BACKUP_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_BACKUP_OPERATION_TYPE, GpaBackupOperationClass)) 34 | #define GPA_IS_BACKUP_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_BACKUP_OPERATION_TYPE)) 35 | #define GPA_IS_BACKUP_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_BACKUP_OPERATION_TYPE)) 36 | #define GPA_BACKUP_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_BACKUP_OPERATION_TYPE, GpaBackupOperationClass)) 37 | 38 | typedef struct _GpaBackupOperation GpaBackupOperation; 39 | typedef struct _GpaBackupOperationClass GpaBackupOperationClass; 40 | 41 | struct _GpaBackupOperation { 42 | GpaOperation parent; 43 | 44 | gpgme_key_t key; 45 | gchar *fpr, *key_id; 46 | gpgme_protocol_t protocol; 47 | }; 48 | 49 | struct _GpaBackupOperationClass { 50 | GpaOperationClass parent_class; 51 | }; 52 | 53 | GType gpa_backup_operation_get_type (void) G_GNUC_CONST; 54 | 55 | /* API */ 56 | GpaBackupOperation* 57 | gpa_backup_operation_new (GtkWidget *window, gpgme_key_t key); 58 | 59 | GpaBackupOperation* 60 | gpa_backup_operation_new_from_fpr (GtkWidget *window, const gchar *fpr, 61 | gpgme_protocol_t protocol); 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /src/gpagenkeysimpleop.h: -------------------------------------------------------------------------------- 1 | /* gpagenkeysimpleop.h - The GpaGenKeySimpleOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_GEN_KEY_SIMPLE_OP_H 22 | #define GPA_GEN_KEY_SIMPLE_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpagenkeyop.h" 28 | #include "gpaprogressdlg.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_GEN_KEY_SIMPLE_OPERATION_TYPE (gpa_gen_key_simple_operation_get_type ()) 32 | #define GPA_GEN_KEY_SIMPLE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_GEN_KEY_SIMPLE_OPERATION_TYPE, GpaGenKeySimpleOperation)) 33 | #define GPA_GEN_KEY_SIMPLE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_GEN_KEY_SIMPLE_OPERATION_TYPE, GpaGenKeySimpleOperationClass)) 34 | #define GPA_IS_GEN_KEY_SIMPLE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_GEN_KEY_SIMPLE_OPERATION_TYPE)) 35 | #define GPA_IS_GEN_KEY_SIMPLE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_GEN_KEY_SIMPLE_OPERATION_TYPE)) 36 | #define GPA_GEN_KEY_SIMPLE_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_GEN_KEY_SIMPLE_OPERATION_TYPE, GpaGenKeySimpleOperationClass)) 37 | 38 | typedef struct _GpaGenKeySimpleOperation GpaGenKeySimpleOperation; 39 | typedef struct _GpaGenKeySimpleOperationClass GpaGenKeySimpleOperationClass; 40 | 41 | struct _GpaGenKeySimpleOperation { 42 | GpaGenKeyOperation parent; 43 | 44 | GtkWidget *wizard; 45 | gboolean do_backup; 46 | }; 47 | 48 | struct _GpaGenKeySimpleOperationClass { 49 | GpaGenKeyOperationClass parent_class; 50 | 51 | }; 52 | 53 | GType gpa_gen_key_simple_operation_get_type (void) G_GNUC_CONST; 54 | 55 | /* API */ 56 | GpaGenKeySimpleOperation* 57 | gpa_gen_key_simple_operation_new (GtkWidget *window); 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /src/gpakeyop.h: -------------------------------------------------------------------------------- 1 | /* gpakeyop.h - The GpaKeyOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_KEY_OP_H 22 | #define GPA_KEY_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpaoperation.h" 28 | #include "gpaprogressdlg.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_KEY_OPERATION_TYPE (gpa_key_operation_get_type ()) 32 | #define GPA_KEY_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_OPERATION_TYPE, GpaKeyOperation)) 33 | #define GPA_KEY_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEY_OPERATION_TYPE, GpaKeyOperationClass)) 34 | #define GPA_IS_KEY_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_OPERATION_TYPE)) 35 | #define GPA_IS_KEY_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_OPERATION_TYPE)) 36 | #define GPA_KEY_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEY_OPERATION_TYPE, GpaKeyOperationClass)) 37 | 38 | typedef struct _GpaKeyOperation GpaKeyOperation; 39 | typedef struct _GpaKeyOperationClass GpaKeyOperationClass; 40 | 41 | struct _GpaKeyOperation { 42 | GpaOperation parent; 43 | 44 | GList *keys; 45 | GList *current; 46 | }; 47 | 48 | struct _GpaKeyOperationClass { 49 | GpaOperationClass parent_class; 50 | 51 | /* Signal handlers */ 52 | void (*changed_wot) (GpaKeyOperation *operation); 53 | }; 54 | 55 | GType gpa_key_operation_get_type (void) G_GNUC_CONST; 56 | 57 | /* API */ 58 | 59 | /* Returns the list of keys on which the operation has been called. 60 | */ 61 | GList* 62 | gpa_key_operation_keys (GpaKeyOperation *op); 63 | 64 | /* Returns the key the operation is currently being applied to. 65 | */ 66 | gpgme_key_t 67 | gpa_key_operation_current_key (GpaKeyOperation *op); 68 | 69 | #endif 70 | -------------------------------------------------------------------------------- /src/gpafilesignop.h: -------------------------------------------------------------------------------- 1 | /* gpafilesignop.h - The GpaFileSignOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_FILE_SIGN_OP_H 22 | #define GPA_FILE_SIGN_OP_H 23 | 24 | #include 25 | #include 26 | #include "gpafileop.h" 27 | 28 | /* GObject stuff */ 29 | #define GPA_FILE_SIGN_OPERATION_TYPE (gpa_file_sign_operation_get_type ()) 30 | #define GPA_FILE_SIGN_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_FILE_SIGN_OPERATION_TYPE, GpaFileSignOperation)) 31 | #define GPA_FILE_SIGN_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_FILE_SIGN_OPERATION_TYPE, GpaFileSignOperationClass)) 32 | #define GPA_IS_FILE_SIGN_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_FILE_SIGN_OPERATION_TYPE)) 33 | #define GPA_IS_FILE_SIGN_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_FILE_SIGN_OPERATION_TYPE)) 34 | #define GPA_FILE_SIGN_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_FILE_SIGN_OPERATION_TYPE, GpaFileSignOperationClass)) 35 | 36 | typedef struct _GpaFileSignOperation GpaFileSignOperation; 37 | typedef struct _GpaFileSignOperationClass GpaFileSignOperationClass; 38 | 39 | struct _GpaFileSignOperation { 40 | GpaFileOperation parent; 41 | 42 | gpgme_sig_mode_t sign_type; 43 | GtkWidget *sign_dialog; 44 | int sig_fd, plain_fd; 45 | gpgme_data_t sig, plain; 46 | gchar *sig_filename; 47 | gboolean force_armor; 48 | }; 49 | 50 | struct _GpaFileSignOperationClass { 51 | GpaFileOperationClass parent_class; 52 | }; 53 | 54 | GType gpa_file_sign_operation_get_type (void) G_GNUC_CONST; 55 | 56 | /* API */ 57 | 58 | /* Creates a new sign operation. 59 | */ 60 | GpaFileSignOperation* 61 | gpa_file_sign_operation_new (GtkWidget *window, 62 | GList *files, gboolean force_armor); 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /src/gpagenkeyadvop.h: -------------------------------------------------------------------------------- 1 | /* gpagenkeyadvop.h - The GpaGenKeyAdvancedOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_GEN_KEY_ADVANCED_OP_H 22 | #define GPA_GEN_KEY_ADVANCED_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpagenkeyop.h" 28 | #include "gpaprogressdlg.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_GEN_KEY_ADVANCED_OPERATION_TYPE (gpa_gen_key_advanced_operation_get_type ()) 32 | #define GPA_GEN_KEY_ADVANCED_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_GEN_KEY_ADVANCED_OPERATION_TYPE, GpaGenKeyAdvancedOperation)) 33 | #define GPA_GEN_KEY_ADVANCED_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_GEN_KEY_ADVANCED_OPERATION_TYPE, GpaGenKeyAdvancedOperationClass)) 34 | #define GPA_IS_GEN_KEY_ADVANCED_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_GEN_KEY_ADVANCED_OPERATION_TYPE)) 35 | #define GPA_IS_GEN_KEY_ADVANCED_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_GEN_KEY_ADVANCED_OPERATION_TYPE)) 36 | #define GPA_GEN_KEY_ADVANCED_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_GEN_KEY_ADVANCED_OPERATION_TYPE, GpaGenKeyAdvancedOperationClass)) 37 | 38 | typedef struct _GpaGenKeyAdvancedOperation GpaGenKeyAdvancedOperation; 39 | typedef struct _GpaGenKeyAdvancedOperationClass GpaGenKeyAdvancedOperationClass; 40 | 41 | struct _GpaGenKeyAdvancedOperation { 42 | GpaGenKeyOperation parent; 43 | 44 | GtkWidget *progress_dialog; 45 | }; 46 | 47 | struct _GpaGenKeyAdvancedOperationClass { 48 | GpaGenKeyOperationClass parent_class; 49 | 50 | }; 51 | 52 | GType gpa_gen_key_advanced_operation_get_type (void) G_GNUC_CONST; 53 | 54 | /* API */ 55 | GpaGenKeyAdvancedOperation* 56 | gpa_gen_key_advanced_operation_new (GtkWidget *window); 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /src/gpafileverifyop.h: -------------------------------------------------------------------------------- 1 | /* gpafileverifyop.h - The GpaFileVerifyOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_FILE_VERIFY_OP_H 22 | #define GPA_FILE_VERIFY_OP_H 23 | 24 | #include 25 | #include 26 | #include "gpafileop.h" 27 | 28 | /* GObject stuff */ 29 | #define GPA_FILE_VERIFY_OPERATION_TYPE (gpa_file_verify_operation_get_type ()) 30 | #define GPA_FILE_VERIFY_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_FILE_VERIFY_OPERATION_TYPE, GpaFileVerifyOperation)) 31 | #define GPA_FILE_VERIFY_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_FILE_VERIFY_OPERATION_TYPE, GpaFileVerifyOperationClass)) 32 | #define GPA_IS_FILE_VERIFY_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_FILE_VERIFY_OPERATION_TYPE)) 33 | #define GPA_IS_FILE_VERIFY_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_FILE_VERIFY_OPERATION_TYPE)) 34 | #define GPA_FILE_VERIFY_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_FILE_VERIFY_OPERATION_TYPE, GpaFileVerifyOperationClass)) 35 | 36 | typedef struct _GpaFileVerifyOperation GpaFileVerifyOperation; 37 | typedef struct _GpaFileVerifyOperationClass GpaFileVerifyOperationClass; 38 | 39 | struct _GpaFileVerifyOperation { 40 | GpaFileOperation parent; 41 | 42 | int sig_fd, signed_text_fd; 43 | gpgme_data_t sig, signed_text, plain; 44 | gchar *signed_file, *signature_file; 45 | GtkWidget *dialog; 46 | }; 47 | 48 | struct _GpaFileVerifyOperationClass { 49 | GpaFileOperationClass parent_class; 50 | }; 51 | 52 | GType gpa_file_verify_operation_get_type (void) G_GNUC_CONST; 53 | 54 | /* API */ 55 | 56 | /* Creates a new verifyion operation. 57 | */ 58 | GpaFileVerifyOperation* 59 | gpa_file_verify_operation_new (GtkWidget *window, 60 | GList *files); 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /src/gpastreamverifyop.h: -------------------------------------------------------------------------------- 1 | /* gpastreamverifyop.h - The GpaStreamVerifyOperation object. 2 | Copyright (C) 2008 g10 Code GmbH 3 | 4 | This file is part of GPA 5 | 6 | GPA is free software; you can redistribute it and/or modify it 7 | under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | GPA is distributed in the hope that it will be useful, but WITHOUT 12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, see . */ 18 | 19 | #ifndef GPA_STREAM_VERIFY_OP_H 20 | #define GPA_STREAM_VERIFY_OP_H 21 | 22 | #include 23 | #include 24 | 25 | #include "gpastreamop.h" 26 | 27 | /* GObject stuff. */ 28 | #define GPA_STREAM_VERIFY_OPERATION_TYPE \ 29 | (gpa_stream_verify_operation_get_type ()) 30 | 31 | #define GPA_STREAM_VERIFY_OPERATION(obj) \ 32 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_STREAM_VERIFY_OPERATION_TYPE, \ 33 | GpaStreamVerifyOperation)) 34 | 35 | #define GPA_STREAM_VERIFY_OPERATION_CLASS(klass) \ 36 | (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_STREAM_VERIFY_OPERATION_TYPE, \ 37 | GpaStreamVerifyOperationClass)) 38 | 39 | #define GPA_IS_STREAM_VERIFY_OPERATION(obj) \ 40 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_STREAM_VERIFY_OPERATION_TYPE)) 41 | 42 | #define GPA_IS_STREAM_VERIFY_OPERATION_CLASS(klass) \ 43 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_STREAM_VERIFY_OPERATION_TYPE)) 44 | 45 | #define GPA_STREAM_VERIFY_OPERATION_GET_CLASS(obj) \ 46 | (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_STREAM_VERIFY_OPERATION_TYPE, \ 47 | GpaStreamVerifyOperationClass)) 48 | 49 | typedef struct _GpaStreamVerifyOperation GpaStreamVerifyOperation; 50 | typedef struct _GpaStreamVerifyOperationClass GpaStreamVerifyOperationClass; 51 | 52 | GType gpa_stream_verify_operation_get_type (void) G_GNUC_CONST; 53 | 54 | 55 | /* Public API. */ 56 | 57 | /* Creates a new verify operation. */ 58 | GpaStreamVerifyOperation * 59 | gpa_stream_verify_operation_new (GtkWidget *window, 60 | gpgme_data_t input_stream, 61 | gpgme_data_t message_stream, 62 | gpgme_data_t output_stream, 63 | gboolean silent, 64 | gpgme_protocol_t protocol, 65 | const char *title); 66 | 67 | #endif /* GPA_STREAM_VERIFY_OP_H */ 68 | -------------------------------------------------------------------------------- /src/cm-dinsig.h: -------------------------------------------------------------------------------- 1 | /* cm-dinsig.h - Widget to show information about a DINSIG card. 2 | * Copyright (C) 2009 g10 Code GmbH 3 | * 4 | * This file is part of GPA. 5 | * 6 | * GPA is free software; you can redistribute and/or modify this part 7 | * of GPA under the terms of either 8 | * 9 | * - the GNU Lesser General Public License as published by the Free 10 | * Software Foundation; either version 3 of the License, or (at 11 | * your option) any later version. 12 | * 13 | * or 14 | * 15 | * - the GNU General Public License as published by the Free 16 | * Software Foundation; either version 2 of the License, or (at 17 | * your option) any later version. 18 | * 19 | * or both in parallel, as here. 20 | * 21 | * GPA is free software; you can redistribute it and/or modify it 22 | * under the terms of the GNU General Public License as published by 23 | * the Free Software Foundation; either version 3 of the License, or 24 | * (at your option) any later version. 25 | * 26 | * GPA is distributed in the hope that it will be useful, but WITHOUT 27 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 28 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 29 | * License for more details. 30 | * 31 | * You should have received a copy of the GNU General Public License 32 | * along with this program; if not, see . 33 | */ 34 | 35 | #ifndef CM_DINSIG_H 36 | #define CM_DINSIG_H 37 | 38 | #include 39 | 40 | /* Declare the Object. */ 41 | typedef struct _GpaCMDinsig GpaCMDinsig; 42 | typedef struct _GpaCMDinsigClass GpaCMDinsigClass; 43 | 44 | GType gpa_cm_dinsig_get_type (void) G_GNUC_CONST; 45 | 46 | #define GPA_CM_DINSIG_TYPE (gpa_cm_dinsig_get_type ()) 47 | 48 | #define GPA_CM_DINSIG(obj) \ 49 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_CM_DINSIG_TYPE, GpaCMDinsig)) 50 | 51 | #define GPA_CM_DINSIG_CLASS(klass) \ 52 | (G_TYPE_CHECK_CLASS_CAST ((klass), \ 53 | GPA_CM_DINSIG_TYPE, GpaCMDinsigClass)) 54 | 55 | #define GPA_IS_CM_DINSIG(obj) \ 56 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_CM_DINSIG_TYPE)) 57 | 58 | #define GPA_IS_CM_DINSIG_CLASS(klass) \ 59 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_CM_DINSIG_TYPE)) 60 | 61 | #define GPA_CM_DINSIG_GET_CLASS(obj) \ 62 | (G_TYPE_INSTANCE_GET_CLASS ((obj), \ 63 | GPA_CM_DINSIG_TYPE, GpaCMDinsigClass)) 64 | 65 | 66 | /* The class specific API. */ 67 | GtkWidget *gpa_cm_dinsig_new (void); 68 | void gpa_cm_dinsig_reload (GtkWidget *widget, gpgme_ctx_t gpgagent); 69 | 70 | 71 | 72 | #endif /*CM_DINSIG_H*/ 73 | -------------------------------------------------------------------------------- /src/gpaimportclipop.h: -------------------------------------------------------------------------------- 1 | /* gpaimportclipop.h - The GpaImportClipboardOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_IMPORT_CLIPBOARD_OP_H 22 | #define GPA_IMPORT_CLIPBOARD_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpaimportop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_IMPORT_CLIPBOARD_OPERATION_TYPE (gpa_import_clipboard_operation_get_type ()) 31 | #define GPA_IMPORT_CLIPBOARD_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_IMPORT_CLIPBOARD_OPERATION_TYPE, GpaImportClipboardOperation)) 32 | #define GPA_IMPORT_CLIPBOARD_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_IMPORT_CLIPBOARD_OPERATION_TYPE, GpaImportClipboardOperationClass)) 33 | #define GPA_IS_IMPORT_CLIPBOARD_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_IMPORT_CLIPBOARD_OPERATION_TYPE)) 34 | #define GPA_IS_IMPORT_CLIPBOARD_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_IMPORT_CLIPBOARD_OPERATION_TYPE)) 35 | #define GPA_IMPORT_CLIPBOARD_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_IMPORT_CLIPBOARD_OPERATION_TYPE, GpaImportClipboardOperationClass)) 36 | 37 | typedef struct _GpaImportClipboardOperation GpaImportClipboardOperation; 38 | typedef struct _GpaImportClipboardOperationClass GpaImportClipboardOperationClass; 39 | 40 | struct _GpaImportClipboardOperation { 41 | GpaImportOperation parent; 42 | 43 | char *clipboard; 44 | int fd; 45 | }; 46 | 47 | struct _GpaImportClipboardOperationClass { 48 | GpaImportOperationClass parent_class; 49 | 50 | }; 51 | 52 | GType gpa_import_clipboard_operation_get_type (void) G_GNUC_CONST; 53 | 54 | /* API */ 55 | 56 | /* Creates a new import from clipboard operation. 57 | */ 58 | GpaImportClipboardOperation* 59 | gpa_import_clipboard_operation_new (GtkWidget *window); 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /src/gpakeyexpireop.h: -------------------------------------------------------------------------------- 1 | /* gpakeyexpireop.h - The GpaKeyExpireOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_KEY_EXPIRE_OP_H 22 | #define GPA_KEY_EXPIRE_OP_H 23 | 24 | #include 25 | #include 26 | #include "gpa.h" 27 | #include "gpakeyop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_KEY_EXPIRE_OPERATION_TYPE (gpa_key_expire_operation_get_type ()) 31 | #define GPA_KEY_EXPIRE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_KEY_EXPIRE_OPERATION_TYPE, GpaKeyExpireOperation)) 32 | #define GPA_KEY_EXPIRE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_KEY_EXPIRE_OPERATION_TYPE, GpaKeyExpireOperationClass)) 33 | #define GPA_IS_KEY_EXPIRE_ENCRYPT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_KEY_EXPIRE_OPERATION_TYPE)) 34 | #define GPA_IS_KEY_EXPIRE_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_KEY_EXPIRE_OPERATION_TYPE)) 35 | #define GPA_KEY_EXPIRE_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_KEY_EXPIRE_OPERATION_TYPE, GpaKeyExpireOperationClass)) 36 | 37 | typedef struct _GpaKeyExpireOperation GpaKeyExpireOperation; 38 | typedef struct _GpaKeyExpireOperationClass GpaKeyExpireOperationClass; 39 | 40 | struct _GpaKeyExpireOperation { 41 | GpaKeyOperation parent; 42 | 43 | int modified_keys; 44 | GDate *date; 45 | }; 46 | 47 | struct _GpaKeyExpireOperationClass { 48 | GpaKeyOperationClass parent_class; 49 | 50 | /* Signals the new expiration date for a key */ 51 | void (*new_expiration) (GpaKeyExpireOperation *op, gpgme_key_t key, 52 | GDate *date); 53 | }; 54 | 55 | GType gpa_key_expire_operation_get_type (void) G_GNUC_CONST; 56 | 57 | /* API */ 58 | 59 | /* Creates a new key deletion operation. 60 | */ 61 | GpaKeyExpireOperation* 62 | gpa_key_expire_operation_new (GtkWidget *window, GList *keys); 63 | 64 | #endif 65 | -------------------------------------------------------------------------------- /src/gpaimportserverop.h: -------------------------------------------------------------------------------- 1 | /* gpaimportserverop.h - The GpaImportServerOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_IMPORT_SERVER_OP_H 22 | #define GPA_IMPORT_SERVER_OP_H 23 | #ifdef ENABLE_KEYSERVER_SUPPORT 24 | 25 | #include "gpa.h" 26 | #include 27 | #include 28 | #include "gpaimportop.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_IMPORT_SERVER_OPERATION_TYPE (gpa_import_server_operation_get_type ()) 32 | #define GPA_IMPORT_SERVER_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_IMPORT_SERVER_OPERATION_TYPE, GpaImportServerOperation)) 33 | #define GPA_IMPORT_SERVER_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_IMPORT_SERVER_OPERATION_TYPE, GpaImportServerOperationClass)) 34 | #define GPA_IS_IMPORT_SERVER_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_IMPORT_SERVER_OPERATION_TYPE)) 35 | #define GPA_IS_IMPORT_SERVER_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_IMPORT_SERVER_OPERATION_TYPE)) 36 | #define GPA_IMPORT_SERVER_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_IMPORT_SERVER_OPERATION_TYPE, GpaImportServerOperationClass)) 37 | 38 | typedef struct _GpaImportServerOperation GpaImportServerOperation; 39 | typedef struct _GpaImportServerOperationClass GpaImportServerOperationClass; 40 | 41 | struct _GpaImportServerOperation { 42 | GpaImportOperation parent; 43 | 44 | char *key_id; 45 | }; 46 | 47 | struct _GpaImportServerOperationClass { 48 | GpaImportOperationClass parent_class; 49 | 50 | }; 51 | 52 | GType gpa_import_server_operation_get_type (void) G_GNUC_CONST; 53 | 54 | /* API */ 55 | 56 | /* Creates a new import from server operation. 57 | */ 58 | GpaImportServerOperation* 59 | gpa_import_server_operation_new (GtkWidget *window); 60 | 61 | #endif /*ENABLE_KEYSERVER_SUPPORT*/ 62 | #endif /*GPA_IMPORT_SERVER_OP_H*/ 63 | -------------------------------------------------------------------------------- /src/gpaexportserverop.h: -------------------------------------------------------------------------------- 1 | /* gpaexportserverop.h - The GpaExportServerOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_EXPORT_SERVER_OP_H 22 | #define GPA_EXPORT_SERVER_OP_H 23 | #ifdef ENABLE_KEYSERVER_SUPPORT 24 | 25 | #include "gpa.h" 26 | #include 27 | #include 28 | #include "gpaexportop.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_EXPORT_SERVER_OPERATION_TYPE (gpa_export_server_operation_get_type ()) 32 | #define GPA_EXPORT_SERVER_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_EXPORT_SERVER_OPERATION_TYPE, GpaExportServerOperation)) 33 | #define GPA_EXPORT_SERVER_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_EXPORT_SERVER_OPERATION_TYPE, GpaExportServerOperationClass)) 34 | #define GPA_IS_EXPORT_SERVER_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_EXPORT_SERVER_OPERATION_TYPE)) 35 | #define GPA_IS_EXPORT_SERVER_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_EXPORT_SERVER_OPERATION_TYPE)) 36 | #define GPA_EXPORT_SERVER_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_EXPORT_SERVER_OPERATION_TYPE, GpaExportServerOperationClass)) 37 | 38 | typedef struct _GpaExportServerOperation GpaExportServerOperation; 39 | typedef struct _GpaExportServerOperationClass GpaExportServerOperationClass; 40 | 41 | struct _GpaExportServerOperation { 42 | GpaExportOperation parent; 43 | 44 | gchar *server; 45 | }; 46 | 47 | struct _GpaExportServerOperationClass { 48 | GpaExportOperationClass parent_class; 49 | 50 | }; 51 | 52 | GType gpa_export_server_operation_get_type (void) G_GNUC_CONST; 53 | 54 | /* API */ 55 | 56 | /* Creates a new export to file operation. 57 | */ 58 | GpaExportServerOperation* 59 | gpa_export_server_operation_new (GtkWidget *window, GList *keys); 60 | 61 | #endif /*ENABLE_KEYSERVER_SUPPORT*/ 62 | #endif /*GPA_EXPORT_SERVER_OP_H*/ 63 | -------------------------------------------------------------------------------- /src/gpaexportclipop.h: -------------------------------------------------------------------------------- 1 | /* gpaexportclipop.h - The GpaExportClipboardOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_EXPORT_CLIP_OP_H 22 | #define GPA_EXPORT_CLIP_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpaexportop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_EXPORT_CLIPBOARD_OPERATION_TYPE (gpa_export_clipboard_operation_get_type ()) 31 | #define GPA_EXPORT_CLIPBOARD_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_EXPORT_CLIPBOARD_OPERATION_TYPE, GpaExportClipboardOperation)) 32 | #define GPA_EXPORT_CLIPBOARD_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_EXPORT_CLIPBOARD_OPERATION_TYPE, GpaExportClipboardOperationClass)) 33 | #define GPA_IS_EXPORT_CLIPBOARD_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_EXPORT_CLIPBOARD_OPERATION_TYPE)) 34 | #define GPA_IS_EXPORT_CLIPBOARD_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_EXPORT_CLIPBOARD_OPERATION_TYPE)) 35 | #define GPA_EXPORT_CLIPBOARD_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_EXPORT_CLIPBOARD_OPERATION_TYPE, GpaExportClipboardOperationClass)) 36 | 37 | typedef struct _GpaExportClipboardOperation GpaExportClipboardOperation; 38 | typedef struct _GpaExportClipboardOperationClass GpaExportClipboardOperationClass; 39 | 40 | struct _GpaExportClipboardOperation { 41 | GpaExportOperation parent; 42 | 43 | }; 44 | 45 | struct _GpaExportClipboardOperationClass { 46 | GpaExportOperationClass parent_class; 47 | 48 | }; 49 | 50 | GType gpa_export_clipboard_operation_get_type (void) G_GNUC_CONST; 51 | 52 | /* API */ 53 | 54 | /* Creates a new export to file operation. 55 | */ 56 | GpaExportClipboardOperation* 57 | gpa_export_clipboard_operation_new (GtkWidget *window, GList *keys, 58 | gboolean secret); 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /src/gpagenkeycardop.h: -------------------------------------------------------------------------------- 1 | /* gpagenkeycardop.h - The GpaGenKeyCardOperation object. 2 | * Copyright (C) 2003 Miguel Coca. 3 | * Copyright (C) 2008 g10 Code GmbH 4 | * 5 | * This file is part of GPA 6 | * 7 | * GPA is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GPA is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 20 | */ 21 | 22 | #ifndef GPA_GEN_KEY_CARD_OP_H 23 | #define GPA_GEN_KEY_CARD_OP_H 24 | 25 | #include "gpa.h" 26 | #include 27 | #include 28 | #include "gpagenkeyop.h" 29 | #include "gpaprogressdlg.h" 30 | 31 | /* GObject stuff */ 32 | #define GPA_GEN_KEY_CARD_OPERATION_TYPE (gpa_gen_key_card_operation_get_type ()) 33 | #define GPA_GEN_KEY_CARD_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_GEN_KEY_CARD_OPERATION_TYPE, GpaGenKeyCardOperation)) 34 | #define GPA_GEN_KEY_CARD_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_GEN_KEY_CARD_OPERATION_TYPE, GpaGenKeyCardOperationClass)) 35 | #define GPA_IS_GEN_KEY_CARD_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_GEN_KEY_CARD_OPERATION_TYPE)) 36 | #define GPA_IS_GEN_KEY_CARD_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_GEN_KEY_CARD_OPERATION_TYPE)) 37 | #define GPA_GEN_KEY_CARD_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_GEN_KEY_CARD_OPERATION_TYPE, GpaGenKeyCardOperationClass)) 38 | 39 | typedef struct _GpaGenKeyCardOperation GpaGenKeyCardOperation; 40 | typedef struct _GpaGenKeyCardOperationClass GpaGenKeyCardOperationClass; 41 | 42 | struct _GpaGenKeyCardOperation 43 | { 44 | GpaGenKeyOperation parent; 45 | 46 | GtkWidget *progress_dialog; 47 | char *key_attributes; 48 | gpa_keygen_para_t *parms; 49 | }; 50 | 51 | struct _GpaGenKeyCardOperationClass { 52 | GpaGenKeyOperationClass parent_class; 53 | 54 | }; 55 | 56 | GType gpa_gen_key_card_operation_get_type (void) G_GNUC_CONST; 57 | 58 | /* API */ 59 | 60 | GpaGenKeyCardOperation *gpa_gen_key_card_operation_new (GtkWidget *window, 61 | const char *keyattr); 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /src/gpaoperation.h: -------------------------------------------------------------------------------- 1 | /* gpaop.h - The GpaOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_OPERATION_H 22 | #define GPA_OPERATION_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include 28 | #include "gpacontext.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_OPERATION_TYPE (gpa_operation_get_type ()) 32 | #define GPA_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_OPERATION_TYPE, GpaOperation)) 33 | #define GPA_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_OPERATION_TYPE, GpaOperationClass)) 34 | #define GPA_IS_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_OPERATION_TYPE)) 35 | #define GPA_IS_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_OPERATION_TYPE)) 36 | #define GPA_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_OPERATION_TYPE, GpaOperationClass)) 37 | 38 | typedef struct _GpaOperation GpaOperation; 39 | typedef struct _GpaOperationClass GpaOperationClass; 40 | 41 | struct _GpaOperation { 42 | GObject parent; 43 | 44 | GtkWidget *window; 45 | GpaContext *context; 46 | char *client_title; 47 | }; 48 | 49 | struct _GpaOperationClass { 50 | GObjectClass parent_class; 51 | 52 | /* Signal handlers */ 53 | void (*completed) (GpaOperation *operation, gpg_error_t err); 54 | void (*status) (GpaOperation *operation, gchar *status); 55 | }; 56 | 57 | GType gpa_operation_get_type (void) G_GNUC_CONST; 58 | 59 | /*** API ***/ 60 | 61 | /* Whether the operation is currently busy (i.e. gpg is running). */ 62 | gboolean gpa_operation_busy (GpaOperation *op); 63 | 64 | 65 | /* If running in server mode, write a status line names STATUSNAME 66 | plus space delimited arguments. */ 67 | gpg_error_t gpa_operation_write_status (GpaOperation *op, 68 | const char *statusname, ...); 69 | 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /src/gpastreamdecryptop.h: -------------------------------------------------------------------------------- 1 | /* gpastreamdecryptop.h - The GpaStreamDecryptOperation object. 2 | Copyright (C) 2008 g10 Code GmbH 3 | 4 | This file is part of GPA 5 | 6 | GPA is free software; you can redistribute it and/or modify it 7 | under the terms of the GNU General Public License as published by 8 | the Free Software Foundation; either version 3 of the License, or 9 | (at your option) any later version. 10 | 11 | GPA is distributed in the hope that it will be useful, but WITHOUT 12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 14 | License for more details. 15 | 16 | You should have received a copy of the GNU General Public License 17 | along with this program; if not, see . */ 18 | 19 | #ifndef GPA_STREAM_DECRYPT_OP_H 20 | #define GPA_STREAM_DECRYPT_OP_H 21 | 22 | #include 23 | #include 24 | 25 | #include "gpastreamop.h" 26 | 27 | /* GObject stuff. */ 28 | #define GPA_STREAM_DECRYPT_OPERATION_TYPE \ 29 | (gpa_stream_decrypt_operation_get_type ()) 30 | 31 | #define GPA_STREAM_DECRYPT_OPERATION(obj) \ 32 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_STREAM_DECRYPT_OPERATION_TYPE, \ 33 | GpaStreamDecryptOperation)) 34 | 35 | #define GPA_STREAM_DECRYPT_OPERATION_CLASS(klass) \ 36 | (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_STREAM_DECRYPT_OPERATION_TYPE, \ 37 | GpaStreamDecryptOperationClass)) 38 | 39 | #define GPA_IS_STREAM_DECRYPT_OPERATION(obj) \ 40 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_STREAM_DECRYPT_OPERATION_TYPE)) 41 | 42 | #define GPA_IS_STREAM_DECRYPT_OPERATION_CLASS(klass) \ 43 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_STREAM_DECRYPT_OPERATION_TYPE)) 44 | 45 | #define GPA_STREAM_DECRYPT_OPERATION_GET_CLASS(obj) \ 46 | (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_STREAM_DECRYPT_OPERATION_TYPE, \ 47 | GpaStreamDecryptOperationClass)) 48 | 49 | typedef struct _GpaStreamDecryptOperation GpaStreamDecryptOperation; 50 | typedef struct _GpaStreamDecryptOperationClass GpaStreamDecryptOperationClass; 51 | 52 | GType gpa_stream_decrypt_operation_get_type (void) G_GNUC_CONST; 53 | 54 | 55 | /* Public API. */ 56 | 57 | /* Creates a new decrypt operation. */ 58 | GpaStreamDecryptOperation * 59 | gpa_stream_decrypt_operation_new (GtkWidget *window, 60 | gpgme_data_t input_stream, 61 | gpgme_data_t output_stream, 62 | gboolean no_verify, 63 | gpgme_protocol_t protocol, 64 | const char *title); 65 | 66 | #endif /* GPA_STREAM_DECRYPT_OP_H */ 67 | -------------------------------------------------------------------------------- /src/gpaprogressdlg.h: -------------------------------------------------------------------------------- 1 | /* gpaprogressdlg.h - The GpaProgressDialog object. 2 | Copyright (C) 2003 Miguel Coca. 3 | Copyright (C) 2008 g10 Code GmbH. 4 | 5 | This file is part of GPA. 6 | 7 | GPA is free software; you can redistribute it and/or modify it 8 | under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 2 of the License, or 10 | (at your option) any later version. 11 | 12 | GPA is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License along 18 | with this program; if not, write to the Free Software Foundation, Inc., 19 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ 20 | 21 | #ifndef GPA_PROGRESS_DIALOG_H 22 | #define GPA_PROGRESS_DIALOG_H 23 | 24 | #include 25 | #include 26 | #include 27 | #include "gpacontext.h" 28 | #include "gpaprogressbar.h" 29 | 30 | /* GObject stuff. */ 31 | #define GPA_PROGRESS_DIALOG_TYPE (gpa_progress_dialog_get_type ()) 32 | #define GPA_PROGRESS_DIALOG(obj) \ 33 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_PROGRESS_DIALOG_TYPE, \ 34 | GpaProgressDialog)) 35 | #define GPA_PROGRESS_DIALOG_CLASS(klass) \ 36 | (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_PROGRESS_DIALOG_TYPE, \ 37 | GpaProgressDialogClass)) 38 | #define GPA_IS_PROGRESS_DIALOG(obj) \ 39 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_PROGRESS_DIALOG_TYPE)) 40 | #define GPA_IS_PROGRESS_DIALOG_CLASS(klass) \ 41 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_PROGRESS_DIALOG_TYPE)) 42 | #define GPA_PROGRESS_DIALOG_GET_CLASS(obj) \ 43 | (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_PROGRESS_DIALOG_TYPE, \ 44 | GpaProgressDialogClass)) 45 | 46 | 47 | typedef struct _GpaProgressDialog GpaProgressDialog; 48 | typedef struct _GpaProgressDialogClass GpaProgressDialogClass; 49 | 50 | 51 | struct _GpaProgressDialog 52 | { 53 | GtkDialog parent; 54 | 55 | GpaContext *context; 56 | GpaProgressBar *pbar; 57 | GtkWidget *label; 58 | guint timer; 59 | }; 60 | 61 | 62 | struct _GpaProgressDialogClass 63 | { 64 | GtkDialogClass parent_class; 65 | }; 66 | 67 | 68 | GType gpa_progress_dialog_get_type (void) G_GNUC_CONST; 69 | 70 | 71 | /* API. */ 72 | 73 | /* Create a new progress dialog for the given context. */ 74 | GtkWidget *gpa_progress_dialog_new (GtkWidget *parent, GpaContext *context); 75 | 76 | /* Set the dialog label. */ 77 | void gpa_progress_dialog_set_label (GpaProgressDialog *dialog, 78 | const gchar *label); 79 | 80 | #endif 81 | -------------------------------------------------------------------------------- /src/verifydlg.h: -------------------------------------------------------------------------------- 1 | /* verifydlg.h - The GpaFileVerifyDialog object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_FILE_VERIFY_DIALOG_H 22 | #define GPA_FILE_VERIFY_DIALOG_H 23 | 24 | #include 25 | #include 26 | #include 27 | #include "gpacontext.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_FILE_VERIFY_DIALOG_TYPE (gpa_file_verify_dialog_get_type ()) 31 | #define GPA_FILE_VERIFY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_FILE_VERIFY_DIALOG_TYPE, GpaFileVerifyDialog)) 32 | #define GPA_FILE_VERIFY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_FILE_VERIFY_DIALOG_TYPE, GpaFileVerifyDialogClass)) 33 | #define GPA_IS_FILE_VERIFY_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_FILE_VERIFY_DIALOG_TYPE)) 34 | #define GPA_IS_FILE_VERIFY_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_FILE_VERIFY_DIALOG_TYPE)) 35 | #define GPA_FILE_VERIFY_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_FILE_VERIFY_DIALOG_TYPE, GpaFileVerifyDialogClass)) 36 | 37 | typedef struct _GpaFileVerifyDialog GpaFileVerifyDialog; 38 | typedef struct _GpaFileVerifyDialogClass GpaFileVerifyDialogClass; 39 | 40 | struct _GpaFileVerifyDialog { 41 | GtkDialog parent; 42 | 43 | GtkWidget *notebook; 44 | /* Context for retrieving signature's keys */ 45 | GpaContext *ctx; 46 | }; 47 | 48 | struct _GpaFileVerifyDialogClass { 49 | GtkDialogClass parent_class; 50 | }; 51 | 52 | GType gpa_file_verify_dialog_get_type (void) G_GNUC_CONST; 53 | 54 | /* API */ 55 | 56 | GtkWidget *gpa_file_verify_dialog_new (GtkWidget *parent); 57 | 58 | void gpa_file_verify_dialog_set_title (GpaFileVerifyDialog *dialog, 59 | const char *title); 60 | 61 | void gpa_file_verify_dialog_add_file (GpaFileVerifyDialog *dialog, 62 | const gchar *filename, 63 | const gchar *signed_file, 64 | const gchar *signature_file, 65 | gpgme_signature_t sigs); 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /src/gpaexportop.h: -------------------------------------------------------------------------------- 1 | /* gpaexportop.h - The GpaExportOperation object. 2 | * Copyright (C) 2003, Miguel Coca. 3 | * 4 | * This file is part of GPA 5 | * 6 | * GPA is free software; you can redistribute it and/or modify 7 | * it under the terms of the GNU General Public License as published by 8 | * the Free Software Foundation; either version 2 of the License, or 9 | * (at your option) any later version. 10 | * 11 | * GPA is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU General Public License 17 | * along with this program; if not, write to the Free Software 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 | */ 20 | 21 | #ifndef GPA_EXPORT_OP_H 22 | #define GPA_EXPORT_OP_H 23 | 24 | #include "gpa.h" 25 | #include 26 | #include 27 | #include "gpaoperation.h" 28 | #include "gpaprogressdlg.h" 29 | 30 | /* GObject stuff */ 31 | #define GPA_EXPORT_OPERATION_TYPE (gpa_export_operation_get_type ()) 32 | #define GPA_EXPORT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_EXPORT_OPERATION_TYPE, GpaExportOperation)) 33 | #define GPA_EXPORT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_EXPORT_OPERATION_TYPE, GpaExportOperationClass)) 34 | #define GPA_IS_EXPORT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_EXPORT_OPERATION_TYPE)) 35 | #define GPA_IS_EXPORT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_EXPORT_OPERATION_TYPE)) 36 | #define GPA_EXPORT_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_EXPORT_OPERATION_TYPE, GpaExportOperationClass)) 37 | 38 | typedef struct _GpaExportOperation GpaExportOperation; 39 | typedef struct _GpaExportOperationClass GpaExportOperationClass; 40 | 41 | struct _GpaExportOperation { 42 | GpaOperation parent; 43 | 44 | GList *keys; 45 | gpgme_data_t dest; 46 | 47 | /*:: private ::*/ 48 | int secret; 49 | }; 50 | 51 | struct _GpaExportOperationClass { 52 | GpaOperationClass parent_class; 53 | 54 | /* Get the gpgme_data_t to which the keys should be exported. 55 | * Returns FALSE if the operation should be aborted. 56 | */ 57 | gboolean (*get_destination) (GpaExportOperation *op, gpgme_data_t *dest, 58 | gboolean *armor); 59 | 60 | /* Do whatever it takes to complete the export once the gpgme_data_t is 61 | * filled. Basically, this sends the data to the server, the clipboard, 62 | * etc. 63 | */ 64 | void (*complete_export) (GpaExportOperation *op); 65 | }; 66 | 67 | GType gpa_export_operation_get_type (void) G_GNUC_CONST; 68 | 69 | #endif 70 | -------------------------------------------------------------------------------- /src/gpaprogressbar.h: -------------------------------------------------------------------------------- 1 | /* gpaprogressbar.h - The GpaProgressBar object. 2 | Copyright (C) 2003 Miguel Coca. 3 | Copyright (C) 2008 g10 Code GmbH. 4 | 5 | This file is part of GPA. 6 | 7 | GPA is free software; you can redistribute it and/or modify it 8 | under the terms of the GNU General Public License as published by 9 | the Free Software Foundation; either version 2 of the License, or 10 | (at your option) any later version. 11 | 12 | GPA is distributed in the hope that it will be useful, but 13 | WITHOUT ANY WARRANTY; without even the implied warranty of 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | GNU General Public License for more details. 16 | 17 | You should have received a copy of the GNU General Public License along 18 | with this program; if not, write to the Free Software Foundation, Inc., 19 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ 20 | 21 | #ifndef GPA_PROGRESS_BAR_H 22 | #define GPA_PROGRESS_BAR_H 23 | 24 | #include 25 | #include 26 | #include 27 | #include "gpacontext.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_PROGRESS_BAR_TYPE (gpa_progress_bar_get_type ()) 31 | #define GPA_PROGRESS_BAR(obj) \ 32 | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_PROGRESS_BAR_TYPE, GpaProgressBar)) 33 | #define GPA_PROGRESS_BAR_CLASS(klass) \ 34 | (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_PROGRESS_BAR_TYPE, GpaProgressBarClass)) 35 | #define GPA_IS_PROGRESS_BAR(obj) \ 36 | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_PROGRESS_BAR_TYPE)) 37 | #define GPA_IS_PROGRESS_BAR_CLASS(klass) \ 38 | (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_PROGRESS_BAR_TYPE)) 39 | #define GPA_PROGRESS_BAR_GET_CLASS(obj) \ 40 | (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_PROGRESS_BAR_TYPE, GpaProgressBarClass)) 41 | 42 | 43 | typedef struct _GpaProgressBar GpaProgressBar; 44 | typedef struct _GpaProgressBarClass GpaProgressBarClass; 45 | 46 | 47 | struct _GpaProgressBar 48 | { 49 | GtkProgressBar parent; 50 | 51 | GpaContext *context; 52 | 53 | /* Private. */ 54 | gulong sig_id_progress; 55 | gulong sig_id_start; 56 | gulong sig_id_done; 57 | }; 58 | 59 | 60 | struct _GpaProgressBarClass 61 | { 62 | GtkProgressBarClass parent_class; 63 | }; 64 | 65 | 66 | GType gpa_progress_bar_get_type (void) G_GNUC_CONST; 67 | 68 | 69 | /* API */ 70 | 71 | /* Create a new progress bar. */ 72 | GtkWidget *gpa_progress_bar_new (void); 73 | 74 | /* Create a new progress bar for the given context. */ 75 | GtkWidget *gpa_progress_bar_new_with_context (GpaContext *context); 76 | 77 | /* Set the context. */ 78 | GpaContext *gpa_progress_bar_get_context (GpaProgressBar *pbar); 79 | 80 | /* Get the context. */ 81 | void gpa_progress_bar_set_context (GpaProgressBar *pbar, GpaContext *context); 82 | 83 | #endif 84 | -------------------------------------------------------------------------------- /src/gpafiledecryptop.h: -------------------------------------------------------------------------------- 1 | /* gpafiledecryptop.h - The GpaFileDecryptOperation object. 2 | * Copyright (C) 2003 Miguel Coca. 3 | * Copyright (C) 2008 g10 Code GmbH. 4 | * 5 | * This file is part of GPA 6 | * 7 | * GPA is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * GPA is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 20 | */ 21 | 22 | #ifndef GPA_FILE_DECRYPT_OP_H 23 | #define GPA_FILE_DECRYPT_OP_H 24 | 25 | #include 26 | #include 27 | #include "gpafileop.h" 28 | 29 | /* GObject stuff */ 30 | #define GPA_FILE_DECRYPT_OPERATION_TYPE (gpa_file_decrypt_operation_get_type ()) 31 | #define GPA_FILE_DECRYPT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GPA_FILE_DECRYPT_OPERATION_TYPE, GpaFileDecryptOperation)) 32 | #define GPA_FILE_DECRYPT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GPA_FILE_DECRYPT_OPERATION_TYPE, GpaFileDecryptOperationClass)) 33 | #define GPA_IS_FILE_DECRYPT_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GPA_FILE_DECRYPT_OPERATION_TYPE)) 34 | #define GPA_IS_FILE_DECRYPT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GPA_FILE_DECRYPT_OPERATION_TYPE)) 35 | #define GPA_FILE_DECRYPT_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GPA_FILE_DECRYPT_OPERATION_TYPE, GpaFileDecryptOperationClass)) 36 | 37 | typedef struct _GpaFileDecryptOperation GpaFileDecryptOperation; 38 | typedef struct _GpaFileDecryptOperationClass GpaFileDecryptOperationClass; 39 | 40 | struct _GpaFileDecryptOperation { 41 | GpaFileOperation parent; 42 | 43 | int cipher_fd, plain_fd; 44 | gpgme_data_t cipher, plain; 45 | 46 | gboolean verify; 47 | gpg_error_t err; 48 | int signed_files; 49 | GtkWidget *dialog; 50 | }; 51 | 52 | struct _GpaFileDecryptOperationClass { 53 | GpaFileOperationClass parent_class; 54 | }; 55 | 56 | GType gpa_file_decrypt_operation_get_type (void) G_GNUC_CONST; 57 | 58 | /* API */ 59 | 60 | /* Creates a new decryption operation. 61 | */ 62 | GpaFileDecryptOperation *gpa_file_decrypt_operation_new (GtkWidget *window, 63 | GList *files); 64 | 65 | GpaFileDecryptOperation *gpa_file_decrypt_verify_operation_new 66 | (GtkWidget *window, GList *files); 67 | 68 | #endif 69 | --------------------------------------------------------------------------------