Re: [Openvpn-devel] [PATCH] Ignore leading whitespace and comment lines for peer-fingerprint.

2021-05-18 Thread Gert Doering
Hi, On Tue, May 18, 2021 at 07:23:44PM -0400, Selva Nair wrote: > > while ((line = strsep(&lines, "\n"))) > > { > > -/* skip empty lines */ > > -if (strlen(line) == 0) > > + /* ignore leading whitespace */ > > + while(isspace(*line)) > > + { > > +

[Openvpn-devel] [PATCH] Ignore leading whitespace and comment lines for peer-fingerprint.

2021-05-18 Thread Gert Doering
Inline peer-fingerprint blocks can benefit from a bit of structuring by indentation or by putting comments ("# this is Alice's key"). v2: accept ';' and '#' as comment delimiter. Fix tab-indent. Signed-off-by: Gert Doering --- src/openvpn/options.c | 9 +++-- 1 file changed, 7 insertions(+

Re: [Openvpn-devel] [PATCH] Ignore leading whitespace and comment lines for peer-fingerprint.

2021-05-18 Thread Selva Nair
Hi, On Tue, May 18, 2021 at 10:33 AM Gert Doering wrote: > > Inline peer-fingerprint blocks can benefit from a bit of structuring > by indentation or by putting comments ("# this is Alice's key"). > > Signed-off-by: Gert Doering > --- > src/openvpn/options.c | 9 +++-- > 1 file changed, 7 i

[Openvpn-devel] [PATCH] Ignore leading whitespace and comment lines for peer-fingerprint.

2021-05-18 Thread Gert Doering
Inline peer-fingerprint blocks can benefit from a bit of structuring by indentation or by putting comments ("# this is Alice's key"). Signed-off-by: Gert Doering --- src/openvpn/options.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/openvpn/options.c b/src/ope