Commit Graph

24 Commits

Author SHA1 Message Date
0985c6d801 Ask for a Smart Card password with a token name too
Some cards can have two PINs, one 'global' and one 'application'.
NSS provides which token is required, but Evolution didn't show
that information to a user.
2013-05-31 15:47:04 +02:00
6faf671382 e-passwords: Remove unused function parameters. 2012-12-16 17:03:54 -05:00
d09d8de870 Consolidate base utility libraries into libeutil.
Evolution consists of entirely too many small utility libraries, which
increases linking and loading time, places a burden on higher layers of
the application (e.g. modules) which has to remember to link to all the
small in-tree utility libraries, and makes it difficult to generate API
documentation for these utility libraries in one Gtk-Doc module.

Merge the following utility libraries under the umbrella of libeutil,
and enforce a single-include policy on libeutil so we can reorganize
the files as desired without disrupting its pseudo-public API.

   libemail-utils/libemail-utils.la
   libevolution-utils/libevolution-utils.la
   filter/libfilter.la
   widgets/e-timezone-dialog/libetimezonedialog.la
   widgets/menus/libmenus.la
   widgets/misc/libemiscwidgets.la
   widgets/table/libetable.la
   widgets/text/libetext.la

This also merges libedataserverui from the Evolution-Data-Server module,
since Evolution is its only consumer nowadays, and I'd like to make some
improvements to those APIs without concern for backward-compatibility.

And finally, start a Gtk-Doc module for libeutil.  It's going to be a
project just getting all the symbols _listed_ much less _documented_.
But the skeletal structure is in place and I'm off to a good start.
2012-12-12 14:33:43 -05:00
2a39437ee9 Adapt to single-include E-D-S libraries. 2012-06-03 15:14:03 -04:00
23f5773903 Coding style and whitespace cleanup. 2012-02-20 10:04:25 -05:00
e2b6ff7a6c Miscellaneous cleanups from the account-mgmt branch.
Reducing diff noise so I can see important changes easier when comparing
branches.  A few API changes, but nothing that affects functionality.
2011-09-27 09:31:13 -04:00
fcbbdfbd18 Coding style and whitespace cleanup. 2011-09-04 07:34:32 -04:00
99d492b828 Adapt to CamelSession and e-passwords changes. 2011-07-04 10:20:54 -04:00
fa2da5acd6 Fix mismatched quotes. 2010-03-28 18:55:22 -04:00
fad4af8a3d Prefer GLib basic types over C types. 2009-05-28 12:13:23 -04:00
6f5464f34c Remove trailing whitespace, again. 2009-05-28 12:13:22 -04:00
14fa5c8a8c Change License from GPL to LGPL. 2nd batch.
More changes to come.

svn path=/trunk/; revision=36247
2008-09-02 16:25:53 +00:00
abda2bda85 updated novell copyright notices (left others alone)
svn path=/trunk/; revision=35665
2008-06-20 22:26:57 +00:00
8e47917e8c Update FSF address in header comments (#469886). Patch from Tobias
2007-09-02  Matthew Barnes  <mbarnes@redhat.com>

	* Update FSF address in header comments (#469886).
	  Patch from Tobias Mueller.


svn path=/trunk/; revision=34151
2007-09-02 04:19:22 +00:00
cc1f27817b 2007-08-31 mcrha Fix for bug #378759
svn path=/trunk/; revision=34144
2007-08-31 06:09:09 +00:00
cba3097cad ** Fixes bug #419524
2007-03-20  Matthew Barnes  <mbarnes@redhat.com>

	** Fixes bug #419524

	* Include <glib/gi18n.h> instead of <libgnome/gnome-i18n.h>.

	* e-util/e-xml-utils.c (e_xml_get_child_by_name_by_lang_list):
	* mail/em-migrate.c (emm_setup_initial):
	* shell/e-component-registry.c (query_components):
	* shell/e-shell-settings-dialog.c (load_pages):
	* shell/e-shell-window-commands.c (command_quick_reference):
	* tools/killev.c (main):
	Use g_get_language_names() instead of gnome_i18n_get_language_list().

	* e-util/e-util.c: Remove e_gettext().

	* e-util/Makefile.am: Remove e-i18n.h.


svn path=/trunk/; revision=33319
2007-03-20 17:23:58 +00:00
261d697aed ** Fixes #334848
* lib/e-pkcs12.c (prompt_for_password):
        * gui/component.c (smime_pk11_passwd), (smime_pk11_change_passwd):
        Do not pass NULL for the domain parameter of
        e_passwords_ask_password.

svn path=/trunk/; revision=32451
2006-07-31 11:08:17 +00:00
1c0c36fc8f Remove unused code. Use #ifdef instead of #if some places. Add missing
2006-01-29  Kjartan Maraas <kmaraas@gnome.org>

	* gui/cert-trust-dialog.c: (ctd_response):
	* gui/certificate-viewer.c: (fill_in_general):
	* gui/component.c:
	* lib/e-cert-db.c: (initialize_nss), (default_nickname):
	* lib/e-cert-db.h:
	* lib/e-cert.c: (create_tbs_certificate_asn1_struct):
	* lib/e-pkcs12.c: (import_from_file_helper):
	Remove unused code. Use #ifdef instead of #if some places.
	Add missing header.

svn path=/trunk/; revision=31368
2006-01-30 11:50:47 +00:00
e75013c201 Make mailer depend on libedataserverui.
2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* configure.in: Make mailer depend on libedataserverui.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* Makefile.am (eutilinclude_HEADERS)
	(libeutil_la_SOURCES): Remove e-passwords from here, it now
	lives in libedataserverui.

	* e-passwords.[ch]: Removed.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* gui/component/addressbook-view.c:
	* gui/component/addressbook.c: Include
	<libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* common/authentication.c:
	* gui/e-pub-utils.c:
	* gui/alarm-notify/alarm-notify.c:
	* gui/alarm-notify/notify-main.c:
	* gui/dialogs/url-editor-dialog.c:
	Include <libedataserverui/e-passwords.h>.
	* gui/itip-utils.c: Remove e-passwords.h include, it's not
	needed.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* mail-session.c:
	* mail-config.c: Include <libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* gui/component.c:
	* lib/e-cert-db.c:
	* lib/e-pkcs12.c: Include <libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* e-shell-window-commands.c:
	* e-shell.c:
	* main.c: Include <libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* camel-gw-listener.c: Include <libedataserverui/e-passwords.h>.

2005-02-23  Hans Petter Jansson  <hpj@novell.com>

	* send-options.c: Include <libedataserverui/e-passwords.h>.

svn path=/trunk/; revision=28871
2005-02-23 18:57:00 +00:00
37b8c77a3f api change in e_passwords.
2004-08-10  Not Zed  <NotZed@Ximian.com>

        * gui/component.c (smime_pk11_passwd, smime_pk11_change_passwd):
        * lib/e-pkcs12.c (prompt_for_password): api change in e_passwords.

svn path=/trunk/; revision=26883
2004-08-12 06:55:36 +00:00
4abed2292a add BOOL:POINTER,POINTER,POINTER,POINTER for confirm_ca_cert_import.
2004-03-24  Chris Toshok  <toshok@ximian.com>

	* lib/smime-marshal.list: add BOOL:POINTER,POINTER,POINTER,POINTER
	for confirm_ca_cert_import.

	* lib/e-cert-db.c (e_cert_db_class_init): initialize the
	confirm_ca_cert_import signal.
	(confirm_download_ca_cert): emit confirm_ca_cert_import and use
	the returned values.
	(handle_ca_cert_download): fix the ca trust foo.
	(e_cert_db_import_certs): pass the cerdb to
	handle_ca_cert_download since we need to emit something on that
	object.

	* lib/e-cert-db.h (struct _ECertDBClass): add
	confirm_ca_cert_import signal.

	* gui/smime-ui.glade: give names to the check buttons in the ca
	trust dialog.

	* gui/component.c (smime_confirm_ca_cert_import): new function,
	show the trust dialog.
	(smime_component_init): connect to "confirm_ca_cert_import"
	signal.

	* gui/certificate-viewer.c (fill_in_general): fix lots of
	uninitialized variable accesses.
	(certificate_viewer_show): don't show the dialog (or connect to
	the response signal.)  that's the caller's job.

	* gui/certificate-manager.c (view_your): do the showing of the
	certificate_viewer here.
	(view_contact): same.
	(view_ca): same.
	(edit_ca): new function, pop up the ca trust dialog.  we need more
	here though, to fill in the toggle buttons when bringing up the
	dialog, and also to save out the settings when the user clicks ok.
	(initialize_authoritycerts_ui): hook up the edit_ca button.

	* gui/Makefile.am (libevolution_smime_la_SOURCES): add
	ca-trust-dialog.[ch].

	* gui/ca-trust-dialog.[ch]: new file implementing the ca trust
	dialog used for importing/editing ca trust levels.

svn path=/trunk/; revision=25177
2004-03-24 22:27:01 +00:00
9ae0f14245 [ fixes bug #52829 ]
2004-03-19  Chris Toshok  <toshok@ximian.com>

	[ fixes bug #52829 ]

	* lib/smime-marshal.list: add BOOL:POINTER,POINTER for
	pk11_change_passwd.

	* lib/e-cert-db.c (e_cert_db_class_init): initialize the
	pk11_change_passwd signal.
	(e_cert_db_login_to_slot): emit "pk11_change_passwd" with
	old_passwd == NULL to initialize the database.

	* lib/e-cert-db.h: add pk11_change_passwd signal slot.

	* gui/component.c (smime_pk11_change_passwd): implement the
	portion of this that gets called with old_passwd == NULL (the only
	part that needs implementing yet, since we don't have a UI for
	changing the password.)
	(smime_component_init): hook up to the pk11_change_passwd signal
	on ECertDB.

svn path=/trunk/; revision=25131
2004-03-19 17:01:22 +00:00
db7cec5e13 include config.h
2004-02-26  Jeffrey Stedfast  <fejj@ximian.com>

	* gui/component.c: include config.h

svn path=/trunk/; revision=24884
2004-02-26 15:38:46 +00:00
135e1d6968 new function, implement the password dialog for PK11 slot authentication.
2004-01-05  Chris Toshok  <toshok@ximian.com>

	* gui/component.c (smime_pk11_passwd): new function, implement the
	password dialog for PK11 slot authentication.
	(smime_component_init): new function, initialize any gui related
	signals that the backend exposes.

	* gui/certificate-manager.c (import_your): use
	e_cert_db_import_pkcs12_file.
	(delete_your): new function, implement.
	(view_your): same.
	(backup_your): new function, stub out.
	(backup_all_your): same.
	(create_yourcerts_treemodel): new function.
	(initialize_yourcerts_ui): do all the sorting foo, and hook up all
	the signals.
	(ainitialize_contactcerts_ui): same.
	(initialize_authoritycerts_ui): same.
	(view_contact): treemodel -> streemodel.
	(view_ca): same.
	(delete_contact): same, and convert from the sort iter to the
	child iter before we remove.
	(delete_ca): same.
	(import_contact): call gtk_tree_view_expand_all.
	(import_ca): same.
	(add_user_cert): append to the child model, not the sort model.
	(add_contact_cert): same.
	(add_ca_cert): same.
	(unload_certs): implement the E_CERT_USER case, and fix the
	USER/CA stuff to use the sorted treemodels.
	(load_certs): remove spew.
	(populate_ui): expand all the tree views.

	* lib/.cvsignore: ignore the generated marshalling files.

	* lib/Makefile.am: add the marshalling foo.

	* lib/smime-marshal.list (BOOL): new file.

	* lib/e-cert-db.c (pk11_password): new function, emit the
	pk11_passwd signal.
	(initialize_nss): new function, split out all the nss init code
	here, and add all the PKCS12 cipers.
	(install_loadable_roots): new function, split this code out from
	the class_init.
	(e_cert_db_class_init): call initialize_nss() and
	install_loadable_roots().  also register our pk11_passwd signal.
	(e_cert_db_import_pkcs12_file): implement.
	(e_cert_db_login_to_slot): new function, implement.

	* lib/e-cert-db.h (struct _ECertDBClass): add pk11_passwd signal,
	and add prototype for e_cert_db_login_to_slot.

	* lib/e-pkcs12.c (input_to_decoder): remove spew.
	(prompt_for_password): fix this.
	(import_from_file_helper): fix fix fix, and remove spew.
	(write_export_file): nuke, we don't need this.

svn path=/trunk/; revision=24058
2004-01-05 20:49:44 +00:00