Am 07.07.2011 10:19, schrieb Adriaan de Jong:
>  - Renamed struct entries to explicitly show them as disabled
>  - Added a warning if USE_SSL is enabled, but neither ssl_verify_openssl.h or 
> ssl_verify_polarssl.h is included
>  - If neither of those files is included, disable ssl support for a plugin 
> including openvpn-plugin.h

This arrived later, but does address my earlier concern.

>  #else
> -  int current_cert_depth; /* Unused, for compatibility purposes only */
> -  void *current_cert; /* Unused, for compatibility purposes only */
> +  int __current_cert_depth_disabled; /* Unused, for compatibility purposes 
> only */
> +  void *__current_cert_disabled; /* Unused, for compatibility purposes only 
> */
>  #endif
>  };
>  
> diff --git a/plugin.c b/plugin.c
> index 331671c..dc581a4 100644
> --- a/plugin.c
> +++ b/plugin.c
> @@ -379,8 +379,8 @@ plugin_call_item (const struct plugin *p,
>                                                   .current_cert_depth = 
> (current_cert ? certdepth : -1),
>                                                   .current_cert = current_cert
>  #else
> -                                                 .current_cert_depth = -1,
> -                                                 .current_cert = NULL
> +                                                 
> .__current_cert_depth_disabled = -1,
> +                                                 .__current_cert_disabled = 
> NULL
>  #endif


Reply via email to