diff options
| author | Michael Forney <mforney@mforney.org> | 2020-10-02 14:55:31 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-10-02 14:55:31 -0700 |
| commit | ce189763b6be8651daead037f020988e456a0ae7 (patch) | |
| tree | a2b4647a7b746cad3056327672c4cb89511e188e | |
| parent | c0226113bdd93e737e5a810d4cc7943ad33ca83e (diff) | |
pounce: Update to 2.0
| -rw-r--r-- | .gitmodules | 1 | ||||
| -rw-r--r-- | pkg/pounce/gen.lua | 2 | ||||
| -rw-r--r-- | pkg/pounce/patch/0001-Switch-back-to-arc4random_buf.patch | 57 | ||||
| m--------- | pkg/pounce/src | 0 | ||||
| -rw-r--r-- | pkg/pounce/ver | 2 |
5 files changed, 3 insertions, 59 deletions
diff --git a/.gitmodules b/.gitmodules index a6c69dc2..9313b607 100644 --- a/.gitmodules +++ b/.gitmodules @@ -263,7 +263,6 @@ [submodule "pkg/pounce/src"] path = pkg/pounce/src url = https://git.causal.agency/pounce - ignore = all [submodule "pkg/qbe/src"] path = pkg/qbe/src url = git://c9x.me/qbe.git diff --git a/pkg/pounce/gen.lua b/pkg/pounce/gen.lua index 9a15fc37..af68949b 100644 --- a/pkg/pounce/gen.lua +++ b/pkg/pounce/gen.lua @@ -8,12 +8,14 @@ pkg.deps = {'pkg/libtls-bearssl/headers'} exe('pounce', { 'bounce.c', + 'cert.c', 'client.c', 'config.c', 'local.c', 'ring.c', 'server.c', 'state.c', + 'xdg.c', '$builddir/pkg/libtls-bearssl/libtls.a.d', }) file('bin/pounce', '755', '$outdir/pounce') diff --git a/pkg/pounce/patch/0001-Switch-back-to-arc4random_buf.patch b/pkg/pounce/patch/0001-Switch-back-to-arc4random_buf.patch deleted file mode 100644 index 9f1a3123..00000000 --- a/pkg/pounce/patch/0001-Switch-back-to-arc4random_buf.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 8482f0d8fb9196755bcbe3466ac592f94e78345a Mon Sep 17 00:00:00 2001 -From: Michael Forney <mforney@mforney.org> -Date: Fri, 14 Aug 2020 00:15:58 -0700 -Subject: [PATCH] Switch back to arc4random_buf - -This partially reverts commit 04ad4ecc7b4b5db1bbe10372a6820ed88e2799e8. ---- - bounce.c | 9 +++------ - configure | 2 +- - 2 files changed, 4 insertions(+), 7 deletions(-) - -diff --git a/bounce.c b/bounce.c -index 8f8d38f..21dddce 100644 ---- a/bounce.c -+++ b/bounce.c -@@ -31,7 +31,6 @@ - #include <fcntl.h> - #include <getopt.h> - #include <limits.h> --#include <openssl/rand.h> - #include <poll.h> - #include <pwd.h> - #include <signal.h> -@@ -61,14 +60,12 @@ - bool verbose; - - static void hashPass(void) { -+ void arc4random_buf(void *, size_t); -+ char *pass = getpass("Password: "); - byte rand[12]; -- int n = RAND_bytes(rand, sizeof(rand)); -- if (n < 1) errx(EX_OSERR, "RAND_bytes failure"); -- -+ arc4random_buf(rand, sizeof(rand)); - char salt[3 + BASE64_SIZE(sizeof(rand))] = "$6$"; - base64(&salt[3], rand, sizeof(rand)); -- -- char *pass = getpass("Password: "); - printf("%s\n", crypt(pass, salt)); - } - -diff --git a/configure b/configure -index 5911471..0fe0f97 100755 ---- a/configure -+++ b/configure -@@ -32,7 +32,7 @@ done - - case "$(uname)" in - (FreeBSD) -- ldlibs -lcrypt -lcrypto -+ ldlibs -lcrypt - config libtls - defstr OPENSSL_BIN /usr/bin/openssl - defstr CERTBOT_PATH /usr/local/etc/letsencrypt --- -2.28.0 - diff --git a/pkg/pounce/src b/pkg/pounce/src -Subproject db0edeeb5d2120431792736ff3b30b7c49e14ea +Subproject 7213c6aabdd2f62fda2e3a01fa912b8c1a5de69 diff --git a/pkg/pounce/ver b/pkg/pounce/ver index 24aaacf4..5eb43529 100644 --- a/pkg/pounce/ver +++ b/pkg/pounce/ver @@ -1 +1 @@ -1.4p2 r0 +2.0 r0 |
