SSL: fix call to BIO_get_mem_data().

Fixes build with BoringSSL.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
This commit is contained in:
Piotr Sikora 2016-12-13 14:19:30 -08:00
parent c40d8ddc5d
commit 592dbcc315
2 changed files with 2 additions and 2 deletions

View 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);

View 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);