15 Commits

Author SHA1 Message Date
René Kilczan
ae00f7726c Update secret-value.c
Fix error in documentation

Fixes: https://gitlab.gnome.org/GNOME/libsecret/-/issues/92
2025-01-16 00:05:03 +01:00
Niels De Graef
0f04e5d371 Stop using GSlice
GLib is discussing deprecating/removing it upstream [1] since it has
only limited uses. Next to that, it seems to bork stack traces here when
using ASAN (for which you also have to specify `G_SLICE=always-malloc`
and some other envvars too).

In other words, let's just get rid of using `GSlice` and call the
allocation APIs directly.

[1]: https://gitlab.gnome.org/GNOME/glib/-/issues/1079
2023-01-16 19:17:59 +01:00
Maximiliano Sandoval R
8726110219
docs: All docs should have a header line
This line should have a single sentence.
2022-02-07 13:02:10 +01:00
Maximiliano Sandoval R
e4ea94621b
secret_value_unref_to_password: Annotate out param 2022-02-07 13:02:10 +01:00
Maximiliano
2c3a34cca4 Port documentation to gi-docgen 2022-02-02 12:19:14 +00:00
Niels De Graef
402c9fb7fd Get rid of (allow-none) annotations
The `(allow-none)` annotation was deprecated for `(nullable)` and
`(optional)` to solve some ambiguous uses of the tag.
2021-02-06 16:46:23 +00:00
Daiki Ueno
a5db34dcd5 secret-value: Add secret_value_unref_to_password
This adds the secret_value_unref_to_password function that
unreferences and returns the stored secret in non-pageable memory.
This is supposed to be used with secret_password_lookup_binary*
functions.
2019-07-18 13:54:12 +00:00
Debarshi Ray
b9151faaf0 secret-value: Don't annotate secret_value_unref as (allow-none)
https://bugzilla.gnome.org/show_bug.cgi?id=785034
2017-07-17 19:41:33 +02:00
Stef Walter
dd6fcf87bb Mark most of unstable API as stable
This is with the exception of the 'path' functions.
2013-12-11 10:57:22 +01:00
Stef Walter
cec740fea9 Add secret_value_get_text() function to return NULL terminated secret 2013-06-21 15:11:14 +02:00
Claudio Saavedra
ab239c7f6b secret-value: allow empty strings
Passwords and other secrets are allowed to be empty strings, therefore
the check for length != 0 is wrong.

Add tests for empty SecretValue contents.

https://bugzilla.gnome.org/show_bug.cgi?id=694787
2013-03-04 09:33:26 +02:00
Stef Walter
ddd9bdd2e9 Fix introspection for secret_value_get() to return a uint8
This works around a crash in pygobject.

https://bugzilla.gnome.org/show_bug.cgi?id=694448
2013-02-26 15:55:49 +01:00
Stef Walter
83c8674a03 Update documentation for to have correct headers
* Add add more warnings to unstable API documentation
2012-07-13 13:04:26 +02:00
Stef Walter
994ae44a77 Split the pkg-config files, gir, and vapi into stable/unstable
* C callers need to use libsecret-0 pkg-config file for stable and
   libsecret-unstable for unstable stuff.
 * Vala callers need to '--pkg libsecret-unstable' for unstable
 * GObject Introspection callers need to use the SecretUnstable package
2012-07-13 11:14:34 +02:00
Stef Walter
5cc30b2b68 Rename the library subdirectory to libsecret
* Death by a thousand paper cuts from gir and vapi not liking
   the fact that the secret.h file was not usable uninstalled
   and installed in the same way.
2012-07-13 10:40:25 +02:00