| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
GDK provides an interface to the _xdg-foreign_ protocol extension, which
exactly allows to export a handle that another window can use to set
itself transient to.
Also bump the minmal GTK version to 3.22, since that is the version that
adds the necessary methods to do this in GDK.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
The timeout length in the current test is too low and can make the test
fail if the system is too slow or too loaded. This test correctly stops
waiting when a result is received, so the timeout will not actually be
reached unless there is a problem.
[smcv: Expand commit message]
Fixes: https://gitlab.gnome.org/GNOME/gcr/issues/29
Bug-Debian: https://bugs.debian.org/846728
Signed-off-by: Simon McVittie <smcv@debian.org>
|
|
|
|
| |
Fixes https://gitlab.gnome.org/GNOME/gcr/-/issues/48
|
| |
|
|
|
|
|
| |
Previously the nonRepudiation, encipherOnly and decipherOnly bits were
not listed.
|
|
|
|
| |
Helps #47
|
|
|
|
|
|
|
|
|
| |
If they are set as strings, meson will supply the right
arguments to vapigen, but will not set the ninja dependencies
to ensure they get built first, and so races will occur:
https://autobuilder.yoctoproject.org/typhoon/#/builders/64/builds/1881/steps/8/logs/step1b
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
|
| |
|
| |
|
|
|
|
|
|
|
| |
gtk-doc can now understand Gtk-doc comments on vfuncs, so let's use
that.
See also https://gitlab.gnome.org/GNOME/gcr/merge_requests/35#note_678211
|
|
|
|
|
|
|
| |
If we want applications to switch, deprecation warnings are a good way
to make that happen.
Fixes https://gitlab.gnome.org/GNOME/gcr/issues/36
|
|
|
|
|
|
|
| |
According to RFC 7468 parsers MAY treat "NEW CERTIFICATE REQUEST" as
equivalent to "CERTIFICATE REQUEST", so act accordingly.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
|
|
|
|
|
| |
Add files to test parsing of GOST certificates/cert requests.
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>
|
|
|
|
| |
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
|
|
|
|
|
|
| |
Add tests for parsing otherName, which implies converting ANY to
BMPString and UTF8String.
Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
|
|
|
|
| |
This is a regression to the meson port
|
| |
|
|
|
|
| |
This fixes some warnings about implicit declaration.
|
|
|
|
|
|
| |
Although `g_object_ref()` technically returns a `gpointer`, on some
compilers it will return the type of its argument. This means we need to
add the necessary casting.
|
|
|
|
|
|
| |
We needed this for the call to `strptime()` and `timegm()`.
Also once we missed a `#include <time.h>`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By adding `(virtual)` to a method, you tell the GObject Introspection
scanner that it is the public API of a certain vfunc. Since you can't
annotate a vfunc, GIR has a workaround where it will take over the
annotations of the invoker.
In other words, to make sure the annotations of the return value of
`GcrCertificate.get_der_data()` are understoor correctly, we just need
to add the necessary tags to `gcr_certificate_get_der_data()` and mark
it as `(virtual get_der_data)`.
Fixes https://gitlab.gnome.org/GNOME/gcr/issues/37
|
|
|
|
|
|
| |
Meson isn't setting the "Requires" field, so we have to do it manually.
Since we don't want to specify each dependency in `glib_deps` as a
dependency, we also give each a separate variable.
|
|
|
|
|
| |
We introduced a regression in Meson as we do not add the correct `-I`
flags for the compiler.
|
|
|
|
|
|
| |
This prevents some unnecessary string copies, resulting in less memory
used and some unnecessary performance overhead being removed. Well, a
little bit at least.
|
|
|
|
|
| |
It doesn't matter really for bindings, but looks better when they are
rendering documentation (e.g. `NULL` is replaced by `None` for python).
|
|
|
|
|
| |
It should be replaced with either `(optional)`, `(nullable)`, or in some
cases both.
|
| |
|
|
|
|
|
| |
Use `G_ADD_PRIVATE()` (or the convenience macro
`G_DEFINE_TYPE_WITH_PRIVATE()`) instead.
|
|
|
|
|
|
|
|
|
|
| |
Despite making it into the API docs, the trust APIs are not included
in the GCR GIR or VAPI files, since they were marked as private in the
Makefile, not public. As a result, apps using language bindings cannot
use the trust API without manual intervention.
This fixes the missing API by marking gcr-trust.c and gcr-trust.h
public.
|
|
|
|
| |
Reported by David Leonard in #15.
|
|
|
|
|
|
|
|
|
|
| |
No store/lookup URIs may be present, even after initialising them, if no
appropriate stores are found. Check this is the case before attempting
to use them, and clarify in both debug output and the gtkdocs about what
is happening in such cases.
This makes the underlying problem in #10 a bit more obvious when
debugging.
|
|
|
|
|
| |
Remove sentences that suggest only SHA1 and MD5 are supported hashes
when getting a certificate's fingerprint.
|
|
|
|
|
|
|
|
| |
Since the glib commit 8dc8b33d, g_hash_table_lookup_extended() started
to clear the argument to NULL, even if the lookup failed. Do not
expect the original key is preserved in that case.
Fixes #9.
|
|
|
|
|
| |
If the test program is running as a privileged user, it is not
possible to set the limit of mlock().
|
|
|
|
|
|
|
| |
This allows calling ssh programs like ssh-add or ssh itself, and
handling the password prompts.
https://bugzilla.gnome.org/show_bug.cgi?id=735873
|
| |
|
|
|
|
|
|
|
|
|
| |
* The PKCS#11 specification described this attribute as DER encoded and
existing tools expect the value as an OCTET STRING
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
https://bugzilla.gnome.org/show_bug.cgi?id=785234
|