Colin Walters
4f80548454
repo: Delete the last use of GFile tmp_dir
...
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
2017-05-01 16:44:59 +00:00
Colin Walters
3cd5e6b41a
lib: Split out helper function to create GPG context
...
In prep for future work.
Closes : #575
Approved by: giuseppe
2016-11-17 09:44:07 +00:00
Colin Walters
b77edf24a3
tree-wide: Remove unused variables detected by CLang
...
CLang finds these, whereas GCC treats having
`__attribute__((cleanup))` as a use.
This obsoletes https://github.com/ostreedev/ostree/pull/411
Closes : #548
Approved by: jlebon
2016-10-27 17:02:01 +00:00
Colin Walters
f461c02bb5
gpg: Use gpg_strerror_r for threadsafety
...
These APIs are rather painful...this is why GError exists.
2016-02-22 18:07:30 -05:00
Matthew Barnes
239f05ecdd
gpg: Add custom data buffers to wrapper GIO streams
...
ot_gpgme_data_input() and ot_gpgme_data_output(), shamelessly ripped
off from seahorse_gpgme_data_input() and seahorse_gpgme_data_output().
2015-05-07 17:07:36 -04:00
Matthew Barnes
cd1551b1ee
gpg: Fix ot_gpgme_error_to_gio_error()
...
Need to extract the error code from a gpgme_error_t, can't just compare
it directly.
2015-05-07 16:02:39 -04:00
Matthew Barnes
4ee1acd981
Use g_autoptr() for GIO object types
...
GLib 2.44 supplies all the necessary autocleanup macros for GIO types,
and libglnx backports the relevant macros for ostree.
2015-05-06 21:51:19 -04:00
Matthew Barnes
97379ec38c
libotutil: Add ot_gpgme_ctx_tmp_home_dir()
...
Currently used for signature verification, will also be used for
importing GPG keys.
2015-05-01 10:21:40 -04:00
Matthew Barnes
ceacc57206
libotutil: Establish a place for GPG utilities
...
Add ot-gpg-utils.[ch] and move _ostree_gpg_error_to_gio_error() here.
2015-05-01 10:20:34 -04:00