diff options
author | Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> | 2023-08-30 10:49:35 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> | 2023-08-30 10:53:01 +0200 |
commit | 148b1b2d5edaf75cc4c1e104bfb02dc35bcd7de4 (patch) | |
tree | cfd2383c94aee83d984b04d26ae16f46f82c55ac /utils/tang | |
parent | 3e38742aab2a250f1e12b559b964e2ed73248df4 (diff) |
tang: tang-show-keys uses wget instead of curl
Resolves: #15592
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Diffstat (limited to 'utils/tang')
-rw-r--r-- | utils/tang/Makefile | 2 | ||||
-rw-r--r-- | utils/tang/patches/100-tang-show-keys-use-wget.patch | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/utils/tang/Makefile b/utils/tang/Makefile index 64a43804a..a93a6d84d 100644 --- a/utils/tang/Makefile +++ b/utils/tang/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tang PKG_VERSION:=14 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://github.com/latchset/$(PKG_NAME)/releases/download/v$(PKG_VERSION)/ diff --git a/utils/tang/patches/100-tang-show-keys-use-wget.patch b/utils/tang/patches/100-tang-show-keys-use-wget.patch new file mode 100644 index 000000000..10f5c6db0 --- /dev/null +++ b/utils/tang/patches/100-tang-show-keys-use-wget.patch @@ -0,0 +1,13 @@ +diff --git a/src/tang-show-keys b/src/tang-show-keys +index 0c33c3a..f017e84 100755 +--- a/src/tang-show-keys ++++ b/src/tang-show-keys +@@ -27,7 +27,7 @@ fi + + port=${1-80} + +-adv=$(curl -sSf "localhost:$port/adv") ++adv=$(wget -qO- "http://127.0.0.1:$port/adv") + + THP_DEFAULT_HASH=S256 # SHA-256. + jose fmt --json "${adv}" -g payload -y -o- \ |