aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-passwords.h
blob: 7a2b2aa17fb7722f9d6f4ce2ca143bf69921bd96 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * e-passwords.h
 *
 * Copyright (C) 2001 Ximian, Inc.
 */

/*
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of version 2 of the GNU General Public
 * License as published by the Free Software Foundation.
 * 
 * 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, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * USA.
 */

#ifndef _E_PASSWORD_H_
#define _E_PASSWORD_H_

#include <glib.h>
#include <gtk/gtkwindow.h>

G_BEGIN_DECLS

/* initialization is now implicit when you call any of the functions
   below (except _shutdown.).  e_passwords_shutdown should be called
   at exit time to synch the password on-disk storage, and to free up
   in-memory storage. */
void        e_passwords_shutdown          (void);

void        e_passwords_remember_password (const char *component, const char *key);
void        e_passwords_add_password      (const char *key, const char *passwd);
char       *e_passwords_get_password      (const char *component, const char *key);
void        e_passwords_forget_password   (const char *component, const char *key);
void        e_passwords_forget_passwords  (void);
void        e_passwords_clear_component_passwords (const char *component);

typedef enum {
    E_PASSWORDS_DO_NOT_REMEMBER,
    E_PASSWORDS_REMEMBER_FOR_SESSION,
    E_PASSWORDS_REMEMBER_FOREVER
} EPasswordsRememberType;

char *      e_passwords_ask_password      (const char *title, 
                       const char*component_name, const char *key,
                       const char *prompt, gboolean secret,
                       EPasswordsRememberType remember_type,
                       gboolean *remember,
                       GtkWindow *parent);

G_END_DECLS

#endif /* _E_PASSWORD_H_ */
h=mate-1.16&id=be881c5756d6bf9b58bf2705ae2493d50a0784d9'>- Security update to 4.2.1jadawin2008-06-1710-35/+35 * ruby-statgrab --> ports/devel/ruby-statgrabtdb2008-06-171-0/+1 * Statgrab for Ruby contains a set of Ruby bindings to the libstatgrabtdb2008-06-176-0/+55 * - Fix clamd startup script to support cld containers for virus databasesgarga2008-06-174-5/+7 * Upgrade to 9.05.thierry2008-06-172-5/+4 * qutim --> ports/net-im/qutimstas2008-06-171-0/+1 * - Add net-im/qutim, a Qt-4 based ICQ instant messanger.stas2008-06-175-0/+58 * Take maintainership.wxs2008-06-171-1/+1 * - Update to 2.2.10tdb2008-06-172-5/+4 * Update to 1.5.5.4 [1].wxs2008-06-174-14/+22 * Update idle timeout statment with reality.obrien2008-06-171-0/+9 * twiki-BugzillaLinkPlugin --> ports/www/twiki-BugzillaLinkPluginskv2008-06-171-0/+1 * Add twiki-BugzillaLinkPlugin , link to Bugzilla bugs using shorthandskv2008-06-175-0/+49 * Don't make unused empty directories for no reason.obrien2008-06-161-0/+14 * Update to Vim 7.1 patchlevel 315.obrien2008-06-162-5/+71 * * remove incorrect utf8-patchesskv2008-06-163-98/+2 * twiki-LdapNgPlugin --> ports/www/twiki-LdapNgPluginskv2008-06-161-0/+1 * Add twiki-LdapNgPlugin , query and display data from an LDAP directory.skv2008-06-165-0/+42 * twiki-LdapContrib --> ports/www/twiki-LdapContribskv2008-06-161-0/+1 * Add twiki-LdapContrib , LDAP services for TWiki.skv2008-06-165-0/+57 * - Update to 8.0.9tdb2008-06-163-1260/+194 * Update to 0.93ehaupt2008-06-162-4/+4 * - fix plist when -DNOPORTDOCSitetcu2008-06-162-5/+5 * - respect NOPORTEXAMPLESitetcu2008-06-162-9/+12 * - use DOCSDIR, respect NOPORTEXAMPLESitetcu2008-06-162-8/+8 * - Update to version 5.6.4danfe2008-06-1614-210/+197 * - fix install when -DNOPORTDOCSitetcu2008-06-164-12/+36 * - use DISTVERSION instead of PORTVERSION and DISTNAME (hi Mavvie, you see, I'mitetcu2008-06-163-7/+10 * - update to 1.05leeym2008-06-162-4/+4 * - fix the path of PHP.chinsan2008-06-162-1/+10 * - Update to 0.9.0chinsan2008-06-162-4/+4 * - update to 1.11leeym2008-06-162-5/+4 * [Update] dns/py-dns : update to 2.3.1edwin2008-06-162-7/+5 * ruby-frontbase --> ports/databases/ruby-frontbaseedwin2008-06-161-0/+1 * (New Port) databases/ruby-frontbaseedwin2008-06-167-0/+114 * p5-mysql-genocide --> ports/databases/p5-mysql-genocidechinsan2008-06-161-0/+1 * Add p5-mysql-genocide, mysql-genocide helps you play with big MySQLchinsan2008-06-164-0/+38 * make package would fail when /usr/X11R6 not present (guess)erwin2008-06-161-1/+1 * Take maintainership.lx2008-06-161-1/+1 * Drop maintainership.lioux2008-06-161-1/+1 * Update to 2.61erwin2008-06-162-4/+4 * Update to the latest version of my patchset, bomstrip-8-roam-05:roam2008-06-163-8/+10 * Update to 2.11tdb2008-06-162-4/+4 * Use DISTVERSION instead of PORTVERSION.edwin2008-06-161-2/+1 * - Fix pkg-plist in NOPORTDOCS case.lippe2008-06-162-23/+24 * - Update to 3.42.2gahr2008-06-162-5/+4 * Update to 1.59erwin2008-06-162-4/+4 * - Update from 1.5.0-rc7 to -rc11itetcu2008-06-161-3/+3 * Update from 1.5.0-rc7 to -rc11itetcu2008-06-162-9/+9 * Drop maintainershiperwin2008-06-161-1/+1 * - Update to 1.9.1lwhsu2008-06-163-33/+10 * py-networkx --> ports/math/py-networkxlwhsu2008-06-161-0/+1 * Add py-networkx 0.36, tools for complex network.lwhsu2008-06-167-0/+354 * Unbreak VuXML.org build: Use correct syntax for CVE name in latestsimon2008-06-161-1/+2 * Also mark BROKEN on recent versions of 6.x and 7.x after the MFCerwin2008-06-161-1/+1 * Upgrade to 2.6, with some cleaning.thierry2008-06-165-125/+97 * Drop maintainership.lioux2008-06-1610-10/+10 * o On (OSVERSION >= 600000), depend upon misc/compat5xlioux2008-06-162-2/+10 * Add dependency on xorg modules xinerama xm inputproto and xi to fix buildarved2008-06-161-1/+2 * - Fixing wrong file modes.jadawin2008-06-161-1/+3 * Upgrade to version 1.81.6.obrien2008-06-1610-222/+69 * - Update to 2.1-rc8jadawin2008-06-162-6/+7 * Update to 2.22.1.marcus2008-06-162-5/+4 * Fix port to respect alternate LOCALBASE by overriding BINDIR.tdb2008-06-161-1/+2 * - use PORTDOCS, PORTEXAMPLES, etc. as it shoulditetcu2008-06-162-202/+200 * - Fix pkg-plist in NOPORTDOCS case.stas2008-06-161-1/+2 * - Mark BROKEN outside i386 (needs some libraries relocatable)pav2008-06-161-0/+4 * - don't install libidn-components.png in DOCSDIR if -DNOPORTDOCSitetcu2008-06-151-1/+5 * graphics/hugin:vd2008-06-152-1/+14 * Forced commit to document that this file, conserver.sh.in, was repocopiedcy2008-06-150-0/+0 * Fix PORTDOCS support.olgeni2008-06-151-4/+4 * - update to 1.4.9.1mich2008-06-1510-58/+28 * Add explicit dependency on graphics/png port.gerald2008-06-152-0/+2 * A few typo fixes for ports/audio descriptions.olgeni2008-06-1559-72/+68 * Document xorg -- multiple vulnerabilities.flz2008-06-151-0/+44 * Update x11-servers/xorg-server to 1.4.2 (security update).flz2008-06-155-681/+4 * py-ptrace --> ports/devel/py-ptracelwhsu2008-06-151-0/+1 * Add py-ptrace 0.3, python binding of ptrace.lwhsu2008-06-155-0/+196 * - update to 0.12.2dinoex2008-06-154-10/+8 * - update to 1.14.4dinoex2008-06-153-6/+5