functions. config_setpfkey() is always called with id PROC_IKEV2.
-/* $OpenBSD: config.c,v 1.77 2021/02/13 16:14:12 tobhe Exp $ */
+/* $OpenBSD: config.c,v 1.78 2021/02/22 21:58:12 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
}
int
-config_setpfkey(struct iked *env, enum privsep_procid id)
+config_setpfkey(struct iked *env)
{
int s;
if ((s = pfkey_socket()) == -1)
return (-1);
- proc_compose_imsg(&env->sc_ps, id, -1,
+ proc_compose_imsg(&env->sc_ps, PROC_IKEV2, -1,
IMSG_PFKEY_SOCKET, -1, s, NULL, 0);
return (0);
}
-/* $OpenBSD: iked.c,v 1.54 2021/02/13 16:14:12 tobhe Exp $ */
+/* $OpenBSD: iked.c,v 1.55 2021/02/22 21:58:12 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
}
env->sc_pfkey = -1;
- config_setpfkey(env, PROC_IKEV2);
+ config_setpfkey(env);
/* Send private and public keys to cert after forking the children */
if (config_setkeys(env) == -1)
-/* $OpenBSD: iked.h,v 1.185 2021/02/13 16:14:12 tobhe Exp $ */
+/* $OpenBSD: iked.h,v 1.186 2021/02/22 21:58:12 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
enum privsep_procid);
int config_getsocket(struct iked *env, struct imsg *,
void (*cb)(int, short, void *));
-int config_setpfkey(struct iked *, enum privsep_procid);
+int config_setpfkey(struct iked *);
int config_getpfkey(struct iked *, struct imsg *);
int config_setuser(struct iked *, struct iked_user *, enum privsep_procid);
int config_getuser(struct iked *, struct imsg *);