comparison src/event/ngx_event_openssl_stapling.c @ 6841:e7cb5deb951d

SSL: fix call to BIO_get_mem_data(). Fixes build with BoringSSL. Signed-off-by: Piotr Sikora <piotrsikora@google.com>
author Piotr Sikora <piotrsikora@google.com>
date Tue, 13 Dec 2016 14:19:30 -0800
parents 94586180fb41
children 25d0d6dabe00
comparison
equal deleted inserted replaced
6840:0cf4e82e7c48 6841:e7cb5deb951d
791 791
792 /* fake weekday prepended to match C asctime() format */ 792 /* fake weekday prepended to match C asctime() format */
793 793
794 BIO_write(bio, "Tue ", sizeof("Tue ") - 1); 794 BIO_write(bio, "Tue ", sizeof("Tue ") - 1);
795 ASN1_GENERALIZEDTIME_print(bio, asn1time); 795 ASN1_GENERALIZEDTIME_print(bio, asn1time);
796 len = BIO_get_mem_data(bio, &value); 796 len = BIO_get_mem_data(bio, (char **) &value);
797 797
798 time = ngx_parse_http_time(value, len); 798 time = ngx_parse_http_time(value, len);
799 799
800 BIO_free(bio); 800 BIO_free(bio);
801 801