tang: tang-show-keys uses wget instead of curl
authorNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Wed, 30 Aug 2023 08:49:35 +0000 (10:49 +0200)
committerNikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
Wed, 30 Aug 2023 08:53:01 +0000 (10:53 +0200)
Resolves: #15592

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
utils/tang/Makefile
utils/tang/patches/100-tang-show-keys-use-wget.patch [new file with mode: 0644]

index 64a43804ac7c0bb45eb7e50ff06811d9800e699e..a93a6d84dd86b8ca3833004bae8b5500ae4152ec 100644 (file)
@@ -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 (file)
index 0000000..10f5c6d
--- /dev/null
@@ -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- \