Changeset
e7cb5deb951d breaks build on CentOS 5 with "dereferencing
type-punned pointer will break strict-aliasing rules" warning. It is
backed out.
Instead, to keep builds with BoringSSL happy, type of the "value"
variable changed to "char *", and an explicit cast added before calling
ngx_parse_http_time().
ASN1_TIME *asn1time)
{
BIO *bio;
- u_char *value;
+ char *value;
size_t len;
time_t time;
BIO_write(bio, "Tue ", sizeof("Tue ") - 1);
ASN1_TIME_print(bio, asn1time);
- len = BIO_get_mem_data(bio, (char **) &value);
+ len = BIO_get_mem_data(bio, &value);
- time = ngx_parse_http_time(value, len);
+ time = ngx_parse_http_time((u_char *) value, len);
BIO_free(bio);
ngx_ssl_stapling_time(ASN1_GENERALIZEDTIME *asn1time)
{
BIO *bio;
- u_char *value;
+ char *value;
size_t len;
time_t time;
BIO_write(bio, "Tue ", sizeof("Tue ") - 1);
ASN1_GENERALIZEDTIME_print(bio, asn1time);
- len = BIO_get_mem_data(bio, (char **) &value);
+ len = BIO_get_mem_data(bio, &value);
- time = ngx_parse_http_time(value, len);
+ time = ngx_parse_http_time((u_char *) value, len);
BIO_free(bio);