From 51b1d4c2b073576aea3be338e265fb26daa66289 Mon Sep 17 00:00:00 2001 From: james Date: Fri, 23 Dec 2005 17:29:22 +0000 Subject: Some PKCS11-related code wasn't properly #ifdefed. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@860 e7ae566f-a301-0410-adde-c780ea21d3b5 --- init.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'init.c') diff --git a/init.c b/init.c index 930d220..8123362 100644 --- a/init.c +++ b/init.c @@ -1696,7 +1696,11 @@ do_option_warnings (struct context *c) { if (!o->persist_tun) msg (M_WARN, "WARNING: you are using user/group/chroot without persist-tun -- this may cause restarts to fail"); - if (!o->persist_key && !o->pkcs11_id) + if (!o->persist_key +#ifdef ENABLE_PKCS11 + && !o->pkcs11_id +#endif + ) msg (M_WARN, "WARNING: you are using user/group/chroot without persist-key -- this may cause restarts to fail"); } -- cgit