Commit Graph

759 Commits

Author SHA1 Message Date
Daiki Ueno
d5becb2aaa Merge branch 'gcrypt-pkgconfig' into 'master'
meson: Check for gcrypt with pkg-config first

See merge request GNOME/libsecret!20
2019-05-11 07:26:44 +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
Daiki Ueno
6736f9f3e5 Merge branch 'collection-enums-prefix' into 'master'
Use proper prefix for SecretCollection flags

See merge request GNOME/libsecret!19
2019-05-11 07:10:04 +00:00
Emmanuele Bassi
15902b70b2 Use proper prefix for SecretCollection flags
Commit f36379af33 added the enumeration
GType for SecretCollectionFlags and SecretCollectionCreateFlags in the
introspection data, but by doing so it broke existing users of the
introspected API.

Additionally, the enumeration nicknames—which are used to generate the
enumeration value from the type name and the namespace—were wrong
before, and are wrong now. The idiomatic way to name enumeration members
is to use the uppercase, snake case version of the type name, and append
the value at the end:

  SecretCollectionFlags → SECRET_COLLECTION_FLAGS_NONE
  SecretCollectionCreateFlags → SECRET_COLLECTION_CREATE_FLAGS_NONE

If this practice is not followed, enumerations should use the
glib-mkenums trigraph and the `prefix` option; this tells glib-mkenums,
and the introspection parser after that, where to cut off the prefix and
which part of the enumeration value should be considered the nickname.

Thus, with `prefix=SECRET_COLLECTION` we can turn:

  SECRET_COLLECTION_NONE

into:

  Secret.CollectionFlags.NONE

which is the idiomatic form of an enumeration value.
2019-05-11 00:15:04 +01:00
Daiki Ueno
64f63a76fe Merge branch 'meson-bump-version' into 'master'
meson: Bump version

See merge request GNOME/libsecret!18
2019-05-07 11:43:35 +00:00
Kouhei Sutou
20329fc3b4 meson: Bump version 2019-05-07 11:28:51 +00:00
Daiki Ueno
fa7a9ed777 Merge branch 'remove-needless-tag' into 'master'
Remove a needless tab

See merge request GNOME/libsecret!17
2019-05-07 11:26:30 +00:00
Kouhei Sutou
65153a2bf4 Remove a needless tab 2019-05-07 11:10:44 +00:00
Daiki Ueno
54606902bc Merge branch 'gir-missing-flags-gtype' into 'master'
Add missing GType to flags in .gir

See merge request GNOME/libsecret!16
2019-05-07 11:10:00 +00:00
Kouhei Sutou
f36379af33 Add missing GType to flags in .gir
Here is a sample diff by this change:

    --- Secret-1.gir.before	2019-05-07 15:20:58.252288010 +0900
    +++ Secret-1.gir.after	2019-05-07 15:26:54.314413832 +0900
    @@ -1141,22 +1140,32 @@
           </field>
         </record>
         <bitfield name="CollectionCreateFlags"
    +              glib:type-name="SecretCollectionCreateFlags"
    +              glib:get-type="secret_collection_create_flags_get_type"
                   c:type="SecretCollectionCreateFlags">
           <doc xml:space="preserve">Flags for secret_collection_create().</doc>
    -      <member name="collection_create_none"
    +      <member name="none"
                   value="0"
    -              c:identifier="SECRET_COLLECTION_CREATE_NONE">
    +              c:identifier="SECRET_COLLECTION_CREATE_NONE"
    +              glib:nick="none">
             <doc xml:space="preserve">no flags</doc>
           </member>
         </bitfield>

Other flags such as SecretServiceFlags also have GType in .gir.
2019-05-07 15:27:21 +09:00
Daiki Ueno
b5442654d4 Release 0.18.8 2019-03-02 07:55:06 +01:00
Niels De Graef
c8cbc2564f Merge branch 'wip/dueno/vapi-fixes' into 'master'
secret-paths: Add (nullable) if allowed.

See merge request GNOME/libsecret!15
2019-03-01 09:57:54 +00:00
Niels De Graef
6658602b6b secret-paths: Add (nullable) if allowed.
This caused segfaults in Seahorse when someone canceled the "Change
Password" dialog for a keyring.

Related to GNOME/seahorse#204
2019-03-01 10:02:05 +01:00
Rico Tzschichholz
50c1d717ca meson: Pass correct header to generate_gir to fix broken vapi 2019-01-25 22:08:37 +01:00
Rico Tzschichholz
8bf566f265 Drop accidentially committed .dirstamp
See b19c309096
2019-01-25 21:59:04 +01:00
Niels De Graef
04d05d9aaf Merge branch 'wip/nielsdg/g-type-private' into 'master'
Remove deprecated g_type_class_add_private()

See merge request GNOME/libsecret!14
2019-01-24 12:42:03 +00:00
Niels De Graef
950b22bab6 Remove deprecated g_type_class_add_private()
Use `G_ADD_PRIVATE()` or its shorthand when defining a type using
`G_DEFINE_TYPE_WITH_PRIVATE()`
2019-01-24 00:07:33 +01:00
Niels De Graef
5f24b4521b Merge branch 'wip/nielsdg/fix-autoptr-defines' into 'master'
Don't end G_DEFINE_AUTOPTR_CLEANUP_FUNC with a ;

See merge request GNOME/libsecret!13
2019-01-20 07:12:02 +00:00
Niels De Graef
b483b15d9d Don't end G_DEFINE_AUTOPTR_CLEANUP_FUNC with a ;
Normally it shouldn't matter too much, but the GIR parser apparently
doesn't like it:

```
/home/niels/gnome/libsecret/libsecret/secret-schema.h:75: syntax error, unexpected ';' in ';' at ';'
/home/niels/gnome/libsecret/libsecret/secret-prompt.h:78: syntax error, unexpected ';' in ';' at ';'
/home/niels/gnome/libsecret/libsecret/secret-value.h:54: syntax error, unexpected ';' in ';' at ';'
/home/niels/gnome/libsecret/libsecret/secret-service.h:307: syntax error, unexpected ';' in ';' at ';'
/home/niels/gnome/libsecret/libsecret/secret-collection.h:176: syntax error, unexpected ';' in ';' at ';'
/home/niels/gnome/libsecret/libsecret/secret-item.h:194: syntax error, unexpected ';' in ';' at ';'
```
2019-01-19 23:59:02 +01:00
Niels De Graef
763e04f763 Merge branch 'wip/nielsdg/meson' into 'master'
Add build support for Meson.

See merge request GNOME/libsecret!9
2019-01-19 21:11:28 +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
Niels De Graef
be0a126399 Merge branch 'wip/nielsdg/g-autoptr-support' into 'master'
Add support for g_autoptr() to our types

See merge request GNOME/libsecret!11
2019-01-19 13:00:07 +00:00
Niels De Graef
80afd20c19 Add support for g_autoptr() to our types
g_autoptr() is a macro that was defined in GLib 2.44 that allows for
basic auto-cleanup of variables. One way to add this kind of support
would be through the use of e.g. `G_DECLARE_DERIVABLE_TYPE()` for our
declarations, but this would consitute an ABI break (due to the
`...Private *` field in the public structs). Instead, we can use
`G_DEFINE_AUTOPTR_CLEANUP_FUNC` to manually declare this.

This commit also bumps the minimally required GLib version to 2.44
2019-01-19 12:42:33 +00:00
Niels De Graef
92e9952ba2 Merge branch 'wip/nielsdg/remove-useless-macros' into 'master'
Remove useless macro to check GLib version

See merge request GNOME/libsecret!12
2019-01-19 12:40:51 +00:00
Niels De Graef
cbea4ce739 Remove useless macro to check GLib version
We already require GLib to have version 2.38 or higher in
`configure.ac`, so no need to check in our code whether we have a
version higher than 2.35
2019-01-19 12:12:32 +01:00
Daiki Ueno
c5b734f4e8 Bump version number 2018-12-29 07:07:49 +01:00
Daiki Ueno
2dd165a90d configure.ac: Replace Bugzilla with GitLab issues 2018-12-29 06:58:46 +01:00
Andre Klapper
3b44251650 Replace Bugzilla by Gitlab URL in DOAP file 2018-12-14 12:03:19 +01:00
Daiki Ueno
a112dffa0b Merge branch 'revert-0838b331' into 'master'
Revert "Merge branch 'wip/dueno/search' into 'master'"

See merge request GNOME/libsecret!10
2018-12-07 14:54:08 +00:00
Daiki Ueno
9c3381b483 Revert "Merge branch 'wip/dueno/search' into 'master'"
This reverts merge request !7
2018-12-07 14:28:20 +00:00
Charles Monzat
3b84f68cc1 Update French translation 2018-12-05 08:25:27 +00:00
Tomasz Miąsko
5a217c5cae Secret item schema name is optional
Initialize the schema_name so that NULL is returned when the schema name
is absent, instead of an uninitialized memory. Mark return value as
nullable to indicate this for introspection and documentation.
2018-10-19 13:10:15 +02:00
Daiki Ueno
0838b3316b Merge branch 'wip/dueno/search' into 'master'
password: Add secret_password_search* functions

Closes #16

See merge request GNOME/libsecret!7
2018-10-19 10:49:58 +00:00
Daiki Ueno
7716449b1d password: Add secret_password_search* functions
Previously there were no functions in the simple API that return the
matched attributes other than the secret value, while there were needs
for augumenting user input with additional information (such as
completing web forms).

This adds a set of functions which wrap secret_service_search*.  Note
that the return value is a list of GHashTable not of SecretItem,
because SecretItem is a subclass of GDBusProxy, which we don't want to
expose from the simple API.

Fixes #16
2018-10-19 12:00:45 +02:00
Daiki Ueno
5ce2540785 Merge branch 'tap-python3' into 'master'
build: update tap scripts

See merge request GNOME/libsecret!4
2018-08-28 09:43:30 +00:00
Jan Tojnar
d31352679d
build: update tap scripts
This replaces tap-driver and tap-gtester with fresh versions from Cockpit.

https://github.com/cockpit-project/cockpit/pull/9500
https://wiki.gnome.org/Initiatives/GnomeGoals/Python3Porting

Also included are the following commits that are not included in Cockpit:

* 918ab836fd
* 7e75a62e84
* 7120f44cee
* 98d12ea220

Basically a copy of https://gitlab.gnome.org/GNOME/gnome-keyring/merge_requests/4
2018-08-28 11:27:27 +02:00
Daiki Ueno
9bde303840 Merge branch 'wip/dueno/gitlab-ci' into 'master'
gitlab-ci: Switch to fedora:latest from fedora:rawhide

See merge request GNOME/libsecret!3
2018-07-26 20:29:28 +00:00
Daiki Ueno
2f29930738 gitlab-ci: Run "dnf upgrade" before installing packages 2018-07-24 16:14:03 +02:00
Daiki Ueno
f150c7a3a0 gitlab-ci: Switch to fedora:28 from fedora:rawhide 2018-07-24 15:18:53 +02:00
Daiki Ueno
9ca8f323a9 secret-session: Avoid double-free in service_encode_plain_secret()
As g_variant_builder_add_value() takes ownership of a floating
GVariant, we don't need to unref it afterwards.
2018-07-20 11:01:08 +02:00
Daiki Ueno
83774b8b93 build: Add .dir-locals.el for Emacs 2018-07-20 10:54:30 +02:00
Daiki Ueno
c23f8134e9 gitlab-ci: Really run "make check" with ASan 2018-06-11 10:03:49 +02:00
Daiki Ueno
5298bf77ac Merge branch 'wip/nielsdg/intltool2gettxt' into 'master'
Migrate from intltool to gettext.

See merge request GNOME/libsecret!2
2018-06-09 06:07:53 +00:00
Niels De Graef
f25420d5aa Migrate from intltool to gettext. 2018-06-09 05:52:31 +00:00
Daiki Ueno
d5788bd015 Merge branch 'wip/dueno/gitlab-ci' into 'master'
build: Enable gitlab-ci

See merge request GNOME/libsecret!1
2018-06-09 04:51:58 +00:00
Daiki Ueno
79ca2bd319 build: Enable gitlab-ci 2018-06-07 10:07:11 +02:00
Daiki Ueno
98d12ea220 tap-driver: Handle --enable-hard-errors 2018-06-06 18:57:58 +02:00
Daiki Ueno
a3753c1b2b build: Remove unused constants 2018-06-06 15:14:32 +02:00
Daiki Ueno
0ec60173bc doap: add myself as maintainer 2018-05-25 12:44:15 +02:00
Daiki Ueno
a7f2efc450 build: Make DBus code generation more portable
The $'...' quoting syntax is a Bash extension and might not be
available in other Bourne Shell compatible shells:
https://www.gnu.org/software/bash/manual/html_node/Major-Differences-From-The-Bourne-Shell.html#Major-Differences-From-The-Bourne-Shell

https://bugzilla.gnome.org/show_bug.cgi?id=734630
2018-03-31 09:27:23 +02:00