Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] SSL: fix call to BIO_get_mem_data()

Maxim Dounin
December 15, 2016 10:32AM
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
Subject Author Views Posted

[PATCH] SSL: fix call to BIO_get_mem_data()

Piotr Sikora via nginx-devel 326 December 13, 2016 05:22PM

Re: [PATCH] SSL: fix call to BIO_get_mem_data()

Maxim Dounin 152 December 14, 2016 12:18PM

[PATCH] SSL: fix call to BIO_get_mem_data()

Piotr Sikora via nginx-devel 163 December 14, 2016 02:44PM

Re: [PATCH] SSL: fix call to BIO_get_mem_data()

Maxim Dounin 255 December 15, 2016 10:32AM

Re: [PATCH] SSL: fix call to BIO_get_mem_data()

Maxim Dounin 176 December 15, 2016 12:10PM

Re: [PATCH] SSL: fix call to BIO_get_mem_data()

Piotr Sikora via nginx-devel 149 December 14, 2016 02:46PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 110
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready