aboutsummaryrefslogtreecommitdiff
path: root/src/openvpn/multi.c
diff options
context:
space:
mode:
authorArne Schwabe2021-03-10 11:28:23 +0100
committerGert Doering2021-03-10 11:33:25 +0100
commitd8ed59320e619eb5c9e5ba2acbac1a4fecae36b1 (patch)
tree6af2a8906df01e97931012ec6482c243250a3f4a /src/openvpn/multi.c
parent88664aba69a8aab0e600200c445024fbaf7bab80 (diff)
downloadopenvpn-d8ed59320e619eb5c9e5ba2acbac1a4fecae36b1.zip
openvpn-d8ed59320e619eb5c9e5ba2acbac1a4fecae36b1.tar.gz
Change parameter of send_auth_pending_messages from context to tls_multi
This prepares send_auth_pending_messages to be used a in context that does not have context c available but also does not need to schedule an immediate sending of the message (auth plugin/script) Patch V2: Adjust the comment of reschedule_multi_process to actually fit a function. Patch V3: Rebase needed because v3 of 3/11 Patch V4: Send with push.h prototype Signed-off-by: Arne Schwabe <arne@rfc2549.org> Acked-by: Lev Stipakov <lstipakov@gmail.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <20210310102823.29508-1-arne@rfc2549.org> URL: https://www.mail-archive.com/search?l=mid&q=20210310102823.29508-1-arne@rfc2549.org Signed-off-by: Gert Doering <gert@greenie.muc.de>
Diffstat (limited to 'src/openvpn/multi.c')
-rw-r--r--src/openvpn/multi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c
index ac5d3f5..d10f188 100644
--- a/src/openvpn/multi.c
+++ b/src/openvpn/multi.c
@@ -3904,7 +3904,9 @@ management_client_pending_auth(void *arg,
if (mi)
{
/* sends INFO_PRE and AUTH_PENDING messages to client */
- bool ret = send_auth_pending_messages(&mi->context, extra, timeout);
+ bool ret = send_auth_pending_messages(mi->context.c2.tls_multi, extra,
+ timeout);
+ reschedule_multi_process(&mi->context);
multi_schedule_context_wakeup(m, mi);
return ret;
}