RmPassword

RmPassword — Password function abstracting interaction with password plugins

Stability Level

Stable, unless otherwise indicated

Functions

void rm_password_set ()
gchar * rm_password_get ()
gboolean rm_password_remove ()
void rm_password_register ()
GSList * rm_password_get_plugins ()
gchar * rm_password_encode ()
guchar * rm_password_decode ()

Types and Values

Description

Offers generic password functions which are mapped to active password plugin.

Functions

rm_password_set ()

void
rm_password_set (RmProfile *profile,
                 const gchar *name,
                 const gchar *password);

Set password in manager.

Parameters

profile

a RmProfile

 

name

description of password

 

password

password string

 

rm_password_get ()

gchar *
rm_password_get (RmProfile *profile,
                 const gchar *name);

Get password from manager.

Parameters

profile

a RmProfile

 

name

description of password

 

Returns

password on success, NULL on error


rm_password_remove ()

gboolean
rm_password_remove (RmProfile *profile,
                    const gchar *name);

Remove password from manager.

Parameters

profile

a RmProfile

 

name

description of password

 

Returns

TRUE on success, FALSE on error


rm_password_register ()

void
rm_password_register (RmPasswordManager *manager);

Register password manager plugin.

Parameters

manager

a RmPasswordManager

 

rm_password_get_plugins ()

GSList *
rm_password_get_plugins (void);

Get a list of all password manager plugins

Returns

list of password manager plugins


rm_password_encode ()

gchar *
rm_password_encode (const gchar *in);

Encodes in string and returns result.

Parameters

in

input string

 

Returns

encoded string


rm_password_decode ()

guchar *
rm_password_decode (const gchar *in);

Decodes in string and returns result.

Parameters

in

input string

 

Returns

decoded string

Types and Values

RmPasswordManager

typedef struct {
} RmPasswordManager;

The RmPasswordManager contains only private fileds and should not be directly accessed.