security/openiked-portable: fix certs location path

PR:		286189
This commit is contained in:
Philippe Audeoud 2025-04-22 08:04:20 +02:00
parent 3c6713efe5
commit 9d93540510
2 changed files with 11 additions and 1 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= openiked
DISTVERSION= 7.4
PORTREVISION= 1
CATEGORIES= security net
MASTER_SITES= OPENBSD/OpenIKED
PKGNAMESUFFIX= -portable

View file

@ -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__);