summaryrefslogtreecommitdiff
path: root/src/libotutil/ot-gpg-utils.h
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: Run clang-formatColin Walters2023-05-021-18/+13
| | | | | This is a one-time tree wide reformatting to ensure consistency going forward.
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* libotutil: Add helper for GPG WKD update URLsDan Nicholson2021-07-151-0/+5
| | | | | | | | | Calculate the advanced and direct update URLs for the key discovery portion[1] of the OpenPGP Web Key Directory specification, and include the URLs in the key listing in ostree_repo_remote_get_gpg_keys(). These URLs can be used to locate updated GPG keys for the remote. 1. https://datatracker.ietf.org/doc/html/draft-koch-openpgp-webkey-service#section-3.1
* lib/gpg: Add helper to kill GPG agentDan Nicholson2019-06-191-0/+2
| | | | | | | | | | With GnuPG 2, any time you do basically any operation, a gpg-agent will be spawned for the GPG home directory in use. The classic way to kill a gpg-agent is to use `gpg-connect-agent` and send the `killagent` command as is done in libtest.sh. Closes: #1799 Approved by: cgwalters
* Add SPDX-License-Identifier to source filesMarcus Folkesson2018-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | SPDX License List is a list of (common) open source licenses that can be referred to by a “short identifier”. It has several advantages compared to the common "license header texts" usually found in source files. Some of the advantages: * It is precise; there is no ambiguity due to variations in license header text * It is language neutral * It is easy to machine process * It is concise * It is simple and can be used without much cost in interpreted environments like java Script, etc. * An SPDX license identifier is immutable. * It provides simple guidance for developers who want to make sure the license for their code is respected See http://spdx.org for further reading. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Closes: #1439 Approved by: cgwalters
* tree-wide: Remove Emacs modelinesColin Walters2017-09-211-2/+1
| | | | | | | | | We added a `.dir-locals.el` in commit: 9a77017d87b74c5e2895cdd64ad098018929403f There's no need to have it per-file, with that people might think to add other editors, which is the wrong direction. Closes: #1206 Approved by: jlebon
* lib/gpg: Use nicer helper for gpg error messagesColin Walters2017-09-071-1/+2
| | | | | | | | | | | | The vast majority of invocations of `ot_gpgme_error_to_gio_error()` were paired with `g_prefix_error()`; let's combine them for the same reason we do `glnx_throw_errno_prefix()`. For the few cases that don't we might as well add some prefix. I also changed it to `return FALSE` in prep for more style porting. Closes: #1135 Approved by: jlebon
* tree-wide: Remove trailing semicolon from autoptr declarationsColin Walters2017-08-071-2/+2
| | | | | | | It confuses `g-ir-scanner`, and isn't necessary. Closes: #1056 Approved by: pwithnall
* lib: Define and use an autoptr cleanup for gpgme_key_tColin Walters2017-08-031-0/+1
| | | | | | | Followup for previous patch, allows porting a bit to new code style. Closes: #1039 Approved by: jlebon
* lib/gpg: Switch to GLib autocleanups for gpgme typesColin Walters2017-08-021-4/+2
| | | | | | | | Prep for dropping `GLNX_DEFINE_CLEANUP_FUNCTION` from libglnx in favor of using GLib's `G_DEFINE_AUTO_CLEANUP_FREE_FUNC()`. Closes: #1042 Approved by: jlebon
* repo: Delete the last use of GFile tmp_dirColin Walters2017-05-011-1/+0
| | | | | | | | | | The keyring isn't large, so let's just fall back to copying it rather than requiring `renameat()`. Prep for `ostree_repo_open_at()`. Closes: #821 Approved by: jlebon
* lib: Split out helper function to create GPG contextColin Walters2016-11-171-0/+3
| | | | | | | In prep for future work. Closes: #575 Approved by: giuseppe
* lib: Define and use cleanup functions for gpgmeColin Walters2016-11-171-0/+6
| | | | | | | Just a cleanup in preparation for future work. Closes: #575 Approved by: giuseppe
* gpg: Add custom data buffers to wrapper GIO streamsMatthew Barnes2015-05-071-0/+3
| | | | | ot_gpgme_data_input() and ot_gpgme_data_output(), shamelessly ripped off from seahorse_gpgme_data_input() and seahorse_gpgme_data_output().
* libotutil: Add ot_gpgme_ctx_tmp_home_dir()Matthew Barnes2015-05-011-0/+7
| | | | | Currently used for signature verification, will also be used for importing GPG keys.
* libotutil: Establish a place for GPG utilitiesMatthew Barnes2015-05-011-0/+30
Add ot-gpg-utils.[ch] and move _ostree_gpg_error_to_gio_error() here.