Re: [Openvpn-devel] [PATCH 2/2 v4] add API for plug-ins to write to openvpn log

2012-08-02 Thread Alon Bar-Lev
Thanks, although I think the extra macro is not required. Last thing I see is that you need to #include as va_list is used. And last style comment, I don't think use of enum for bit fields is common, better to simply #define the constants. On Thu, Aug 2, 2012 at 6:20 PM, Heiko Hund

[Openvpn-devel] [PATCH 2/2 v4] add API for plug-ins to write to openvpn log

2012-08-02 Thread Heiko Hund
Some plugins want to add messages to the openvpn log file. The plugin_log() and plugin_vlog() APIs provide ways for them to do so. OPENVPN_PLUGINv3_STRUCTVER is not incremented as the v3 plugin API is new in 2.3 and this is merged during alpha phase. Signed-off-by: Heiko Hund

Re: [Openvpn-devel] [PATCH 1/4] Fixes error: --key fails with EXTERNAL_PRIVATE_KEY: No such file or directory if --management-external-key is used

2012-08-02 Thread Gert Doering
Hi, On Thu, Aug 02, 2012 at 03:37:48PM +0200, Arne Schwabe wrote: > Warn if both options are used at the same time. > > Signed-off-by: Arne Schwabe ACK on v2 of 1/4. Same effect, less complications. gert -- USENET is *not* the non-clickable part of WWW!

Re: [Openvpn-devel] [PATCH 3/4] Merge almost identical create_socket_tcp and create_socket_tcp6

2012-08-02 Thread Gert Doering
Hi, On Thu, Aug 02, 2012 at 03:36:59PM +0200, Arne Schwabe wrote: > Signed-off-by: Arne Schwabe > --- > src/openvpn/manage.c |4 ++-- > src/openvpn/socket.c | 53 > +++--- > src/openvpn/socket.h |2 +- > 3 files changed,

[Openvpn-devel] [PATCH 1/4] Fixes error: --key fails with EXTERNAL_PRIVATE_KEY: No such file or directory if --management-external-key is used

2012-08-02 Thread Arne Schwabe
Warn if both options are used at the same time. Signed-off-by: Arne Schwabe --- src/openvpn/options.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 9f4ddbb..39dceb8 100644 ---

[Openvpn-devel] [PATCH 3/4] Merge almost identical create_socket_tcp and create_socket_tcp6

2012-08-02 Thread Arne Schwabe
Signed-off-by: Arne Schwabe --- src/openvpn/manage.c |4 ++-- src/openvpn/socket.c | 53 +++--- src/openvpn/socket.h |2 +- 3 files changed, 10 insertions(+), 49 deletions(-) diff --git a/src/openvpn/manage.c

[Openvpn-devel] [PATCH 2/2 v3] add API for plug-ins to write to openvpn log

2012-08-02 Thread Heiko Hund
Some plugins want to add messages to the openvpn log file. The plugin_log() and plugin_vlog() APIs provide ways for them to do so. Signed-off-by: Heiko Hund --- Changes since PATCH 2/2 v2.2: * add plugin_vlog() API which takes a va_list * pass struct

Re: [Openvpn-devel] [PATCH 2/2 v2.2] add plugin_log() API to write to openvpn log

2012-08-02 Thread Alon Bar-Lev
And export vprintf variant as well, to allow wrapper. On Thu, Aug 2, 2012 at 1:02 PM, Alon Bar-Lev wrote: > This is how it should be done, no games with symbols and linkage. > > Please add printf style pragmas to the function. > > On Thu, Aug 2, 2012 at 12:53 PM, Heiko

[Openvpn-devel] [PATCH 2/2 v2.2] add plugin_log() API to write to openvpn log

2012-08-02 Thread Heiko Hund
Some plugins want to add messages to the openvpn log file. The plugin_log() API provides a way for them to do so. Signed-off-by: Heiko Hund --- This is the second variant of PATCH 2/2 that deals with the fact that the original plugin_log() approach was not working on

[Openvpn-devel] [PATCH 2/2 v2.1] add plugin_log() API to write to openvpn log

2012-08-02 Thread Heiko Hund
Some plugins want to add messages to the openvpn log file. The plugin_log() API provides a way for them to do so. Signed-off-by: Heiko Hund --- This is the first variant of PATCH 2/2 that deals with the fact that the original plugin_log() approach was not working on