]> git.kaiwu.me - nginx.git/commit
SSL: stop accessing SSL_SESSION's fields directly.
authorPiotr Sikora <piotr@cloudflare.com>
Sun, 6 Jul 2014 23:41:14 +0000 (16:41 -0700)
committerPiotr Sikora <piotr@cloudflare.com>
Sun, 6 Jul 2014 23:41:14 +0000 (16:41 -0700)
commitd224ed7eea5885b489ba99c3c1443e8409443854
tree0a2859074d7d28b084ec3da4bc0424f9610285fc
parentce64398751a8852d55a9773ff54ce7a2a5acd44d
SSL: stop accessing SSL_SESSION's fields directly.

SSL_SESSION struct is internal part of the OpenSSL library and it's fields
should be accessed via API (when exposed), not directly.

The unfortunate side-effect of this change is that we're losing reference
count that used to be printed at the debug log level, but this seems to be
an acceptable trade-off.

Almost fixes build with -DOPENSSL_NO_SSL_INTERN.

Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
src/event/ngx_event_openssl.c
src/http/ngx_http_upstream_round_robin.c