Commit Graph

26 Commits

Author SHA1 Message Date
Dhanuka Warusadura
9a37dc839a pam: port PAM module from gnome-keyring
These changes port the PAM module from gnome-keyring/pam to libsecret/pam.

Removed `start_daemon` and the dependent code altogether. Because,
gnome-keyring-daemon is launched by systemd.

Replaced calls to `pam_get_item` to retrieve authentication tokens with
`pam_get_authtok`.

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
2023-12-10 22:35:55 +05:30
Dhanuka Warusadura
39a3d14169
Release 0.21.2
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
2023-12-08 15:48:34 +05:30
Daiki Ueno
28486191b2 Support GnuTLS as an alternative crypto backend
This turns the `-Dgcrypt` build time option into a more generic
`-Dcrypto` option, which enables user to choose which cryptographic
library to link with.  It currently supports libgcrypt (`libgcrypt`)
and GnuTLS (`gnutls`); for the latter, GnuTLS 3.8.2 is the minimum
required version.

Signed-off-by: Daiki Ueno <dueno@src.gnome.org>
2023-12-04 16:50:49 +09:00
Niels De Graef
79722e8c67
Release stable version 0.21.1 2023-09-19 23:11:26 +02:00
Niels De Graef
6678c87fed Release 0.21.0 2023-08-10 14:05:27 +02:00
Daiki Ueno
d64530ac70 Release 0.20.5 2022-02-21 07:20:13 +01:00
Dhanuka Warusadura
63907d907e Add TPM2 API and its implementations to egg
These changes define the TPM2 API and add its implementations
to the incubation area (egg/).

Summary of the public API:
`egg_tpm2_initialize`: Start a TPM context.
`egg_tpm2_finalize`: End a TPM context.
`egg_tpm2_generate_master_password`: Generate and returns an
encrypted master password in `GBytes` format. TSS Marshaling,
GVariant serialization is used.
`egg_tpm2_decrypt_master_password`: Decrypts a master password
generated from `egg_tpm2_generate_master_password`. TSS
Unmarshaling, GVariant deserialization is used.

TPM2 API: TSS Enhanced System API (ESAPI)

Proposal: [extend file backend to use TPM2 derived encryption keys](https://gitlab.gnome.org/Teams/Engagement/gsoc-2021/-/issues/13)

Related MRs: [#86](https://gitlab.gnome.org/GNOME/libsecret/-/merge_requests/86)

Related Issues: [#63](https://gitlab.gnome.org/GNOME/libsecret/-/issues/63)
2021-08-04 14:42:55 +05:30
Daiki Ueno
3fe635e64e Release 0.20.4 2020-10-10 18:50:20 +02:00
Niels De Graef
9959be81fd meson: Clean up unused variables 2020-06-01 09:08:04 +02:00
Kai Kang
1804de769c meson: add option introspection
Add an option 'introspection' for meson which could control whether
build GIR files or not.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
2020-05-21 16:04:48 +08:00
Daiki Ueno
fb456a3853 Release 0.20.3 2020-04-14 19:41:39 +02:00
Daiki Ueno
eb4f967e9f Release 0.20.2 2020-03-11 06:53:56 +01:00
Daiki Ueno
e4428dd29f Release 0.20.1 2020-01-27 13:41:01 +01:00
Daiki Ueno
00fae821ea meson: Bump version to 0.20.0
Fixes #37.
2020-01-22 10:59:29 +01:00
Daiki Ueno
f2b7f6d505 secret-tool: Add tests using file backend 2019-10-13 06:21:38 +00:00
Daiki Ueno
300ddc702e meson: Use pkgconfig module instead of substitution 2019-10-12 02:46:06 +02:00
Daiki Ueno
1b1a7d1e48 meson: Simplify libgcrypt detection
Meson has native support for the libgcrypt-config program if pkgconfig
file is not provided.
2019-10-11 14:33:14 +02:00
Xi Ruoyao
c4fb5f033f build: Fix FTBFS using meson without valgrind
Now with meson build system libsecret FTBFS without valgrind installed.
Two issues: (1) egg-testing.c depends on valgrind/valgrind.h unnecessarily;
(2) we forgot to add "build" directory as a header directory for meson.

This commit resolves both of them.
2019-09-20 23:32:14 +08:00
Daiki Ueno
f576dfbe50 Release 0.19.1 2019-09-06 10:49:35 +02:00
Daiki Ueno
be541cf9d4 Release 0.19.0 2019-09-05 09:42:11 +02:00
Daiki Ueno
a4ea97d6e6 build: Simplify pathname handling
This switches to using relative paths as much as possible, and the "/"
shorthand for join_paths.
2019-07-25 19:59:01 +02:00
Daiki Ueno
555407a448 build: Bump meson_version to 0.50
To suppress the warning:

  WARNING: Project targetting '>= 0.48' but tried to use feature
  introduced in '0.50.0': install arg in configure_file
2019-07-24 06:10:13 +02:00
Niels De Graef
b7d593784c Ensure the Meson build also supports private memory
The meson build does not check for `mlock()` and define `HAVE_MLOCK`.

Fixes https://gitlab.gnome.org/GNOME/libsecret/issues/23
2019-05-13 19:41:48 +00:00
Emmanuele Bassi
4621039c26 meson: Check for gcrypt with pkg-config first
Some distributions patch libgcrypt to provide a pkg-config file, and
disable libgcrypt-config. One of these distributions is Yocto, which we
use as the basis for the GNOME Continuous build environment.

We should check if there's a pkg-config file available for gcrypt, and
use it, falling back to libgcrypt-config if the pkg-config file is not
found.
2019-05-11 07:15:34 +00:00
Kouhei Sutou
20329fc3b4 meson: Bump version 2019-05-07 11:28:51 +00:00
Niels De Graef
b19c309096 Add build support for Meson
To build with meson, use the following commands:

```
$ meson build
$ ninja -C build
 # in case you want to install
$ ninja -C build install
```
2019-01-19 21:03:56 +00:00