aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib/e-cert-db.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove Ctrl + l ( ) character from source filesPaul Menzel2011-09-301-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From ccc980da1fd84ebfca25cf8caf9a5d62333099fc Mon Sep 17 00:00:00 2001 From: Paul Menzel <paulepanter@users.sourceforge.net> Date: Wed, 28 Sep 2011 10:18:18 +0200 Subject: [PATCH] Remove Ctrl + l ( ) character from source files The following commits git show aac3f2c8 git show 1510304c git show 13cabd9e git show 350a7a33 git show 9b7cc54d git show e6972011 git show 1d3a7938 git show 934524b9 git show b2954936 git show a7f677b5 git show 4369c400 git show d509f47a git show a6d5818f git show c3876df7 git show 4583098b git show 2831ada5 git show 4e1bce59 git show 1609f699 git show 4e4c1676 git show d6fade43 among others(?) introduced several occurrences of Ctrl + l ( ). Probably this was caused by the used editor. These control characters can be searched for using the following command [1]. $ git grep ^L [1] http://unstableme.blogspot.com/2009/10/grep-and-print-control-characters-in.html
* Coding style and whitespace cleanup.Matthew Barnes2011-09-041-92/+102
|
* Coding style cleanups.Matthew Barnes2011-05-091-13/+13
|
* Remove NULL checks for GObject methods.Matthew Barnes2011-02-131-2/+2
| | | | | As of GLib 2.28 all GObject virtual methods, including constructed(), are safe to chain up to unconditionally. Remove unnecessary checks.
* Coding style and whitespace cleanup.Matthew Barnes2010-10-041-27/+25
|
* Bug 626066 (again) - work around NSS bug #595861David Woodhouse2010-09-151-7/+21
|
* Bug 626066 - log in to NSS database on demand for changing trustDavid Woodhouse2010-09-141-3/+34
|
* Coding style cleanups.Matthew Barnes2010-09-131-109/+109
|
* Coding style and whitespace cleanup.Matthew Barnes2010-07-121-2/+2
|
* Coding style and whitespace cleanup.Matthew Barnes2010-06-201-1/+0
|
* Bug #619218 - Should select imported certificate when succeededMilan Crha2010-06-121-41/+291
|
* Bug 585301 - Use camel_init() to initialize NSS consistentlyDavid Woodhouse2010-06-111-53/+6
| | | | The logic for working out what database to use should only be in one place.
* Bug 585301 - Use NSS SQLite database, if availableCraig Ringer2010-05-301-11/+34
|
* Fix mismatched quotes.Matthew Barnes2010-03-291-1/+1
|
* Coding style and whitespace cleanup.Matthew Barnes2010-01-311-20/+20
|
* Remove dead assignments found by clang.Matthew Barnes2010-01-161-1/+1
|
* Coding style and whitespace cleanup.Matthew Barnes2010-01-051-62/+68
|
* Bug #603342 - Memory leak fixesMilan Crha2009-12-151-3/+6
|
* More whitespace cleanup.Matthew Barnes2009-07-191-1/+1
|
* Fix excessive whitespace.Matthew Barnes2009-07-131-1/+0
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-291-58/+58
|
* Fix compiler warnings in smime.Matthew Barnes2009-05-261-2/+2
|
* Bug 577929 – Consolidate marshallersMatthew Barnes2009-04-231-4/+3
| | | | | | Consolidate all marshalling specifications to e-util/e-marshal.list. This reduces code duplication and makes it slightly easier to locate unused marshallers.
* ** Remove a bunch of juvenile comments. Source code should lookMatthew Barnes2009-04-121-2/+0
| | | | | | | | | | 2009-04-12 Matthew Barnes <mbarnes@redhat.com> ** Remove a bunch of juvenile comments. Source code should look professional, even if some developers are not. svn path=/trunk/; revision=37514
* License changesSankarasivasubramanian Pasupathilingam2008-10-101-46/+30
| | | | svn path=/trunk/; revision=36583
* updated novell copyright notices (left others alone)Jeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35665
* ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES andMatthew Barnes2008-06-061-3/+2
| | | | | | | | | | 2008-06-06 Matthew Barnes <mbarnes@redhat.com> ** Allow evolution to build with G_DISABLE_SINGLE_INCLUDES and GTK_DISABLE_SINGLE_INCLUDES defined. (#536637) svn path=/trunk/; revision=35606
* ** Fixes bug #513951Matthew Barnes2008-03-111-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-03-11 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #513951 * addressbook/gui/component/addressbook-component.c (ensure_sources): * addressbook/gui/component/addressbook-migrate.c (addressbook_migrate): * calendar/gui/cal-search-bar.c (cal_search_bar_construct): * calendar/gui/migration.c (create_calendar_sources), (create_task_sources), (migrate_calendars), (migrate_tasks), (create_memo_sources): * calendar/gui/e-memos.c (e_memos_setup_view_menus): * calendar/gui/tasks-component.c (ensure_sources): * calendar/gui/gnome-cal.c (gnome_calendar_setup_view_menus): * calendar/gui/calendar-component.c (ensure_sources): * calendar/gui/memos-component.c (ensure_sources): * mail/mail-config.c (gconf_mime_types_changed): Adapt to new meaning of xxx_component_peek_base_directory(). * addressbook/gui/component/addressbook-component.c (addressbook_component_init): * addressbook/gui/component/addressbook-migrate.c (create_groups): * calendar/gui/tasks-component.c (tasks_component_init): * calendar/gui/calendar-component.c (calendar_component_init): * calendar/gui/memos-component.c (memos_component_init): * composer/e-msg-composer.c (autosave_manager_query_load_orphans), (autosave_init_file): * e-util/e-mktemp.c (get_dir): * e-util/e-util.c (get_lock_filename): * mail/mail-component.c: * plugins/face/face.c (org_gnome_composer_face): * smime/lib/e-cert-db.c (initialize_nss): Use e_get_user_data_dir() instead of constructing the full path. * calendar/gui/migration.c (add_gw_esource): * composer/e-msg-composer.c (e_msg-composer_unrealize), (e_msg_composer_set_view_from), (e_msg_composer_set_view_replyto), (e_msg_composer_set_view_to), (e_msg_composer_set_view_postto), (e_msg_composer_set_view_cc), (e_msg_composer_set_view_bcc): * e-util/e-util.c (e_file_update_save_path), (e_file_get_save_path): Emit warnings if saving to GConf fails. * e-util/e-util.c (e_get_user_data_dir): New function returns the base directory for Evolution user data. This should be the /only/ place in the application where this directory is hard-coded. svn path=/trunk/; revision=35175
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-62/+62
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* ** Fixes bug #437579Matthew Barnes2007-10-101-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-10-09 Matthew Barnes <mbarnes@redhat.com> ** Fixes bug #437579 * addressbook/conduit/address-conduit.c: * addressbook/gui/component/addressbook-config.c: * addressbook/gui/contact-editor/e-contact-editor.c: * addressbook/gui/widgets/eab-gui-util.c: * calendar/conduits/calendar/calendar-conduit.c: * calendar/conduits/memo/memo-conduit.c: * calendar/conduits/todo/todo-conduit.c: * calendar/gui/dialogs/alarm-dialog.c: * calendar/gui/dialogs/event-page.c: * calendar/gui/dialogs/memo-page.c: * calendar/gui/dialogs/task-page.c: * calendar/gui/e-day-view-layout.c: * calendar/gui/e-day-view-layout.h: * calendar/gui/print.c: * e-util/e-pilot-map.c: * e-util/e-plugin.c: * e-util/e-profile-event.c: * e-util/e-signature.c: * filter/filter-file.c: * mail/e-searching-tokenizer.c: * mail/em-folder-browser.c: * mail/em-format-html.c: * mail/em-format-view.c: * mail/em-format.c: * mail/em-mailer-prefs.c: * mail/em-mailer-prefs.h: * mail/mail-session.c: * mail/mail-session.h: * mail/mail-vfolder.c: * mail/message-list.c: * plugins/bbdb/bbdb.c: * plugins/bbdb/gaimbuddies.c: * plugins/calendar-http/calendar-http.c: * plugins/exchange-operations/exchange-user-dialog.c: * plugins/face/face.c: * shell/e-shell-window.c: * shell/e-shell.c: * smime/lib/e-cert-db.c: * tools/killev.c: * widgets/misc/e-cursors.c: * widgets/misc/e-spinner.c: * widgets/misc/e-unicode.c: * widgets/table/e-table-field-chooser-item.c: * widgets/table/e-table-header-item.c: * widgets/table/e-table-header-item.h: * widgets/table/e-table-header-utils.c: * widgets/table/e-table.c: * widgets/text/e-text.c: Fix various compiler warnings. Patch from Milan Crha. svn path=/trunk/; revision=34368
* Update FSF address in header comments (#469886). Patch from TobiasMatthew Barnes2007-09-021-2/+2
| | | | | | | | | | 2007-09-02 Matthew Barnes <mbarnes@redhat.com> * Update FSF address in header comments (#469886). Patch from Tobias Mueller. svn path=/trunk/; revision=34151
* ** Fixes bug #419524Matthew Barnes2007-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 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
* On Win32, NSS wants filenames in system codepage, so convert UTF-8Tor Lillqvist2006-06-151-1/+13
| | | | | | | | | 2006-06-15 Tor Lillqvist <tml@novell.com> * lib/e-cert-db.c (initialize_nss): On Win32, NSS wants filenames in system codepage, so convert UTF-8 filename to system codepage. svn path=/trunk/; revision=32157
* On Win32, don't bother to attempt looking in Unix paths like /usr/lib orTor Lillqvist2006-01-311-0/+7
| | | | | | | | | | | 2006-01-30 Tor Lillqvist <tml@novell.com> * lib/e-cert-db.c (install_loadable_roots): On Win32, don't bother to attempt looking in Unix paths like /usr/lib or /opt/mozilla for Mozilla's nssckbi module. If necessary, add code later to look up the installation path of Mozilla or Firefox from the Registry. svn path=/trunk/; revision=31382
* Remove unused code. Use #ifdef instead of #if some places. Add missingKjartan Maraas2006-01-301-6/+5
| | | | | | | | | | | | | | | | 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
* Fix for 325748. Add an search path which can be automatically retrievedSimon Zheng2006-01-111-0/+3
| | | | | | | | | | 2006-01-11 Simon Zheng <simon.zheng@sun.com> Fix for 325748. * lib/e-cert-db.c: (install_loadable_roots): Add an search path which can be automatically retrieved when running configure. svn path=/trunk/; revision=31128
* lib/e-cert-db.c Use gstdio wrappers. Open file in binary mode.Tor Lillqvist2005-12-181-2/+5
| | | | | | | | | 2005-12-18 Tor Lillqvist <tml@novell.com> * lib/e-cert-db.c * lib/e-pkcs12.c: Use gstdio wrappers. Open file in binary mode. svn path=/trunk/; revision=30858
* Add reserved field for an empty structure.Mengjie Yu2005-07-291-0/+1
| | | | | | | | | | | 2005-07-28 Mengjie Yu <meng-jie.yu@sun.com> * lib/e-cert-db.c: Add reserved field for an empty structure. Fixes #311837 svn path=/trunk/; revision=29923
* pull up missing merge from branchJP Rosevear2005-06-071-0/+8
| | | | | | | | | 2005-06-06 JP Rosevear <jpr@novell.com> * lib/e-cert-db.c (install_loadable_roots): pull up missing merge from branch svn path=/trunk/; revision=29462
* Copied Mozilla code to check if the nssckbi root certs module was too oldJeffrey Stedfast2005-04-011-21/+51
| | | | | | | | | | 2005-03-31 Jeffrey Stedfast <fejj@novell.com> * lib/e-cert-db.c (install_loadable_roots): Copied Mozilla code to check if the nssckbi root certs module was too old and if it was, delete/unload it. svn path=/trunk/; revision=29137
* Make mailer depend on libedataserverui.Hans Petter Jansson2005-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [ fixes #61490 ]Chris Toshok2004-07-201-5/+2
| | | | | | | | | | | | | 2004-07-16 Chris Toshok <toshok@ximian.com> [ fixes #61490 ] * lib/e-cert-db.c (e_cert_db_import_pkcs12_file): un-ifdef this, as it's working.. (e_cert_db_export_pkcs12_file): and ifdef this one, since it's the function i meant to ifdef in the first place. svn path=/trunk/; revision=26675
* ** See #59885.Not Zed2004-06-171-2/+5
| | | | | | | | | | | | 2004-06-17 Not Zed <NotZed@Ximian.com> ** See #59885. * lib/e-cert-db.c (e_cert_db_import_pkcs12_file): move the #if notyet stuff inside the function so the symbol is defined, since we call it eslewhere. i dunno if it actually works yet. svn path=/trunk/; revision=26373
* quiet the compiler, and dobey.Chris Toshok2004-06-091-2/+8
| | | | | | | | 2004-06-08 Chris Toshok <toshok@ximian.com> * lib/e-cert-db.[ch]: quiet the compiler, and dobey. svn path=/trunk/; revision=26259
* Don't crash when the user presses 'cancel'. Fixes #58733.James Willcox2004-05-201-0/+3
| | | | | | | | | | 2004-05-19 James Willcox <jwillcox@gnome.org> * lib/e-cert-db.c: (pk11_password): Don't crash when the user presses 'cancel'. Fixes #58733. svn path=/trunk/; revision=26005
* call SetPasswordFunc before calling authenticate - some nss calls canNot Zed2004-05-131-0/+1
| | | | | | | | | | 2004-05-13 Not Zed <NotZed@Ximian.com> * lib/e-cert-db.c (e_cert_db_login_to_slot): call SetPasswordFunc before calling authenticate - some nss calls can overwrite the setting. #52820. svn path=/trunk/; revision=25895
* add BOOL:POINTER,POINTER,POINTER,POINTER for confirm_ca_cert_import.Chris Toshok2004-03-251-24/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* [ fixes bug #52829 ]Chris Toshok2004-03-201-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* #include <config.h> (e_pkcs12_export_to_file): Hmm. I gather this needs toJeffrey Stedfast2004-02-121-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-11 Jeffrey Stedfast <fejj@ximian.com> * lib/e-pkcs12.c: #include <config.h> (e_pkcs12_export_to_file): Hmm. I gather this needs to be implemented. return FALSE here until someone implements this so gcc doesn't complain about control reaching the end of a non-void function. (handle_error): Same. * lib/e-cert-trust.c: And here. * lib/e-cert-db.c: Same. * lib/e-asn1-object.c: And here. * lib/e-cert.c: Here too. * gui/e-cert-selector.c: Same. * gui/certificate-viewer.c: Same. * gui/certificate-manager.c: #include <config.h> svn path=/trunk/; revision=24712
* oops, remove hardcoded test passwd :)Chris Toshok2004-01-061-1/+4
| | | | | | | | | 2004-01-05 Chris Toshok <toshok@ximian.com> * lib/e-cert-db.c (e_cert_db_login_to_slot): oops, remove hardcoded test passwd :) svn path=/trunk/; revision=24061
* new function, implement the password dialog for PK11 slot authentication.Chris Toshok2004-01-061-21/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* grovel around at startup time for mozilla's pkcs11 module so we can getChris Toshok2003-12-041-0/+48
| | | | | | | | | | 2003-12-03 Chris Toshok <toshok@ximian.com> * lib/e-cert-db.c (e_cert_db_class_init): grovel around at startup time for mozilla's pkcs11 module so we can get the same default set of root certs. svn path=/trunk/; revision=23621
* mostly implement a viewer for certificates.Chris Toshok2003-11-261-7/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-26 Chris Toshok <toshok@ximian.com> * gui/certificate-viewer.[ch]: mostly implement a viewer for certificates. * gui/smime-ui.glade: fingerprints-sh1 -> fingerprints-sha1. * gui/certificate-manager.c (import_your): new function, use e-pkcs12 to implement it. (initialize_yourcerts_ui): hook up the import button. (view_contact): new function, bring up the certificate viewer. (initialize_contactcerts_ui): hook up the view button. (view_ca): new function, bring up the certificate viewer. (initialize_authoritycerts_ui): hook up the view button. * gui/Makefile.am (libevolution_smime_la_SOURCES): add certificate-viewer.[ch] * lib/e-cert.c (e_cert_dispose): free all the new cached foo. (e_cert_populate): populate all the new cached foo. (e_cert_get_issuer_cn): new function. (e_cert_get_issuer_org): same. (e_cert_get_issuer_org_unit): same. (e_cert_get_issued_on_time): same. (e_cert_get_issued_on): same. (e_cert_get_expires_on_time): same. (e_cert_get_expires_on): same. (e_cert_get_serial_number): same. (e_cert_get_sha1_fingerprint): same. (e_cert_get_md5_fingerprint): same. * lib/e-cert.h: add prototypes for lots more accessors. * lib/e-cert-db.c (e_cert_db_find_cert_by_key): fix typo. (e_cert_db_find_cert_by_email_address): call CERT_DestroyCertificate to free the cert. (default_nickname): new function. (e_cert_db_import_user_cert): implement. (e_cert_db_import_server_cert): add blurb. * lib/e-pkcs12.[ch]: new files. * lib/Makefile.am (libessmime_la_SOURCES): add e-pkcs12.[ch] svn path=/trunk/; revision=23486
* implement using the e-cert-trust foo. (e_cert_get_email): implement.Chris Toshok2003-11-131-82/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-12 Chris Toshok <toshok@ximian.com> * lib/e-cert.c (e_cert_get_cert_type): implement using the e-cert-trust foo. (e_cert_get_email): implement. * lib/e-cert.h: add UNKNOWN cert type. * gui/smime-ui.glade: fix capitalization of "Import" on the contact certificate page. * gui/certificate-manager.c (import_contact): new function. implement email cert importing. (delete_contact): new function. (unload_certs): implement for E_CERT_CONTACT. (certificate_manager_config_control_new): get the contact cert action buttons from libglade. * lib/e-cert-db.c (handle_ca_cert_download): mostly implement the trust settings correctly. this still needs work pending the CA trust dialog's completion. (e_cert_db_delete_cert): fix the ifdef'ed code. (e_cert_db_import_user_cert): remove the ifdef'ed body of this, since it was copied from the CA code. * lib/Makefile.am (libessmime_la_SOURCES): add e-cert-trust.[ch] * lib/e-cert-trust.[ch]: new files, basically c&p nsNSSCertTrust from mozilla's PSM. svn path=/trunk/; revision=23308
* don't init NSS here. it's done in e_cert_db_peek.Chris Toshok2003-11-121-0/+822
2003-11-11 Chris Toshok <toshok@ximian.com> * tests/import-cert.c (main): don't init NSS here. it's done in e_cert_db_peek. * lib/Makefile.am (libessmime_la_SOURCES): add e-cert-db.[ch] * gui/smime-ui.glade: set the initial sensitivity of the buttons here, and add the beginnings of the CA import dialog (where you assign trust levels to it.) * gui/certificate-manager.c (handle_selection_changed): sensitize/desensitize all the various buttons correctly when the GtkTreeView's selection changes. (yourcerts_selection_changed): new, selection change handler for the Your Certs tab. (initialize_yourcerts_ui): hook up the tree selection, and add a model column for the ECert. (contactcerts_selection_changed): new, selection change handler for the Contact Certs tab. (initialize_contactcerts_ui): hook up the tree selection, and add a model column for the ECert. (import_ca): new function. (delete_ca): new function. (authoritycerts_selection_changed): new, selection change handler for the Authority Certs tab. (create_authoritycerts_treemodel): new function for creating the authority cert tree model. the other tabs will eventually use a separate function for this too, as unload_certs gets fleshed out. (initialize_authoritycerts_ui): hook up the tree selection, and add import/delete buttons. (destroy_key): dtor for the keys in our hashes. (destroy_value): dtor for the values in our hashes. (unload_certs): new function. basically destroy/recreate the model and hash for the particular cert type/tab. (load_certs): use e_cert_get_cert_type. (populate_ui): use unload_certs as well as load_certs. (certificate_manager_config_control_new): call e_cert_db_peek ,which will initialize all of NSS. hook up all the widgets from libglade. * lib/e-cert.h: add prototypes for all the new methods, and add the ECertType enum. * lib/e-cert.c (e_cert_dispose): handle deletion from the DB here. (e_cert_new_from_der): new function. (e_cert_get_internal_cert): new function. (e_cert_get_raw_der): new function. (e_cert_get_issuer_name): new (e_cert_get_subject_name): new (e_cert_mark_for_deletion): new (e_cert_get_cert_type): new. (e_cert_is_ca_cert): nuke. * lib/e-cert-db.[ch]: new, partly implemented, derived from mozilla's nsNSSCertificateDB code. svn path=/trunk/; revision=23292