Hello, I am pondering about asynchronous OPENVPN_PLUGIN_CLIENT_CONNECT callback. Basically, I want _not_ to establish connection until response is received and ofcI don't want to block rest of traffic.
My idea is to have some kind of connect_control_file (similar to auth_conrol_file) and pass its path via env to OPENVPN_PLUGIN_CLIENT_CONNECT. In case of plugin (or maybe script too?) has returned OPENVPN_PLUGIN_FUNC_DEFERRED, I continue executing "multi_connection_established" as usual except I don't set "push_reply_deferred" to False (to prevent push response from being sent) and I set some "connect-deferred" flag. Next, when "process_incoming_push_msg" get called and flag "connect-deferred" is set, I check the state of connect_control_file. If there is, say, "1" - I send push reply and connection got established. What do you think about that? Does that approach sound reasonable? -- -Lev