[nginx] SSL: fix call to BIO_get_mem_data().
Maxim Dounin
mdounin at mdounin.ru
Thu Dec 15 15:30:57 UTC 2016
details: http://hg.nginx.org/nginx/rev/e7cb5deb951d
branches:
changeset: 6841:e7cb5deb951d
user: Piotr Sikora <piotrsikora at google.com>
date: Tue Dec 13 14:19:30 2016 -0800
description:
SSL: fix call to BIO_get_mem_data().
Fixes build with BoringSSL.
Signed-off-by: Piotr Sikora <piotrsikora at google.com>
diffstat:
src/event/ngx_event_openssl.c | 2 +-
src/event/ngx_event_openssl_stapling.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diffs (24 lines):
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -4069,7 +4069,7 @@ ngx_ssl_parse_time(
BIO_write(bio, "Tue ", sizeof("Tue ") - 1);
ASN1_TIME_print(bio, asn1time);
- len = BIO_get_mem_data(bio, &value);
+ len = BIO_get_mem_data(bio, (char **) &value);
time = ngx_parse_http_time(value, len);
diff --git a/src/event/ngx_event_openssl_stapling.c b/src/event/ngx_event_openssl_stapling.c
--- a/src/event/ngx_event_openssl_stapling.c
+++ b/src/event/ngx_event_openssl_stapling.c
@@ -793,7 +793,7 @@ ngx_ssl_stapling_time(ASN1_GENERALIZEDTI
BIO_write(bio, "Tue ", sizeof("Tue ") - 1);
ASN1_GENERALIZEDTIME_print(bio, asn1time);
- len = BIO_get_mem_data(bio, &value);
+ len = BIO_get_mem_data(bio, (char **) &value);
time = ngx_parse_http_time(value, len);
More information about the nginx-devel
mailing list