[Openvpn-devel] [PATCH] ssl_verify: define label only when required

2018-08-14 Thread Antonio Quartulli
The "cleanup" label in ssl_verify.c:verify_user_pass_plugin() is used only when PLUGIN_DEF_AUTH is defined, therefore make the label definition dependent on the same define. At the moment, gcc throws an error for unused label if PLUGIN_DEF_AUTH is not defined. Signed-off-by: Antonio Quartulli --

Re: [Openvpn-devel] [PATCH] ssl_verify: define label only when required

2018-08-14 Thread Antonio Quartulli
Hi, On 15/08/18 13:15, Antonio Quartulli wrote: > The "cleanup" label in ssl_verify.c:verify_user_pass_plugin() is used > only when PLUGIN_DEF_AUTH is defined, therefore make the label > definition dependent on the same define. > > At the moment, gcc throws an error for unused label if PLUGIN_DEF

Re: [Openvpn-devel] [PATCH] ssl_verify: define label only when required

2018-08-14 Thread Antonio Quartulli
On 15/08/18 13:32, Antonio Quartulli wrote: > Hi, > > On 15/08/18 13:15, Antonio Quartulli wrote: >> The "cleanup" label in ssl_verify.c:verify_user_pass_plugin() is used >> only when PLUGIN_DEF_AUTH is defined, therefore make the label >> definition dependent on the same define. >> >> At the mo

[Openvpn-devel] [PATCH v2] ssl_verify: define label only when required

2018-08-14 Thread Antonio Quartulli
The "cleanup" label in ssl_verify.c:verify_user_pass_plugin() is used only when PLUGIN_DEF_AUTH is defined, therefore make the label definition dependent on the same define. Fixes the following warning when PLUGIN_DEF_AUTH is not defined: ssl_verify.c: In function 'verify_user_pass_plugin': ssl_v