aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib/e-pkcs12.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix mismatched quotes.Matthew Barnes2010-03-291-2/+2
|
* Remove dead assignments found by clang.Matthew Barnes2010-01-161-2/+2
|
* Coding style and whitespace cleanup.Matthew Barnes2010-01-041-2/+7
|
* More code cleanup.Matthew Barnes2009-06-021-1/+1
|
* Prefer GLib basic types over C types.Matthew Barnes2009-05-291-23/+23
|
* Fix several types of pedantic compiler warnings.Matthew Barnes2009-05-171-1/+1
|
* License changesSankarasivasubramanian Pasupathilingam2008-10-101-26/+31
| | | | svn path=/trunk/; revision=36583
* esthetic license header cleans, and fix e-pkcs12Michael Meeks2008-09-061-22/+0
| | | | svn path=/trunk/; revision=36264
* Change License from GPL to LGPL. 2nd batch.Sankarasivasubramanian Pasupathilingam2008-09-031-13/+13
| | | | | | More changes to come. svn path=/trunk/; revision=36247
* updated novell copyright notices (left others alone)Jeffrey Stedfast2008-06-211-1/+1
| | | | svn path=/trunk/; revision=35665
* ** Remove trailing whitespace from source code.Matthew Barnes2007-11-151-22/+22
| | | | | | | | | 2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
* 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
* 2007-08-31 mcrha Fix for bug #378759Milan Crha2007-08-311-1/+1
| | | | svn path=/trunk/; revision=34144
* ** 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
* Initialize a pointer to NULL and cast away a warning. bug #332101. FixKjartan Maraas2006-10-011-2/+2
| | | | | | | | | | | 2006-10-01 Kjartan Maraas <kmaraas@gnome.org> * lib/e-asn1-object.c: (build_from_der): Initialize a pointer to NULL and cast away a warning. bug #332101. * lib/e-pkcs12.c: (prompt_for_password), (nickname_collision): Fix some signed/unsigned warnings. bug #332101. svn path=/trunk/; revision=32840
* ** Fixes #334848Veerapuram Varadhan2006-07-311-1/+1
| | | | | | | | | * 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
* Remove unused code. Use #ifdef instead of #if some places. Add missingKjartan Maraas2006-01-301-1/+1
| | | | | | | | | | | | | | | | 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
* lib/e-cert-db.c Use gstdio wrappers. Open file in binary mode.Tor Lillqvist2005-12-181-1/+3
| | | | | | | | | 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
* 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
* ** See bug #64420.Not Zed2004-09-041-1/+2
| | | | | | | | | | | 2004-09-03 Not Zed <NotZed@Ximian.com> ** See bug #64420. * lib/e-pkcs12.c (prompt_for_password): set the outptr after we've actually got a pointer for it allocated. svn path=/trunk/; revision=27139
* api change in e_passwords.Not Zed2004-08-121-2/+2
| | | | | | | | | 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
* Fixed to work for both LE and BE architectures.Jeffrey Stedfast2004-08-031-18/+15
| | | | | | | | | 2004-08-02 Jeffrey Stedfast <fejj@novell.com> * lib/e-pkcs12.c (prompt_for_password): Fixed to work for both LE and BE architectures. svn path=/trunk/; revision=26794
* #include <config.h> (e_pkcs12_export_to_file): Hmm. I gather this needs toJeffrey Stedfast2004-02-121-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* new function, implement the password dialog for PK11 slot authentication.Chris Toshok2004-01-061-84/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* make sure declarations precede logic for older compilers.Larry Ewing2003-11-301-1/+1
| | | | | | | | | | | | 2003-11-30 Larry Ewing <lewing@ximian.com> * lib/e-pkcs12.c (nickname_collision): make sure declarations precede logic for older compilers. * gui/Makefile.am (INCLUDES): don't define GTK_DISABLE_DEPRECATED it breakes on gtk-2.3 with gtk_option_menu_get_history. svn path=/trunk/; revision=23503
* mostly implement a viewer for certificates.Chris Toshok2003-11-261-0/+452
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