summaryrefslogtreecommitdiff
path: root/egg
Commit message (Collapse)AuthorAgeFilesLines
* mock-interaction: Properly chain up finalizeNiels De Graef2023-01-221-1/+1
|
* Stop using GSliceNiels De Graef2023-01-161-10/+10
| | | | | | | | | | | | 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
* Add some OIDs to the known onesLukáš Tyrychtr2022-11-081-0/+30
| | | | Fixes #107.
* egg: Drop usage of timegm in favor of GDateTimeNiels De Graef2022-07-074-87/+0
|
* Use GDateTime instead of GDateNiels De Graef2022-07-073-259/+66
| | | | ... and remove some functions that still use `time_t`
* Replace g_memdup with g_memdup2Niels De Graef2022-06-132-2/+2
|
* secure-memory: Fix odr-violation by using a private settertintou/fix-ciCorentin Noël2022-06-053-6/+38
|
* Drop "volatile" for g_once_init_enter locationsbugfix/drop-volatileNiels De Graef2021-05-023-3/+3
| | | | | | | 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
* egg: Port scratch file/directory functions from gnome-keyringDaiki Ueno2021-03-272-0/+76
| | | | Those are useful for testing ssh-agent stuff.
* egg: Port egg-file-tracker from gnome-keyringDaiki Ueno2021-03-273-0/+363
| | | | | Although this is not a fully fledged file monitor as GFileMonitor, it serves better in our use-case: preloading public keys in ssh-agent.
* Remove Autotools buildNiels De Graef2021-01-161-152/+0
| | | | | We have a modern, saner build system in place with Meson, so let's drop autotools before releasing the next version of gcr.
* Create a workaround for tests and GTaskwip/nielsdg/fix-tests-with-racy-gtaskNiels De Graef2021-01-151-0/+13
| | | | | | | | | | 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
* egg-oid: add comments for translators to newly added abbreviationsDmitry Baryshkov2020-02-051-0/+4
| | | | | | Closes #40 Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* egg: add attributes for GOST certificatesDmitry Baryshkov2020-01-303-1/+62
| | | | | | | 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>
* gcr: add support for parsing GOST public keys/certificatesDmitry Baryshkov2020-01-303-1/+28
| | | | | | | Add support for parsing certificates/public keys according to RFC 4491 and draft-deremin-4491-bis. Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* egg-dn: correctly handle BMPStrings in DNDmitry Baryshkov2020-01-301-0/+9
| | | | | | | 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>
* egg/pkix.asn: drop standard typesDmitry Baryshkov2020-01-292-44/+0
| | | | Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
* egg-asn1x: special function to decode ANY as fooSTRINGDmitry Baryshkov2020-01-292-0/+62
| | | | | | | | 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>
* Support Meson build systemNiels De Graef2019-12-311-0/+78
|
* egg: Write Proc-Type header before DEK-InfoIain Lane2019-02-061-5/+21
| | | | | | | | | | 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.
* egg-asn1x: Fix year 2038 workaroundAlban Browaeys2018-03-091-3/+3
| | | | | | Check tm_year for "2038 - 1900" not plain 2038. https://bugzilla.gnome.org/show_bug.cgi?id=787963
* egg: Move mock-interaction.[ch] to egg/ directoryStef Walter2018-02-153-1/+140
| | | | | | Since we want to use this from the gcr/ code https://bugzilla.gnome.org/show_bug.cgi?id=735873
* egg-armor: Use g_strrstr_len() instead of memrchr()Philip Chimento2016-11-151-1/+1
| | | | | | | Not all systems have memrchr(), so g_strrstr_len() is more portable, though probably slower. https://bugzilla.gnome.org/show_bug.cgi?id=774311
* egg-asn1x: Change EggAsn1xFlags to typedefPhilip Chimento2016-11-141-1/+1
| | | | | | | Otherwise, including this header in two translation units later linked together will fail compilation. https://bugzilla.gnome.org/show_bug.cgi?id=774312
* egg: Make sure names for encode-decode tests are differentDmitry Shachnev2015-10-191-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=755873
* egg: Fix bad precondation checking timegm() resultStef Walter2015-10-191-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=92383
* egg: Fix the 'make asn' build targetStef Walter2014-11-141-2/+2
|
* egg-asn1x: Fix memory leak in egg_asn1x_set_any_raw()Christophe Fergeau2014-11-131-0/+1
| | | | | | | 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
* egg/test-dn: Don't leak GBytes created in test_dn_value()Christophe Fergeau2014-11-131-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=738508
* test-asn1: Don't leak 'asn' in test_create_quark()Christophe Fergeau2014-11-131-0/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=738508
* egg: Fix libgcrypt integration for older libgcryptStef Walter2014-10-251-0/+1
| | | | There was a missing pthread.h header
* asn1x: Sanitize use of asn1_set_value/asn1_take_valueChristophe Fergeau2014-10-141-7/+7
| | | | | | | | 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
* egg: Fix use of libgcrypt GCRY_THREAD_OPTION_PTHREAD_IMPLStef Walter2014-09-091-0/+2
| | | | | | | | 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)
* egg: Accomodate thread-safe libgcrypt 1.6+Stef Walter2014-09-091-37/+2
| | | | | | | | | | | | | 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.
* configure: Dump required GLib version to 2.38Stef Walter2014-09-032-6/+3
| | | | | 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.
* Don't use non-portable sed -i shell commandAntoine Jacoutot2014-05-211-2/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=728506
* asn1: More clear dump display whether something has value/notStef Walter2014-04-191-1/+7
| | | | | 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.
* oid: Add various OIDs for Elliptic Curve related stuffStef Walter2014-04-191-0/+7
|
* asn1: Add egg_asn1x_get_string_as_usg functionStef Walter2014-04-192-6/+47
| | | | | Gets a string as an unsigned integer, removing leading zeros, and combining strings of indefinite length.
* asn1: Added updates to ASN.1 from RFCs 5480 & 5758 & 5915Scott Schmit2014-04-194-1/+321
| | | | | | | | 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
* asn1: Fix ASN.1 compilation and update for new libtasn1Stef Walter2014-04-194-77/+77
|
* Makefile.am: Single Makefile mode and parallel-testsStef Walter2014-03-0332-115/+115
| | | | | | | | | | | | | | | | 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.
* Updated FSF's addressDaniel Mustieles2014-01-3148-113/+48
|
* Allow valgrind support to be completely disabledLaurent Bigonville2013-12-161-2/+1
| | | | | | Valgrind macros will still be enabled by default https://bugzilla.gnome.org/show_bug.cgi?id=702648
* Fix compilation if valgrind support is completely disabledLaurent Bigonville2013-12-161-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702648
* Use AM_CPPFLAGS instead of INCLUDES in Makefile.am filesStef Walter2013-10-182-2/+2
|
* Use the _() macro instead of gettext(). If gi18n-lib.h isGabor Kelemen2013-08-181-1/+1
| | | | | included, the translation domain information needs to be explicitely passed in a [g_]dgettext() call, which is done by the _() macro.
* More reliable means of checking if object was finalizedStef Walter2013-08-172-32/+0
| | | | | | | | 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
* egg-asn1x: Update for recent changes in libtasn1Stef Walter2013-04-198-58/+1471
|
* Fix for deprecated glib functionalityStef Walter2013-04-191-2/+1
|