3 @@ -1337,7 +1337,11 @@ do_route (const struct options *options,
5 if (plugin_defined (plugins, OPENVPN_PLUGIN_ROUTE_UP))
7 - if (plugin_call (plugins, OPENVPN_PLUGIN_ROUTE_UP, NULL, NULL, es) != OPENVPN_PLUGIN_FUNC_SUCCESS)
8 + if (plugin_call (plugins, OPENVPN_PLUGIN_ROUTE_UP, NULL, NULL, es
12 + ) != OPENVPN_PLUGIN_FUNC_SUCCESS)
13 msg (M_WARN, "WARNING: route-up plugin call failed");
18 @@ -213,7 +213,11 @@ run_up_down (const char *command,
19 ifconfig_local, ifconfig_remote,
22 - if (plugin_call (plugins, plugin_type, &argv, NULL, es) != OPENVPN_PLUGIN_FUNC_SUCCESS)
23 + if (plugin_call (plugins, plugin_type, &argv, NULL, es
27 + ) != OPENVPN_PLUGIN_FUNC_SUCCESS)
28 msg (M_FATAL, "ERROR: up/down plugin call failed");
33 @@ -91,7 +91,11 @@ learn_address_script (const struct multi
34 mroute_addr_print (addr, &gc));
36 argv_printf_cat (&argv, "%s", tls_common_name (mi->context.c2.tls_multi, false));
37 - if (plugin_call (plugins, OPENVPN_PLUGIN_LEARN_ADDRESS, &argv, NULL, es) != OPENVPN_PLUGIN_FUNC_SUCCESS)
38 + if (plugin_call (plugins, OPENVPN_PLUGIN_LEARN_ADDRESS, &argv, NULL, es
42 + ) != OPENVPN_PLUGIN_FUNC_SUCCESS)
44 msg (M_WARN, "WARNING: learn-address plugin call failed");
46 @@ -476,7 +480,11 @@ multi_client_disconnect_script (struct m
48 if (plugin_defined (mi->context.plugins, OPENVPN_PLUGIN_CLIENT_DISCONNECT))
50 - if (plugin_call (mi->context.plugins, OPENVPN_PLUGIN_CLIENT_DISCONNECT, NULL, NULL, mi->context.c2.es) != OPENVPN_PLUGIN_FUNC_SUCCESS)
51 + if (plugin_call (mi->context.plugins, OPENVPN_PLUGIN_CLIENT_DISCONNECT, NULL, NULL, mi->context.c2.es
55 + ) != OPENVPN_PLUGIN_FUNC_SUCCESS)
56 msg (M_WARN, "WARNING: client-disconnect plugin call failed");
61 @@ -2117,7 +2117,11 @@ link_socket_connection_initiated (const
63 struct argv argv = argv_new ();
64 ipchange_fmt (false, &argv, info, &gc);
65 - if (plugin_call (info->plugins, OPENVPN_PLUGIN_IPCHANGE, &argv, NULL, es) != OPENVPN_PLUGIN_FUNC_SUCCESS)
66 + if (plugin_call (info->plugins, OPENVPN_PLUGIN_IPCHANGE, &argv, NULL, es
70 + ) != OPENVPN_PLUGIN_FUNC_SUCCESS)
71 msg (M_WARN, "WARNING: ipchange plugin call failed");
76 @@ -1939,7 +1939,11 @@ key_method_2_read (struct buffer *buf, s
78 if (ks->authenticated && plugin_defined (session->opt->plugins, OPENVPN_PLUGIN_TLS_FINAL))
80 - if (plugin_call (session->opt->plugins, OPENVPN_PLUGIN_TLS_FINAL, NULL, NULL, session->opt->es) != OPENVPN_PLUGIN_FUNC_SUCCESS)
81 + if (plugin_call (session->opt->plugins, OPENVPN_PLUGIN_TLS_FINAL, NULL, NULL, session->opt->es
85 + ) != OPENVPN_PLUGIN_FUNC_SUCCESS)
86 ks->authenticated = false;
91 @@ -563,7 +563,11 @@ pf_init_context (struct context *c)
93 setenv_str (c->c2.es, "pf_file", pf_file);
95 - if (plugin_call (c->plugins, OPENVPN_PLUGIN_ENABLE_PF, NULL, NULL, c->c2.es) == OPENVPN_PLUGIN_FUNC_SUCCESS)
96 + if (plugin_call (c->plugins, OPENVPN_PLUGIN_ENABLE_PF, NULL, NULL, c->c2.es
100 + ) == OPENVPN_PLUGIN_FUNC_SUCCESS)
102 event_timeout_init (&c->c2.pf.reload, 1, now);
103 c->c2.pf.filename = string_alloc (pf_file, NULL);
106 @@ -1029,7 +1029,11 @@ verify_user_pass_plugin (struct tls_sess
110 - retval = plugin_call (session->opt->plugins, OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY, NULL, NULL, session->opt->es);
111 + retval = plugin_call (session->opt->plugins, OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY, NULL, NULL, session->opt->es
117 #ifdef PLUGIN_DEF_AUTH
118 /* purge auth control filename (and file itself) for non-deferred returns */