Hello!
On Wed, Dec 14, 2016 at 11:43:08AM -0800, Piotr Sikora via nginx-devel wrote:
> # HG changeset patch
> # User Piotr Sikora <piotrsikora@google.com>
> # Date 1481667570 28800
> # Tue Dec 13 14:19:30 2016 -0800
> # Node ID 4848b2eea6ba373d29c036b3b5acbeaf0f038587
> # Parent 25a64c864f4d31761eb42d39cda8b0e80277816d
> SSL: fix call to BIO_get_mem_data().
>
> Fixes build with BoringSSL.
>
> Signed-off-by: Piotr Sikora <piotrsikora@google.com>
>
> diff -r 25a64c864f4d -r 4848b2eea6ba 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 -r 25a64c864f4d -r 4848b2eea6ba 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);
>
Committed, thanks.
--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel