| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Fixes #107.
|
| |
|
|
|
|
| |
... and remove some functions that still use `time_t`
|
| |
|
| |
|
|
|
|
|
|
|
| |
This fixes a few (fatal in gcc 11) warnings, breaking the CI.
For the original discussion on why this change is needed, see
https://gitlab.gnome.org/GNOME/glib/-/issues/600
|
|
|
|
| |
Those are useful for testing ssh-agent stuff.
|
|
|
|
|
| |
Although this is not a fully fledged file monitor as GFileMonitor, it
serves better in our use-case: preloading public keys in ssh-agent.
|
|
|
|
|
| |
We have a modern, saner build system in place with Meson, so let's drop
autotools before releasing the next version of gcr.
|
|
|
|
|
|
|
|
|
|
| |
It's possible that a GTask that has been called with
`g_task_run_in_thread()` still has a reference held by that thread after
the `_finish()` function has been called. This is a little problematic
for tests that check for the final reference, so use this as a
workaround instead.
See https://gitlab.gnome.org/GNOME/glib/-/issues/1346 for more info
|
|
|
|
|
|
| |
Closes #40
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
|
|
|
|
|
|
| |
Add several DN entries found in qualified GOST certificates. These items
are described in draft-deremin-rfc4491-bis.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
|
|
|
|
|
|
| |
Add support for parsing certificates/public keys according to RFC 4491
and draft-deremin-4491-bis.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
|
|
|
|
|
|
| |
If the node is BMPString, it should be handled separately, rather than
just being used as Printable/UTF8String.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
|
|
|
| |
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
|
|
|
|
|
|
|
| |
Newer asn1Parser does not include standard types into generated tables,
thus making egg_asn1x_get_any_as() unusable in this case. Add special
handler for decoding ANY is fooSTRING instead.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
| |
These headers (at least for OpenSSL) must come in this order. We
shouldn't assume that `g_hash_table_foreach` is going to give a
particular ordering - it's not guaranteed, and has changed with GLib
2.59.
This is a cherry-pick of 23fdfe728a27a01ef50affd849be5188c0cda954 from
gnome-keyring.
|
|
|
|
|
|
| |
Check tm_year for "2038 - 1900" not plain 2038.
https://bugzilla.gnome.org/show_bug.cgi?id=787963
|
|
|
|
|
|
| |
Since we want to use this from the gcr/ code
https://bugzilla.gnome.org/show_bug.cgi?id=735873
|
|
|
|
|
|
|
| |
Not all systems have memrchr(), so g_strrstr_len() is more portable,
though probably slower.
https://bugzilla.gnome.org/show_bug.cgi?id=774311
|
|
|
|
|
|
|
| |
Otherwise, including this header in two translation units later linked
together will fail compilation.
https://bugzilla.gnome.org/show_bug.cgi?id=774312
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=755873
|
|
|
|
| |
https://bugs.freedesktop.org/show_bug.cgi?id=92383
|
| |
|
|
|
|
|
|
|
| |
In error cases, the Atlv variable 'tlv' which was created in this
function is not going to be used, so we must free it before returning.
https://bugzilla.gnome.org/show_bug.cgi?id=738508
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=738508
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=738508
|
|
|
|
| |
There was a missing pthread.h header
|
|
|
|
|
|
|
|
| |
Most callers of asn1_set_value() seems to assume this function will take
ownership of the passed in GBytes, while it actually takes an additional
reference.
https://bugzilla.gnome.org/show_bug.cgi?id=738508
|
|
|
|
|
|
|
|
| |
On certain libgcrypt versions (like 1.5.0) we need to include
errno.h or compilation fails:
../egg/egg-libgcrypt.c:54:1: error: 'ENOMEM' undeclared (first use in
this function)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
libcrypt no longer supports setting our own threading callbacks,
and is thread-safe if we call gcry_check_version() before creating
threads.
Unfortunately we can't guarantee that we call gcry_check_version()
early enough, we try our best. Most of the callers of Gcr either
don't use libgcrypt, or also initialize it appropriately themselves.
Bump libgcrypt dependency to 1.4.5+, and have earlier versions use
the native pthread implementation of locking.
|
|
|
|
|
| |
We want to use 2.38.x and 2.36.x APIs in the GcrSshAskpass code
and the 2.38.x has been available in most distributions for a while.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=728506
|
|
|
|
|
| |
When dumping parsed DER/ASN.1 tree, print an asterisk if something
has a value, and a dot if it was parsed, but no value.
|
| |
|
|
|
|
|
| |
Gets a string as an unsigned integer, removing leading zeros, and
combining strings of indefinite length.
|
|
|
|
|
|
|
|
| |
Signed-off-by: Stef Walter <stefw@gnome.org>
* Fixed conflicts and combined into one commit
* Moved to pk.asn since it's EXPLICIT tags by default
https://bugzilla.gnome.org/show_bug.cgi?id=672137
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gtk-doc doesn't work as an included Makefile so continue to
use SUBDIRS with docs/reference/*
Run the tests using TAP. Unfortunately the GTest --tap output
mode doesn't behave well in the face of failures, and doesn't
output a test plan. Use our own tap-driver and tap-compiler
for these reasons.
This also fixes several builddir != srcdir issues and testing hacks
that were sneaking around in the code base.
Move the tests into the same directories as the code that it
is testing.
|
| |
|
|
|
|
|
|
| |
Valgrind macros will still be enabled by default
https://bugzilla.gnome.org/show_bug.cgi?id=702648
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=702648
|
| |
|
|
|
|
|
| |
included, the translation domain information needs to be explicitely
passed in a [g_]dgettext() call, which is done by the _() macro.
|
|
|
|
|
|
|
|
| |
Don't try to use G_IS_OBJECT() to see if an object was finalized
as this segfaults in corner cases, even with our crafty check
for a pointer within our memory space.
https://bugzilla.gnome.org/show_bug.cgi?id=705139
|
| |
|
| |
|