On 13/06/2019 16:41, Arne Schwabe wrote: > OpenVPN out of band and auth pending authentication implements these > messages to send information during the authentication to the UI, > implement these message also in OpenVPN 2.x to be able to be piked up > by the UI > > Signed-off-by: Arne Schwabe <a...@rfc2549.org> > --- > src/openvpn/forward.c | 8 ++++++++ > src/openvpn/push.c | 33 +++++++++++++++++++++++++++++++++ > src/openvpn/push.h | 3 +++ > 3 files changed, 44 insertions(+) > [...snip...] > diff --git a/src/openvpn/push.c b/src/openvpn/push.c > index 8befc6f5..8632a9bb 100644 > --- a/src/openvpn/push.c > +++ b/src/openvpn/push.c > @@ -176,6 +176,39 @@ server_pushed_signal(struct context *c, const struct > buffer *buffer, const bool > } > } > > +void > +server_pushed_info(struct context *c, const struct buffer *buffer, > + const int adv) > +{ > + const char *m = ""; > + struct buffer buf = *buffer; > + > + if (buf_advance(&buf, adv) && buf_read_u8(&buf) == ',' && BLEN(&buf)) > + { > + m = BSTR(&buf); > + } > + > + #ifdef ENABLE_MANAGEMENT
This looks good, but the indenting of the #ifdef above is wrong; it should be at the beginning of the line. -- kind regards, David Sommerseth OpenVPN Inc _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel