diff options
author | Denis Pynkin <denis.pynkin@collabora.com> | 2019-05-21 01:35:25 +0300 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-08-01 02:06:47 +0000 |
commit | 0108e9ea4977ac730b5064b8198fe0ffd74df767 (patch) | |
tree | 558492822515c22316a04d06c2d6a8a521882813 /src/ostree/ot-builtins.h | |
parent | e187f240fc399f8d9d769cec631e1d046e065066 (diff) | |
download | ostree-0108e9ea4977ac730b5064b8198fe0ffd74df767.tar.gz |
gpg: conditionally build GPG-related code for sign/verification
Do not build the code related to GPG sign and verification if
GPGME support is disabled.
Public functions return error 'G_IO_ERROR_NOT_SUPPORTED' in case if
gpg-related check is rquested.
Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Closes: #1889
Approved by: cgwalters
Diffstat (limited to 'src/ostree/ot-builtins.h')
-rw-r--r-- | src/ostree/ot-builtins.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ostree/ot-builtins.h b/src/ostree/ot-builtins.h index 7a7d41bc..12a99b45 100644 --- a/src/ostree/ot-builtins.h +++ b/src/ostree/ot-builtins.h @@ -41,7 +41,9 @@ BUILTINPROTO(diff); BUILTINPROTO(export); BUILTINPROTO(find_remotes); BUILTINPROTO(create_usb); +#ifndef OSTREE_DISABLE_GPGME BUILTINPROTO(gpg_sign); +#endif BUILTINPROTO(init); BUILTINPROTO(log); BUILTINPROTO(pull); |