Skip to content

Commit

Permalink
_dl.sh: cleanup after deleting openpgp.org key server [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Mar 18, 2024
1 parent a4f2b8f commit 702b9ee
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions _dl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ cat <<EOF
"sig": "https://github.com/ngtcp2/ngtcp2/releases/download/v{ver}/ngtcp2-{ver}.tar.xz.asc",
"redir": "redir",
"tag": ".+",
"keys": "https://keyserver.ubuntu.com/pks/lookup?op=get&options=mr&exact=on&search=0x516B622918D15C478AB1EA3A5339A2BE82E07DEC"
"keys": "516B622918D15C478AB1EA3A5339A2BE82E07DEC"
},
{
"name": "wolfssl",
Expand Down Expand Up @@ -384,11 +384,7 @@ EOF
fi
else
for key in ${keys}; do
if [[ "${key}" = 'https://'* ]]; then
my_curl "${key}" | my_gpg --quiet --import >/dev/null 2>&1
else
gpg_recv_key "${key}" >/dev/null 2>&1
fi
gpg_recv_key "${key}" >/dev/null 2>&1
done

if my_gpg --verify-options show-primary-uid-only --verify pkg.sig pkg.bin >/dev/null 2>&1; then
Expand Down Expand Up @@ -623,11 +619,7 @@ EOF
ssh-keygen -Y check-novalidate -n 'file' -f /dev/fd/3 -s pkg.sig < pkg.bin || exit 1
else
for key in ${keys}; do
if printf '%s' "${key}" | grep -q -a '^https://'; then
my_curl "${key}" | my_gpg --quiet --import 2>/dev/null
else
gpg_recv_key "${key}"
fi
gpg_recv_key "${key}"
done
my_gpg --verify-options show-primary-uid-only --verify pkg.sig pkg.bin || exit 1
fi
Expand Down

0 comments on commit 702b9ee

Please sign in to comment.