summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sign.h
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* lib: add some missing version tagsFelix Krull2020-08-261-0/+2
|
* signapi: Change API to also return a success messageColin Walters2020-06-171-0/+3
| | | | | | | | | | | | | | | | | | | This is the dual of https://github.com/ostreedev/ostree/pull/2129/commits/1f3c8c5b3de978f6e069c24938967f823cce7ee8 where we output more detail when signapi fails to validate. Extend the API to return a string for success, which we output to stdout. This will help the test suite *and* end users validate that the expected thing is happening. In order to make this cleaner, split the "verified commit" set in the pull code into GPG and signapi verified sets, and have the signapi verified set contain the verification string. We're not doing anything with the verification string in the pull code *yet* but I plan to add something like `ostree pull --verbose` which would finally print this.
* signing: Change API to create instances directlyColin Walters2020-05-101-1/+1
| | | | | | | This cleans up the verification code; it was weird how we'd get the list of known names and then try to create an instance from it (and throw an error if that failed, which couldn't happen).
* signing: Add #define OSTREE_SIGN_NAME_ED25519Colin Walters2020-05-031-0/+6
| | | | | Using `#define` or constants instead of strings helps avoid typos and encourages documentation.
* lib/sign: new function for summary file signingDenis Pynkin2020-03-251-0/+6
| | | | | | Add function `ostree_sign_summary()` allowing to sign the summary file. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
* lib/sign: allow to build with glib version less than 2.44Denis Pynkin2020-03-251-4/+14
| | | | | | | Ubuntu 14.04 uses glib-2.40 which have no some shiny macroses for interface declaration. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
* apidoc: add API documentation for signing interfaceDenis Pynkin2020-03-251-22/+8
| | | | | | Add the documentation for all public functions. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
* lib/sign: add ostree_seign_clear_keys functionDenis Pynkin2020-03-251-0/+6
| | | | | | Add the function for implicit cleanup of all loaded keys. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
* lib/sign: public API optimisationDenis Pynkin2020-03-251-20/+9
| | | | | | | | Removed from public `ostree_sign_detached_metadata_append` function. Renamed `metadata_verify` into `data_verify` to fit to real functionality. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
* sign: fix memory leaks and code cleanupDenis Pynkin2020-03-251-5/+5
| | | | | | | | Return `const char *` instead of copy of the string -- this allow to avoid unneeded copying and memory leaks in some constructions. Minor code cleanup and optimisations. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
* sign: API changes for public keys and CLI keys formatDenis Pynkin2020-03-251-2/+11
| | | | | | | | | | | API changes: - added function `ostree_sign_add_pk()` for multiple public keys using. - `ostree_sign_set_pk()` now substitutes all previously added keys. - added function `ostree_sign_load_pk()` allowed to load keys from file. - `ostree_sign_ed25519_load_pk()` able to load the raw keys list from file. - use base64 encoded public and private ed25519 keys for CLI and keys file. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
* lib/sign: initial implementationDenis Pynkin2020-03-251-0/+156
Added the initial version of signing interface allowing to allowing to sign and verify commits. Implemented initial signing modules: - dummy -- simple module allowing to sign/verify with ASCII string - ed25519 -- module allowing to sign/verify commit with ed25519 (EdDSA) signature scheme provided by libsodium library. Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>