aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-passwords.c
Commit message (Collapse)AuthorAgeFilesLines
* New.Dan Winship2003-01-071-1/+2
| | | | | | | | | * e-config-listener.c (e_config_listener_remove_value): New. * e-passwords.c (e_passwords_get_password): Don't look at the passwords hash until calling e_passwords_init(). svn path=/trunk/; revision=19253
* track changes to api (e_passwords_init is gone, and several functions takeChris Toshok2002-12-101-24/+36
| | | | | | | | | | | | | | | | | | | | | | | | 2002-12-09 Chris Toshok <toshok@ximian.com> * e-passwords.h: track changes to api (e_passwords_init is gone, and several functions take the component name as an arg.) * e-passwords.c (e_passwords_init): make this static, and allow multiple calls. Also, it no longer takes the component name. (e_passwords_shutdown): make this deal with the case where e_passwords_init wasn't called (no hashtable), and it no longer needs to free component_name. (e_passwords_forget_passwords): call e_passwords_init. (e_passwords_clear_component_passwords): take component_name as an arg, and call e_passwords_init. (password_path): take component_name as an arg. (e_passwords_remember_password): same, and call e_passwords_init. (e_passwords_forget_password): same. (e_passwords_get_password): same. (e_passwords_add_password): call e_passwords_init. (e_passwords_ask_password): take component_name as an arg. svn path=/trunk/; revision=19071
* add e-password.h (libeutil_la_SOURCES): add e-password.cChris Toshok2002-11-131-88/+56
| | | | | | | | | | | | 2002-11-12 Chris Toshok <toshok@ximian.com> * Makefile.am (eutilinclude_HEADERS): add e-password.h (libeutil_la_SOURCES): add e-password.c * e-passwords.[ch]: port this to gnome2's gnome-config-private. svn path=/trunk/; revision=18727
* Don't leak the base64 encoded password buffer.Jeffrey Stedfast2002-04-201-11/+14
| | | | | | | | | 2002-04-19 Jeffrey Stedfast <fejj@ximian.com> * e-passwords.c (e_passwords_get_password): Don't leak the base64 encoded password buffer. svn path=/trunk/; revision=16551
* Clear the password in bonobo-conf as well. Fixes ximian 14893.Dan Winship2001-11-201-18/+31
| | | | | | | * e-passwords.c (e_passwords_forget_password): Clear the password in bonobo-conf as well. Fixes ximian 14893. svn path=/trunk/; revision=14754
* Fixing the license text.Ettore Perazzoli2001-10-281-1/+0
| | | | svn path=/trunk/; revision=14212
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | (instead of version 2 or any later version). svn path=/trunk/; revision=14190
* Pass a CORBA_Environment to bonobo_config_get_string so it doesn't g_warnDan Winship2001-10-231-55/+61
| | | | | | | | | | | | | | | * e-passwords.c (e_passwords_get_password): Pass a CORBA_Environment to bonobo_config_get_string so it doesn't g_warn on error. (Since the "error" is most likely just that the password isn't cached.) (e_passwords_remember_password, e_passwords_get_password, e_passwords_add_password): Change "if (foo) { entire function; }" to "if (!foo) return;" * e-html-utils.c (special_chars): Don't allow single quote or backtick in email addresses, or pipes following URLs. svn path=/trunk/; revision=13887
* new parameter to e_passwords_init, and add prototype forChris Toshok2001-10-131-4/+43
| | | | | | | | | | | | | | | | | | | | 2001-10-12 Chris Toshok <toshok@ximian.com> * e-passwords.h: new parameter to e_passwords_init, and add prototype for e_passwords_clear_component_passwords. * e-passwords.c (e_passwords_init): copy off the component name. (e_passwords_shutdown): free/NULL the component name. (e_passwords_clear_component_passwords): new function. remove the subtree rooted at /Passwords/<ComponentName>. (e_passwords_remember_password): use component_name when building up the path. (e_passwords_get_password): same. (e_passwords_add_password): remove/free the currently stored session password for this key if there is one, before adding the new one. svn path=/trunk/; revision=13637
* change prototype for e_passwords_get_password.Chris Toshok2001-10-121-2/+3
| | | | | | | | | | | | 2001-10-11 Chris Toshok <toshok@ximian.com> * e-passwords.h: change prototype for e_passwords_get_password. * e-passwords.c (e_passwords_get_password): remove 'const' from return type - the return type is now allocated and must be freed by the caller. svn path=/trunk/; revision=13608
* open the bonobo config db for our passwords. (e_passwords_shutdown): syncChris Toshok2001-10-121-51/+100
| | | | | | | | | | | | | | | | | | | | 2001-10-11 Chris Toshok <toshok@ximian.com> * e-passwords.c (e_passwords_init): open the bonobo config db for our passwords. (e_passwords_shutdown): sync and unref the bonobo db, and clear out the per session hash. (e_passwords_forget_passwords): remove the bonobo config db /Passwords path, and free up the session hash (but don't destroy it). (e_passwords_remember_password): remove the key/value from the session hash, after inserting it into the bonobo db. (e_passwords_get_password): look up a session password for the uri, and if it's not there, consult the bonobo db. (e_passwords_ask_password): quiet gcc's warnings, and only consult the toggle button state if we actaully created it. svn path=/trunk/; revision=13598
* Make this dup the strings it's passed. (*) Add lots of docs.Dan Winship2001-10-051-6/+50
| | | | | | | | * e-passwords.c (e_passwords_add_password): Make this dup the strings it's passed. (*) Add lots of docs. svn path=/trunk/; revision=13409
* New, copied/renamed from mailer and gnome-libs.Dan Winship2001-10-021-0/+102
| | | | | | | * e-passwords.c (e_passwords_ask_password): New, copied/renamed from mailer and gnome-libs. svn path=/trunk/; revision=13261
* copy/rename the mail specific password stuff here.Chris Toshok2001-09-301-0/+344
2001-09-30 Chris Toshok <toshok@ximian.com> * e-passwords.c: copy/rename the mail specific password stuff here. * e-passwords.h: same. svn path=/trunk/; revision=13252