This directory contains the source code of a C shared library
(libpodman_sequoia.so
) that enables to use sequoia-pgp as a signing
backend.
For building, you need rustc (version 1.79 or later), cargo, and
openssl-devel. For testing, you also need the sq
command (version
1.3.0 or later).
To build the shared library and bindings on Linux, do:
$ PREFIX=/usr LIBDIR="\${prefix}/lib64" cargo build --release
On macOS, prefix the command with one more value:
$ DYLD_FALLBACK_LIBRARY_PATH="$(xcode-select --print-path)/Toolchains/XcodeDefault.xctoolchain/usr/lib/" PREFIX=…
Just copy the shared library in the library search path:
$ sudo cp -a rust/target/release/libpodman_sequoia.* /usr/lib64
To test, in the top-level directory of containers image, do:
$ LD_LIBRARY_PATH=$PWD/signature/internal/sequoia/rust/target/release \
make BUILDTAGS=containers_image_sequoia
Apache License 2.0
SPDX-License-Identifier: Apache-2.0