Go to file
panoplie 7387774263 sync-search: unlock keyring before getting secret attributes
In gnome-keyring, the secret items attributes are not visible until the keyring
is unlocked. But in libsecret, the synchronous secret search function unlocks
the keyring after and not before the attributes dbus pull.

So when the keyring is locked and you run secret_service_search_sync(), you get
hashed or empty attributes because the keyring was locked at the time these
attributes were pulled. If you run this function when the keyring is already
unlocked, there is no problem.

This commit moves the unlock routine before the attributes pull to make the
synchronous search function working correctly when the keyring is locked
initially.

Issues #6 gnome-shell#4780
2023-05-24 07:04:14 +00:00
.gitlab-ci ci: Use prebuilt Docker images 2023-01-14 23:52:30 +01:00
bash-completion Add meson option to override of default bashcompdir 2021-03-21 17:51:24 +00:00
build/valgrind Drop autotools-based build 2020-11-15 20:37:48 +01:00
docs Fix example in usage docs 2023-02-03 15:59:53 +00:00
egg TPM2: Fix primary key generation in decrypting 2021-08-12 20:24:40 +05:30
libsecret sync-search: unlock keyring before getting secret attributes 2023-05-24 07:04:14 +00:00
po Add Interlingue translation 2022-12-12 01:32:01 +00:00
subprojects Port documentation to gi-docgen 2022-02-02 12:19:14 +00:00
tool Add TPM2 integration to secret file backend 2021-08-12 21:14:26 +05:30
.dir-locals.el build: Add .dir-locals.el for Emacs 2018-07-20 10:54:30 +02:00
.gitignore Port documentation to gi-docgen 2022-02-02 12:19:14 +00:00
.gitlab-ci.yml ci: Disable introspection when using asan 2023-01-15 00:11:19 +01:00
COPYING Fix up libsecret licensing 2012-08-06 11:25:08 +02:00
COPYING.TESTS Fix up libsecret licensing 2012-08-06 11:25:08 +02:00
libsecret.doap doap: remove stefw as a maintainer 2023-04-28 15:02:59 +05:30
meson_options.txt Port documentation to gi-docgen 2022-02-02 12:19:14 +00:00
meson.build Release 0.20.5 2022-02-21 07:20:13 +01:00
NEWS Release 0.20.5 2022-02-21 07:20:13 +01:00
README.md README: Fix typo on readme 2022-02-07 13:02:11 +01:00

libsecret

A GObject-based library for accessing the Secret Service API of the freedesktop.org project, a cross-desktop effort to access passwords, tokens and other types of secrets. libsecret provides a convenient wrapper for these methods so consumers do not have to call the low-level DBus methods.

The actual Secret Service API spec can be found at https://specifications.freedesktop.org/secret-service/.

Documentation

You can find the nightly documentation at https://gnome.pages.gitlab.gnome.org/libsecret/.

Building

To build and install libsecret, you can use the following commands:

$ meson _build
$ ninja -C _build
$ ninja -C _build install

Contributing

You can browse the code, issues and more at libsecret's GitLab repository.

If you find a bug in libsecret, please file an issue on the issue tracker. Please try to add reproducible steps and the relevant version of libsecret.

If you want to contribute functionality or bug fixes, please open a Merge Request (MR). For more info on how to do this, see GitLab's help pages on MR's.

If libsecret is not translated in your language or you believe that the current translation has errors, you can join one of the various translation teams in GNOME. Translators do not commit directly to Git, but are advised to use our separate translation infrastructure instead. More info can be found at the translation project wiki page.

Releases

The release tarballs use semantic versioning since 0.19.0, which basically means:

  • The major version will be incremented if backward incompatible changes are added
  • The minor version will be incremented if new functionality is added in a backward compatible manner
  • The patch version will be incremented if only backward compatible bug fixes are added

Note that there is no stable/unstable indication in whether the minor version number is even or odd.