]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Some PKCS11-related code wasn't properly #ifdefed.
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 23 Dec 2005 17:29:22 +0000 (17:29 +0000)
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>
Fri, 23 Dec 2005 17:29:22 +0000 (17:29 +0000)
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@860 e7ae566f-a301-0410-adde-c780ea21d3b5

init.c

diff --git a/init.c b/init.c
index 930d2208aa95e1bd5a05f2f973c42bfd53eb499b..8123362163933c9784db892fe0d71e780df2a840 100644 (file)
--- 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");
    }