Browse code

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

james authored on 2005/12/24 02:29:22
Showing 1 changed files
... ...
@@ -1696,7 +1696,11 @@ do_option_warnings (struct context *c)
1696 1696
    {
1697 1697
     if (!o->persist_tun)
1698 1698
      msg (M_WARN, "WARNING: you are using user/group/chroot without persist-tun -- this may cause restarts to fail");
1699
-    if (!o->persist_key && !o->pkcs11_id)
1699
+    if (!o->persist_key
1700
+#ifdef ENABLE_PKCS11
1701
+	&& !o->pkcs11_id
1702
+#endif
1703
+	)
1700 1704
      msg (M_WARN, "WARNING: you are using user/group/chroot without persist-key -- this may cause restarts to fail");
1701 1705
    }
1702 1706