]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix --disable-crypto build
authorSteffan Karger <steffan@karger.me>
Fri, 5 Oct 2018 13:58:49 +0000 (15:58 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 5 Oct 2018 14:30:09 +0000 (16:30 +0200)
Commit d2ff5164 was fine for the master branch, but broke the 2.4 build if
the --disable-crypto configure options was used (which is removed in the
master branch).

Signed-off-by: Steffan Karger <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20181005135849.28718-1-steffan@karger.me>
URL: https://www.mail-archive.com/search?l=mid&q=20181005135849.28718-1-steffan@karger.me
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/init.c

index 0950f07e957bd40f3039cc1c5d4d87874645a5fd..2d201c44ad3eee669cfc816f34d3f3aab6335ac6 100644 (file)
@@ -621,9 +621,11 @@ uninit_proxy(struct context *c)
 static void
 do_set_ncp_options(struct context *c)
 {
+#ifdef ENABLE_CRYPTO
     c->c1.ciphername = c->options.ciphername;
     c->c1.authname = c->options.authname;
     c->c1.keysize = c->options.keysize;
+#endif ENABLE_CRYPTO
 }
 
 /*
@@ -635,9 +637,11 @@ do_set_ncp_options(struct context *c)
 static void
 do_unset_ncp_options(struct context *c)
 {
+#ifdef ENABLE_CRYPTO
     c->options.ciphername = c->c1.ciphername;
     c->options.authname = c->c1.authname;
     c->options.keysize = c->c1.keysize;
+#endif ENABLE_CRYPTO
 }
 
 void