diff options
author | Tobias Heider <tobhe@cvs.openbsd.org> | 2024-02-06 13:10:57 +0000 |
---|---|---|
committer | Tobias Heider <tobhe@cvs.openbsd.org> | 2024-02-06 13:10:57 +0000 |
commit | 430551fe38fe144c437dff1db5ab3c1e49660974 (patch) | |
tree | 866674089860a73fb0a8cf3c6a2c6bbcdf67e8b3 /sbin | |
parent | a6e63c83b9efd11e385a7caa87d94220ac92bf15 (diff) |
Pass struct iked directly to ca_reset() instead of passing it via ps
discussed with markus@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/iked/ca.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/iked/ca.c b/sbin/iked/ca.c index 8c1cdd21848..8eb9de5374e 100644 --- a/sbin/iked/ca.c +++ b/sbin/iked/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.99 2024/01/24 10:09:07 tobhe Exp $ */ +/* $OpenBSD: ca.c,v 1.100 2024/02/06 13:10:56 tobhe Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> @@ -46,7 +46,7 @@ void ca_run(struct privsep *, struct privsep_proc *, void *); void ca_shutdown(void); -void ca_reset(struct privsep *); +void ca_reset(struct iked *); int ca_reload(struct iked *); int ca_cert_local(struct iked *, X509 *); @@ -175,9 +175,8 @@ ca_getkey(struct privsep *ps, struct iked_id *key, enum imsg_type type) } void -ca_reset(struct privsep *ps) +ca_reset(struct iked *env) { - struct iked *env = iked_env; struct ca_store *store = env->sc_priv; if (store->ca_privkey.id_type == IKEV2_ID_NONE || @@ -338,7 +337,7 @@ ca_dispatch_parent(int fd, struct privsep_proc *p, struct imsg *imsg) memcpy(&mode, imsg->data, sizeof(mode)); if (mode == RESET_ALL || mode == RESET_CA) { log_debug("%s: config reset", __func__); - ca_reset(&env->sc_ps); + ca_reset(env); } break; case IMSG_OCSP_FD: |