Top |
Normal allocated memory can be paged to disk at the whim of the operating system. This can be a serious problem for sensitive information like passwords, keys and secrets.
GNOME Keyring holds passwords in non-pageable, or locked memory. This happens both in the daemon and in the library. This is only possible if the OS contains support for it.
These functions allow applications to use to hold passwords and other sensitive information.
#define gnome_keyring_memory_new(type, n_objects)
gnome_keyring_memory_new
is deprecated and should not be used in newly-written code.
Use gcr_secure_memory_alloc()
instead.
Allocate objects in non-pageable gnome-keyring memory.
gpointer
gnome_keyring_memory_alloc (gulong sz
);
gnome_keyring_memory_alloc
is deprecated and should not be used in newly-written code.
Use gcr_secure_memory_alloc()
instead.
Allocate a block of gnome-keyring non-pageable memory.
If non-pageable memory cannot be allocated then normal memory will be returned.
[skip]
The new memory block which should be freed
with gnome_keyring_memory_free()
.
[transfer full]
gpointer
gnome_keyring_memory_try_alloc (gulong sz
);
gnome_keyring_memory_try_alloc
is deprecated and should not be used in newly-written code.
Use gcr_secure_memory_try_alloc()
instead.
Allocate a block of gnome-keyring non-pageable memory.
If non-pageable memory cannot be allocated, then NULL
is returned.
[skip]
The new block, or NULL
if memory cannot be
allocated. The memory block should be freed with gnome_keyring_memory_free()
.
[transfer full]
gpointer gnome_keyring_memory_realloc (gpointer p
,gulong sz
);
gnome_keyring_memory_realloc
is deprecated and should not be used in newly-written code.
Use gcr_secure_memory_realloc()
instead.
Reallocate a block of gnome-keyring non-pageable memory.
Glib memory is also reallocated correctly. If called with a null pointer, then a new block of memory is allocated. If called with a zero size, then the block of memory is freed.
If non-pageable memory cannot be allocated then normal memory will be returned.
[skip]
p |
The pointer to reallocate or |
[allow-none] |
sz |
The new desired size of the memory block, or 0 to free the memory. |
The new block, or NULL
if the block was
freed. The memory block should be freed with gnome_keyring_memory_free()
.
[transfer full]
gpointer gnome_keyring_memory_try_realloc (gpointer p
,gulong sz
);
gnome_keyring_memory_try_realloc
is deprecated and should not be used in newly-written code.
Use gcr_secure_memory_try_realloc()
instead.
Reallocate a block of gnome-keyring non-pageable memory.
Glib memory is also reallocated correctly when passed to this function. If called with a null pointer, then a new block of memory is allocated. If called with a zero size, then the block of memory is freed.
If memory cannot be allocated, NULL
is returned and the original block
of memory remains intact.
[skip]
p |
The pointer to reallocate or |
[allow-none] |
sz |
The new desired size of the memory block. |
The new block, or NULL
if memory cannot be
allocated. The memory block should be freed with gnome_keyring_memory_free()
.
[transfer full]
void
gnome_keyring_memory_free (gpointer p
);
gnome_keyring_memory_free
is deprecated and should not be used in newly-written code.
Use gcr_secure_memory_free()
instead.
Free a block of gnome-keyring non-pageable memory.
Glib memory is also freed correctly when passed to this function. If called with a null pointer then no action is taken.
[skip]
gboolean
gnome_keyring_memory_is_secure (gpointer p
);
gnome_keyring_memory_is_secure
is deprecated and should not be used in newly-written code.
Use gcr_secure_memory_is_secure()
instead.
Check if a pointer is in non-pageable memory allocated by gnome-keyring.
[skip]
gchar *
gnome_keyring_memory_strdup (const gchar *str
);
gnome_keyring_memory_strdup
is deprecated and should not be used in newly-written code.
Use gcr_secure_memory_strdup()
instead.
Copy a string into non-pageable memory. If the input string is NULL
, then
NULL
will be returned.
[skip]