Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Configure: remove redundant NGX_OPENSSL

Piotr Sikora
October 26, 2015 05:46PM
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.

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.

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

Best regards,
Piotr Sikora

_______________________________________________
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 272 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 292 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: 131
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