[PATCH] MD5: NGX_HAVE_OPENSSL_MD5_H implies OpenSSL-style function names

Maxim Dounin mdounin at mdounin.ru
Sat Nov 7 04:09:29 UTC 2015


Hello!

On Fri, Nov 06, 2015 at 06:43:20PM -0800, Piotr Sikora wrote:

> # HG changeset patch
> # User Piotr Sikora <piotrsikora at google.com>
> # Date 1446864006 28800
> #      Fri Nov 06 18:40:06 2015 -0800
> # Node ID bfd17e00b5cf13df79c4212a1fca6a1bedd66168
> # Parent  22f0e600de213b579ca921cce8f1a50b0a5c454e
> MD5: NGX_HAVE_OPENSSL_MD5_H implies OpenSSL-style function names.

As of now this implication is localized in auto/lib/md5/conf, and 
I see no reasons to propagate this knowledge into the code.

> 
> Signed-off-by: Piotr Sikora <piotrsikora at google.com>
> 
> diff -r 22f0e600de21 -r bfd17e00b5cf src/core/ngx_md5.h
> --- a/src/core/ngx_md5.h
> +++ b/src/core/ngx_md5.h
> @@ -25,7 +25,7 @@
>  typedef MD5_CTX  ngx_md5_t;
>  
>  
> -#if (NGX_OPENSSL_MD5)
> +#if (NGX_HAVE_OPENSSL_MD5_H || NGX_OPENSSL_MD5)
>  
>  #define ngx_md5_init    MD5_Init
>  #define ngx_md5_update  MD5_Update
> 
> _______________________________________________
> nginx-devel mailing list
> nginx-devel at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx-devel mailing list