]> git.kaiwu.me - nginx.git/commitdiff
SSL: fix call to BIO_get_mem_data().
authorPiotr Sikora <piotrsikora@google.com>
Tue, 13 Dec 2016 22:19:30 +0000 (14:19 -0800)
committerPiotr Sikora <piotrsikora@google.com>
Tue, 13 Dec 2016 22:19:30 +0000 (14:19 -0800)
Fixes build with BoringSSL.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
src/event/ngx_event_openssl.c
src/event/ngx_event_openssl_stapling.c

index 1b39f33c2f67b4722dd9b221d3de392d7feab2fd..39f7cae89c41aeeb4a6a3f9e84245988159a9429 100644 (file)
@@ -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);
 
index 2100516f940f6c15c1cdb5ecb56704f182eebb21..5e1eb502d7e2d62f361483f39a4b34638b0bfe02 100644 (file)
@@ -793,7 +793,7 @@ ngx_ssl_stapling_time(ASN1_GENERALIZEDTIME *asn1time)
 
     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);