security/openiked-portable: fix certs location path
PR: 286189
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
PORTNAME= openiked
|
||||
DISTVERSION= 7.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security net
|
||||
MASTER_SITES= OPENBSD/OpenIKED
|
||||
PKGNAMESUFFIX= -portable
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--- ikectl/ikeca.c.orig 2025-04-17 19:27:59 UTC
|
||||
--- ikectl/ikeca.c.orig 2025-04-09 19:47:21 UTC
|
||||
+++ ikectl/ikeca.c
|
||||
@@ -47,8 +47,11 @@
|
||||
#define SSLDIR PREFIX "/etc/ssl"
|
||||
@@ -14,3 +14,12 @@
|
||||
#define KEYBASE PREFIX "/etc/iked"
|
||||
#ifndef EXPDIR
|
||||
#define EXPDIR PREFIX "/usr/share/iked"
|
||||
@@ -1118,7 +1121,7 @@ ca_setup(char *caname, int create, int quiet, char *pa
|
||||
err(1, "calloc");
|
||||
|
||||
ca->caname = strdup(caname);
|
||||
- len = snprintf(ca->sslpath, sizeof(ca->sslpath), SSLDIR "/%s", caname);
|
||||
+ len = snprintf(ca->sslpath, sizeof(ca->sslpath), CADIR "/%s", caname);
|
||||
if (len < 0 || (size_t)len >= sizeof(ca->sslpath))
|
||||
err(1, "%s: snprintf", __func__);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user