Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Configure: remove redundant NGX_OPENSSL

Maxim Dounin
October 26, 2015 09:42PM
Hello!

On Mon, Oct 26, 2015 at 02:45:28PM -0700, Piotr Sikora wrote:

> Hey Maxim,
>
> > The NGX_SSL and NGX_OPENSSL macros are distinct as a result of an
> > attempt to allow using different SSL libraries by introducing an
> > abstraction ngx_ssl_* layer. I don't think removing this
> > distinction is a good idea.
>
> They aren't distinct in the current implementation:
> - both are defined at the same time in autotools and there is no way
> to get one defined, but not the other,
> - source code requires you to have either none or both defined,
> otherwise build fails,
> - call to abstract ngx_ssl_init() is guarded by NGX_OPENSSL, but it
> should be guarded by NGX_SSL,
> - OpenSSL is the only ngx_ssl_* implementation.

Both are defined at the same time now, as the only SSL library
supported is OpenSSL. They are still distinct on semantic level
though.

> So, unless there are immediate plans for adding support to other SSL
> libraries, I think that they are redundant and NGX_OPENSSL should be
> removed.

There are no immediate plans to add support for other SSL
libraries, as well as no plans to remove the bits we
already have.

> In any case, at least the NGX_OPENSSL around ngx_ssl_init() should be
> replaced with NGX_SSL.

If you want to improve ngx_ssl_* abstraction layer there are lots
of places to work on.

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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Configure: remove redundant NGX_OPENSSL

Piotr Sikora 683 October 24, 2015 07:28PM

Re: [PATCH] Configure: remove redundant NGX_OPENSSL

Maxim Dounin 271 October 26, 2015 09:00AM

Re: [PATCH] Configure: remove redundant NGX_OPENSSL

Piotr Sikora 262 October 26, 2015 05:46PM

Re: [PATCH] Configure: remove redundant NGX_OPENSSL

Maxim Dounin 291 October 26, 2015 09:42PM

Re: [PATCH] Configure: remove redundant NGX_OPENSSL

Piotr Sikora 301 November 06, 2015 08:46PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 147
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready