From b29ad4a5696aa1cbf85b77ae64c99865e57d2d6b Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 30 Sep 2024 01:39:13 +0200 Subject: Add sopv support This is a subset of the Stateless OpenPGP CLI , that can easily replace the GnuPG usage. There are multiple implementations providing this interface. --- plugins/curl | 6 +++++- plugins/rsync | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/curl b/plugins/curl index 29c0ace..3ae028c 100755 --- a/plugins/curl +++ b/plugins/curl @@ -14,7 +14,11 @@ set -e if [ "${SIGURL}" ]; then curl -fRz "./current" -m 300 ${CURL_OPTIONS} -o new.sig "${SIGURL}" -o new "${URL}" [ -e new ] || exit 0 - gpgv --keyring "${KEYRING}" --status-fd 2 new.sig new || exit 1 + if command -v sopv >/dev/null; then + sopv verify new.sig "${KEYRING}" /dev/null; then + sopv verify new.sig "${KEYRING}"