summary refs log tree commit diff
path: root/bounce.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-01 19:20:23 -0500
committerJune McEnroe <june@causal.agency>2020-03-01 21:14:52 -0500
commitc876c88c2ac74255fa402c441343e8314d1fff8f (patch)
treee6420b0a64c4e8ef9709d129b3ce2a11b484602a /bounce.c
parentAdvertise STS policy (diff)
downloadpounce-c876c88c2ac74255fa402c441343e8314d1fff8f.tar.gz
pounce-c876c88c2ac74255fa402c441343e8314d1fff8f.zip
Replace .mk files with configure script
Copied and expanded from catgirl.
Diffstat (limited to '')
-rw-r--r--bounce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bounce.c b/bounce.c
index efcc59d..604830a 100644
--- a/bounce.c
+++ b/bounce.c
@@ -58,7 +58,7 @@ static void genKey(const char *path) {
 	char subj[256];
 	snprintf(subj, sizeof(subj), "/CN=%.*s", (int)strcspn(name, "."), name);
 	execlp(
-		LIBRESSL_BIN_PREFIX "openssl", "openssl", "req",
+		OPENSSL_BIN, "openssl", "req",
 		"-x509", "-new", "-newkey", "rsa:4096", "-sha256", "-days", "3650",
 		"-nodes", "-subj", subj, "-keyout", path,
 		NULL
@@ -97,7 +97,7 @@ static void genCert(const char *path, const char *ca) {
 	close(rw[1]);
 	redir(STDIN_FILENO, rw[0]);
 	execlp(
-		LIBRESSL_BIN_PREFIX "openssl", "openssl", "x509",
+		OPENSSL_BIN, "openssl", "x509",
 		"-CA", ca, "-CAcreateserial", "-days", "3650",
 		NULL
 	);