| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Printing dates in locale dependent format ("%x" with
g_date_time_format) could be misleading when they ares shown in
certificate fields. This changes the format to "%F" (i.e.,
YYYY-MM-DD) for clarity.
|
|
|
|
|
|
| |
In `test_restart()` we call `connect_to_process()` twice, which sets up
a new `GSocketConnection` each time. That means we shouldn't forget to
cleanup the first connection before calling it a second time.
|
| |
|
| |
|
|
|
|
|
| |
ASAN caught that we were leaking the value here. Fix it by not doing a
duplicate string copy.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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`
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
|
|
|
|
|
|
| |
This adds an alternative constructor for GcrPkcs11Certificate, namely
gcr_pkcs11_certificate_new_from_uri and its async variant, which would
allow applications to handle PKCS #11 certificates more easily.
|
|
|
|
|
|
| |
Both the issuer CN and the subject CN can be NULL, so make sure we deal
with this case. This fixes a few CRITICALs when loading a certificate
that has this.
|
|
|
|
|
|
| |
Allows to use the same code-path for both GTK3 and GTK4.
Also allow any library-user to reimplement it with the toolkit of its choice or
to adapt it when a different styling is required (e.g. with libadwaita).
|
|
|
|
|
|
|
|
|
|
| |
gck provided some APIs that made working with lists of `GObject`s
easier. GLib has for a long time added API that works well enough for
the same use case, like `g_list_copy_deep()`, `g_list_free_full()` and
more recently also `g_clear_list()`, so use those instead.
This commit also bumps the required GLib version to a more modern 2.64
(which is needed for the `g_clear_list()` API).
|
|
|
|
|
|
|
| |
We aren't using it for anything nor is anybody create a custom
comparable interface. Applications that want to do sorting problably
have a better idea on how they want to sort things (and might want to
deal with it differently, like extending `GtkSorter` for example)
|
| |
|
|
|
|
|
|
|
| |
Nobody ever implemented it, and we get stuck with an implementation that
fiddles with the main loop. Certain bindings (like Vala) also don't know
about optional interface methods, so those would be stuck still
implementing it.
|
| |
|
|
|
|
|
| |
It's a silly property that was introduced for the likes of Seahorse,
which should just do better.
|
| |
|
| |
|
|
|
|
| |
... and remove some functions that still use `time_t`
|
|
|
|
|
| |
This fixes some heuristics that GIR uses when matching the getters,
properties and setters.
|
|
|
|
|
| |
These were just used for display treeviews. We're not really interested
in putting that kind of stuff inside gcr itself, so just remove it.
|
|
|
|
|
| |
`gcr-ssh-askpass` is provided by both gcr3 and gcr4, so add our version
number so we can parallel install both.
|
|
|
|
|
|
|
|
|
|
|
| |
Icons are problematic to provide within gcr, as different DEs that are
using it, have different expectations what such an icon should look
like: one wants it to be colorful, another wants it to be monochrome,
yet another wants everything skeumorphic etc.
Let's not deal with this in gcr4 and drop any icons. If applications
want to provide an icon, they can do that themselves much better then we
ever can.
|
|
|
|
|
|
| |
`gcr-prompter` got removed in the gcr4 migration, so keeping these
doesn't make sense in any case. If we decide to bring back
`gcr-prompter`, we can still revert this commit too.
|
|
|
|
|
|
|
| |
We should use the pkg-config variable of the `dbus-1` package to check
where we should install our D-Bus services, but we also need to make
sure we don't pollute anything outside of $prefix, so make sure to get
that case as well.
|
| |
|
|
|
|
| |
They're unused and outdated.
|
|
|
|
|
|
|
|
|
|
| |
There is one notable type of trust assertions that is not implemented in
gcr: those where `CK_X_ASSERTION_TYPE` equals
`CKT_X_DISTRUSTED_CERTIFICATE`.
This is actually also something needed by Seahorse, as that is showing
the infamous "null" certificates due to distrusted certificates being
present on the machine, but not having any DER data stored with them.
|
| |
|
|
|
|
|
| |
Add nullable to returned strings and out for the size. Always make sure that
the size has been set to 0 when returning a NULL string.
|
| |
|
|
|
|
|
|
|
| |
It is not necessary and makes it difficult to interact with GObject introspected
languages.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
| |
|
|
|
|
| |
Also remove the compatibility test and objects.
|
|
|
|
| |
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
|
|
|
|
|
|
| |
This means that GckObjectCacheIface becomes GckObjectCacheInterface and
GCK_OBJECT_CACHE_GET_INTERFACE becomes GCK_OBJECT_CACHE_GET_IFACE.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
|
|
|
|
|
|
| |
This means that GcrImporterIface becomes GcrImporterInterface and
GCR_IMPORTER_GET_INTERFACE becomes GCR_IMPORTER_GET_IFACE.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
|
|
|
|
|
|
|
| |
This means that GcrImportInteractionIface becomes GcrImportInteractionInterface
and GCR_IMPORT_INTERACTION_GET_INTERFACE becomes
GCR_IMPORT_INTERACTION_GET_IFACE.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
|
|
|
|
|
|
| |
This means that GcrComparableIface becomes GcrComparableInterface and
GCR_COMPARABLE_GET_INTERFACE becomes GCR_COMPARABLE_GET_IFACE.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
|
|
|
|
|
|
| |
This means that GcrPromptIface becomes GcrPromptInterface and
GCR_PROMPT_GET_INTERFACE becomes GCR_PROMPT_GET_IFACE.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
|
|
|
| |
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
|
|
|
|
|
| |
There is now the GListModel interface in GLib that should be used for this.
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
|
|
|
|
| |
Makes the code simpler.
|
|
|
|
| |
It has been forgotten.
|
| |
|
|
|
|
| |
Also remove the post-install symlinks
|
|
|
|
|
|
| |
Do not rely on major_version to manually create the library names.
Make sure to be consistent and use a single variable for all the library names
and folder mentions.
|
|
|
|
| |
Allows to always use the right dependency name.
|
|
|
|
|
|
| |
WARNING: Invalid fragment for 'Gcr.Prompt': it should be iface
The interface for implementing [class@Prompt].
^~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
|
|
| |
This argument has been removed in Meson 0.61.0:
gck/meson.build:130:2: ERROR: gnome.generate_gir got unknown keyword arguments "packages"
https://github.com/mesonbuild/meson/commit/f8fc5cb860465718fe7c79a1bf1fe00659f138de:
> The packages argument to gnome.generate_gir was allowed, but never did anything, so stop passing it.
Fixes #89
|
|
|
|
|
|
|
| |
This got added in the gi-docgen port. While it's technically correct,
it's an API break for GIR-based bindings (notably, the Vala bindings are
already suffering from build issues). As such, remove it again for API
compatibility purposes.
|