Commit 0aa2d304 authored by Jeremy Bicha's avatar Jeremy Bicha

New upstream version 3.12.2

parents 210f6ca4 5787b929
AUTHORS:
Stef Walter <stef@memberwebs.com>
Adam Schreiber <sadam@clemson.edu>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
If you want to hack or commit something to libcryptui, please first send patches to
seahorse-list@gnome.org or submitted on bugzilla.gnome.org if possible.
For a todo list, first check bugzilla, then look at TODO. Bugzilla is also updated
with possible enhancements and any current bugs.
Here is a description of the parts:
o daemon: A daemon which supports the library
o libcryptui: The library itself
DEBUGGING LIBCRYPTUI
There are a couple of configure switches that you can enable which add
debugging helpers etc...
--enable-debug
- Disables optimization
- Debug info
- Enables various checks and logging in the code.
- Makes all Gtk|Glib etc... runtime warnings fatal.
- Makes all compilation warnings fatal.
--enable-fatal-messages
When used with --enable-debug turns on fatal compile and runtime warnings.
INDENTATION STYLE
* No gratituous reformatting of code. If you're rewriting much of a function
or file it's okay to reformat it, but reformatting for the sake of it isn't
a good idea.
static int
function (int x, const char *y)
{
if (func (arg, arg2 + 1, lots, of, very, lengthy, arguments, for
this, function)) {
switch (val) {
case XXX:
break;
case YYY:
break;
default:
break;
}
} else {
y = y * x + 1;
}
return func2 (x, y);
}
* We use tabs for indentation, and spacing to align multi-line statements.
* Break long lines where possible.
* Spaces between functions and arguments, or macros and arguments.
* Spaces before and after most binary operators.
* Spaces after most unary operators (including a comma).
* Brace on same line as block statement.
* Single lined block statements don't need braces unless it makes things
significantly clearer.
* Return value on line before function definition.
* Brace on line after function definition.
* '*' goes with variable not type, when declaring a pointer.
* Function arguments follow the function call on the same line, and if
lengthy are (where possible) wrapped to the column of the first brace.
last updated 2011-07-25
This diff is collapsed.
Stef Walter
E-mail: stefw@gnome.org
Userid: stefw
Adam Schreiber
E-mail: sadam@gnome.org
Userid: sadam
## Process this file with automake to produce Makefile.in
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
SUBDIRS = libegg \
libcryptui \
po \
data \
pixmaps \
daemon \
reference
EXTRA_DIST = \
AUTHORS \
COPYING \
COPYING-DOCS \
COPYING-LIBCRYPTUI \
ChangeLog \
HACKING \
INSTALL \
MAINTAINERS \
NEWS \
README \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
gnome-doc-utils.make
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update
DISTCHECK_CONFIGURE_FLAGS = \
--disable-update-mime-database \
--enable-gtk-doc \
--disable-debug
CHANGELOG_START = \
018d8c2c8eccd35281c595228be44d4630310251
dist-hook:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated automatically. Do not edit.'; echo; \
$(top_srcdir)/missing --run git log $(CHANGELOG_START).. --stat --date=short ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git clone is required to generate a ChangeLog >&2; \
fi
distuninstallcheck:
@:
upload-release: $(DIST_ARCHIVES)
scp $(DIST_ARCHIVES) master.gnome.org:
ssh master.gnome.org ftpadmin install $(DIST_ARCHIVES)
NULL =
V_SED = $(V_SED_$(V))
V_SED_ = $(V_SED_$(AM_DEFAULT_VERBOSITY))
V_SED_0 = @echo " SED " $@;
SED_SUBST = sed \
-e 's,[@]datadir[@],$(datadir),g' \
-e 's,[@]libexecdir[@],$(libexecdir),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]includedir[@],$(includedir),g' \
-e 's,[@]datarootdir[@],$(datarootdir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]exec_prefix[@],$(exec_prefix),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g' \
$(NULL)
.desktop.in.in.desktop.in:
$(V_SED) $(SED_SUBST) $< > $@
@INTLTOOL_DESKTOP_RULE@
.service.in.service:
$(V_SED) $(SED_SUBST) $< > $@
SUFFIXES = .desktop.in .desktop.in.in .service .service.in
\ No newline at end of file
This diff is collapsed.
libcryptui 3.12.2:
* Updated translations
* Build fix on FreeBSD [#727196]
libcryptui 3.10.1:
* Updated translations
libcryptui 3.10.0:
* Updated translations
* Build fix
libcryptui 3.9.90:
* Add symmetric encryption as a choice in "choose recipients" dialog [#325803]
* Add support for symmetric encryption [#699161]
* Add cryptui_need_to_get_keys_or_symmetric() [#325803]
* Avoid repeating the self encryption key in cryptui_key_chooser_ge [#701987]
* Fix warning on startup about missing seahorse-daemon.desktop file
* Set the source on UID objects
* Build fixes
* Updated translations
libcryptui 3.8.0:
(no changes from previous release)
libcryptui 3.7.5:
* Updated translations
libcryptui 3.6.0:
(no changes from previous release)
libcryptui 3.5.92:
* Updated translations
libcryptui 3.5.4:
* Make the default key chooser window size bigger
* Bump dependency versions, and fix deprecetions
* Documentation fixes
libcryptui 3.4.1:
* Build fixes
libcryptui 3.4.0:
(no changes from previous release)
libcryptui 3.3.91:
* Add dependency on libSM and libICE, needed for XSMP client
libcryptui 3.3.5:
* Updated translations
libcryptui 3.2.2:
* Fix GSettings conversion
libcryptui 3.2.0:
* Initial stable release
libcryptui 3.1.91:
* Port to GSettings instead of GConf
* Build fixes
libcryptui 3.1.4:
* Initial release of libcryptui as a separate module
Libcryptui: Interface components for OpenPGP
libcryptui is a library used for prompting for PGP keys. It's likely that this
library will become deprecated in the near future.
dnl AS_AC_EXPAND(VAR, CONFIGURE_VAR)
dnl
dnl example
dnl AS_AC_EXPAND(SYSCONFDIR, $sysconfdir)
dnl will set SYSCONFDIR to /usr/local/etc if prefix=/usr/local
AC_DEFUN([AS_AC_EXPAND],
[
EXP_VAR=[$1]
FROM_VAR=[$2]
dnl first expand prefix and exec_prefix if necessary
prefix_save=$prefix
exec_prefix_save=$exec_prefix
dnl if no prefix given, then use /usr/local, the default prefix
if test "x$prefix" = "xNONE"; then
prefix=$ac_default_prefix
fi
dnl if no exec_prefix given, then use prefix
if test "x$exec_prefix" = "xNONE"; then
exec_prefix=$prefix
fi
full_var="$FROM_VAR"
dnl loop until it doesn't change anymore
while true; do
new_full_var="`eval echo $full_var`"
if test "x$new_full_var"="x$full_var"; then break; fi
full_var=$new_full_var
done
dnl clean up
full_var=$new_full_var
AC_SUBST([$1], "$full_var")
dnl restore prefix and exec_prefix
prefix=$prefix_save
exec_prefix=$exec_prefix_save
])
This diff is collapsed.
This diff is collapsed.
/* config.h.in. Generated from configure.ac by autoheader. */
/* always defined to indicate that i18n is enabled */
#undef ENABLE_NLS
/* Fatal runtime messages */
#undef FATAL_MESSAGES
/* Name of the gettext domain. */
#undef GETTEXT_PACKAGE
/* Path to gpg executable. */
#undef GNUPG
/* GPG Major Version */
#undef GPG_MAJOR
/* GPG Micro Version */
#undef GPG_MICRO
/* GPG Minor Version */
#undef GPG_MINOR
/* Define to 1 if you have the `bind_textdomain_codeset' function. */
#undef HAVE_BIND_TEXTDOMAIN_CODESET
/* Define to 1 if you have the `dcgettext' function. */
#undef HAVE_DCGETTEXT
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#undef HAVE_FSEEKO
/* Define if the GNU gettext() function is already present or preinstalled. */
#undef HAVE_GETTEXT
/* Define to 1 if you have the <inttypes.h> header file. */
#undef HAVE_INTTYPES_H
/* Define if your <locale.h> file defines LC_MESSAGES. */
#undef HAVE_LC_MESSAGES
/* libnotify available */
#undef HAVE_LIBNOTIFY
/* Define to 1 if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
/* Define to 1 if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define to 1 if you have the <stdint.h> header file. */
#undef HAVE_STDINT_H
/* Define to 1 if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define to 1 if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define to 1 if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define to 1 if you have the `strsep' function. */
#undef HAVE_STRSEP
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define to the sub-directory in which libtool stores uninstalled libraries.
*/
#undef LT_OBJDIR
/* Name of package */
#undef PACKAGE
/* Define to the address where bug reports for this package should be sent. */
#undef PACKAGE_BUGREPORT
/* Define to the full name of this package. */
#undef PACKAGE_NAME
/* Define to the full name and version of this package. */
#undef PACKAGE_STRING
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
/* Define to the home page for this package. */
#undef PACKAGE_URL
/* Define to the version of this package. */
#undef PACKAGE_VERSION
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Version number of package */
#undef VERSION
/* Enable large inode numbers on Mac OS X 10.5. */
#ifndef _DARWIN_USE_64_BIT_INODE
# define _DARWIN_USE_64_BIT_INODE 1
#endif
/* In debug mode */
#undef _DEBUG
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
#undef _LARGEFILE_SOURCE
/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES
/* Define to `long int' if <sys/types.h> does not define. */
#undef off_t
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
include $(top_srcdir)/Makefile.decl
localedir = $(datadir)/locale
pixmapsdir = $(datadir)/pixmaps/cryptui/
uidir = $(datadir)/cryptui/ui/
INCLUDES = -I$(top_builddir) \
-I$(top_srcdir) \
-I$(top_srcdir)/libcryptui \
-I$(top_srcdir)/libegg \
-I$(top_srcdir)/libseahorse \
$(SEAHORSE_CFLAGS) \
-DDATA_DIR=\""$(datadir)"\" \
-DLOCALEDIR=\""$(localedir)"\" \
-DPIXMAPSDIR=\""$(pixmapsdir)"\" \
-DLIBCRYPTUI_API_SUBJECT_TO_CHANGE \
-DAUTOSTARTDIR=\""$(sysconfdir)/xdg/autostart"\" \
-DSEAHORSE_UIDIR=\""$(uidir)"\"
bin_PROGRAMS = seahorse-daemon
MARSHAL_SRCS = \
seahorse-marshal.c seahorse-marshal.h
BUILT_SOURCES = \
seahorse-service-bindings.h \
seahorse-service-keyset-bindings.h \
seahorse-service-crypto-bindings.h \
$(MARSHAL_SRCS)
seahorse_daemon_SOURCES = \
seahorse-daemon.c seahorse-daemon.h \
seahorse-dbus-server.c \
seahorse-gpgme.c seahorse-gpgme.h \
seahorse-gpgme-data.c seahorse-gpgme-data.h \
seahorse-gpgme-generate.c seahorse-gpgme-generate.h \
seahorse-gpgme-key.c seahorse-gpgme-key.h \
seahorse-gpgme-key-op.c seahorse-gpgme-key-op.h \
seahorse-gpgme-operation.c seahorse-gpgme-operation.h \
seahorse-gpgme-source.c seahorse-gpgme-source.h \
seahorse-gpgme-subkey.c seahorse-gpgme-subkey.h \
seahorse-gpgme-uid.c seahorse-gpgme-uid.h \
seahorse-gpg-op.h seahorse-gpg-op.c \
seahorse-gpg-options.c seahorse-gpg-options.h \
seahorse-object-list.c seahorse-object-list.h \
seahorse-pgp.c seahorse-pgp.h \
seahorse-pgp-key.c seahorse-pgp-key.h \
seahorse-pgp-module.c seahorse-pgp-module.h \
seahorse-pgp-signature.c seahorse-pgp-signature.h \
seahorse-pgp-subkey.c seahorse-pgp-subkey.h \
seahorse-pgp-uid.c seahorse-pgp-uid.h \
seahorse-secure-buffer.c seahorse-secure-buffer.h \
seahorse-service.c seahorse-service.h \
seahorse-service-keyset.c seahorse-service-crypto.c \
seahorse-context.c seahorse-context.h \
seahorse-gtkstock.c seahorse-gtkstock.h \
seahorse-libdialogs.h \
seahorse-notification.c \
seahorse-object.c seahorse-object.h \
seahorse-operation.c seahorse-operation.h \
seahorse-passphrase.c seahorse-passphrase.h \
seahorse-progress.c seahorse-progress.h \
seahorse-secure-memory.c seahorse-secure-memory.h \
seahorse-set.c seahorse-set.h \
seahorse-source.c seahorse-source.h \
seahorse-transfer-operation.c seahorse-transfer-operation.h \
seahorse-types.c seahorse-types.h \
seahorse-unix-signal.c seahorse-unix-signal.h \
seahorse-unknown.c seahorse-unknown.h \
seahorse-unknown-source.c seahorse-unknown-source.h \
seahorse-util.c seahorse-util.h \
seahorse-validity.c seahorse-validity.h \
seahorse-widget.c seahorse-widget.h \
$(BUILT_SOURCES)
seahorse_daemon_LDADD = \
$(top_builddir)/libcryptui/libcryptui.la \
$(top_builddir)/libegg/libeggdatetime.la \
$(top_builddir)/libegg/libeggsmclient.la \
$(SEAHORSE_LIBS)
man_MANS = seahorse-daemon.1
EXTRA_DIST = \
$(man_MANS) \
seahorse-service.xml \
seahorse-service-keyset.xml \
seahorse-service-crypto.xml \
seahorse-service-bindings.h \
seahorse-service-keyset-bindings.h \
seahorse-service-crypto-bindings.h \
org.gnome.seahorse.service.in \
$(ui_DATA) \
seahorse-marshal.list
CLEANFILES = *.bak \
org.gnome.seahorse.service
# DBUS binding files
seahorse-service-bindings.h: seahorse-service.xml
dbus-binding-tool --prefix=seahorse_service --mode=glib-server --output=$@ $<
seahorse-service-keyset-bindings.h: seahorse-service-keyset.xml
dbus-binding-tool --prefix=seahorse_service_keyset --mode=glib-server --output=$@ $<
seahorse-service-crypto-bindings.h: seahorse-service-crypto.xml
dbus-binding-tool --prefix=seahorse_service_crypto --mode=glib-server --output=$@ $<
# Dbus service file
servicedir = $(datadir)/dbus-1/services/
service_in_files = org.gnome.seahorse.service.in
service_DATA = $(service_in_files:.service.in=.service)
seahorse-marshal.h: seahorse-marshal.list $(GLIB_GENMARSHAL)
$(GLIB_GENMARSHAL) $< --header --prefix=seahorse_marshal > $@
seahorse-marshal.c: seahorse-marshal.list $(GLIB_GENMARSHAL)
echo "#include \"seahorse-marshal.h\"" > $@ && \
$(GLIB_GENMARSHAL) $< --body --prefix=seahorse_marshal >> $@
ui_DATA = \
seahorse-progress.xml \
seahorse-notify.xml \
seahorse-pgp-generate.xml
This diff is collapsed.
[D-BUS Service]
Name=org.gnome.seahorse
Exec=@bindir@/seahorse-daemon --no-daemonize
This diff is collapsed.
/*
* Seahorse
*
* Copyright (C) 2003 Jacob Perkins
* Copyright (C) 2004-2005 Stefan Walter
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __SEAHORSE_CONTEXT_H__
#define __SEAHORSE_CONTEXT_H__
#include <gtk/gtk.h>
#include "seahorse-source.h"
#define SEAHORSE_TYPE_CONTEXT (seahorse_context_get_type ())
#define SEAHORSE_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SEAHORSE_TYPE_CONTEXT, SeahorseContext))
#define SEAHORSE_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SEAHORSE_TYPE_CONTEXT, SeahorseContextClass))
#define SEAHORSE_IS_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SEAHORSE_TYPE_CONTEXT))
#define SEAHORSE_IS_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SEAHORSE_TYPE_CONTEXT))
#define SEAHORSE_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SEAHORSE_TYPE_CONTEXT, SeahorseContextClass))
struct _SeahorseKey;
struct _SeahorseObject;
struct _SeahorseObjectPredicate;
typedef struct _SeahorseContext SeahorseContext;
typedef struct _SeahorseContextClass SeahorseContextClass;
typedef struct _SeahorseContextPrivate SeahorseContextPrivate;
/**
* SeahorseContext:
* @parent: The parent #GtkObject
* @is_daemon: a #gboolean indicating whether the context is being used in a
* program that is daemonized
*
* This is where all the action in a Seahorse process comes together.
*
* - Usually there's only one #SeahorseContext per process created by passing
* %SEAHORSE_CONTEXT_APP to seahorse_context_new(), and accessed via
* the %SCTX_APP macro.
* - Retains the list of all valid struct _SeahorseObject objects.
* - Has a collection of #SeahorseSource objects which add objects to the
* #SeahorseContext.
*
* Signals:
* added: A object was added to the context.
* removed: A object was removed from the context.
* changed: A object changed.
* destroy: The context was destroyed.
*/
struct _SeahorseContext {
GObject parent;
/*< public >*/
gboolean is_daemon;
/*< private >*/