Klaus Demo nginx / 3294292
SSL: backed out changeset e7cb5deb951d, reimplemented properly. 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(). Maxim Dounin 3 years ago
2 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
40484048 ASN1_TIME *asn1time)
40494049 {
40504050 BIO *bio;
4051 u_char *value;
4051 char *value;
40524052 size_t len;
40534053 time_t time;
40544054
40684068
40694069 BIO_write(bio, "Tue ", sizeof("Tue ") - 1);
40704070 ASN1_TIME_print(bio, asn1time);
4071 len = BIO_get_mem_data(bio, (char **) &value);
4072
4073 time = ngx_parse_http_time(value, len);
4071 len = BIO_get_mem_data(bio, &value);
4072
4073 time = ngx_parse_http_time((u_char *) value, len);
40744074
40754075 BIO_free(bio);
40764076
772772 ngx_ssl_stapling_time(ASN1_GENERALIZEDTIME *asn1time)
773773 {
774774 BIO *bio;
775 u_char *value;
775 char *value;
776776 size_t len;
777777 time_t time;
778778
792792
793793 BIO_write(bio, "Tue ", sizeof("Tue ") - 1);
794794 ASN1_GENERALIZEDTIME_print(bio, asn1time);
795 len = BIO_get_mem_data(bio, (char **) &value);
796
797 time = ngx_parse_http_time(value, len);
795 len = BIO_get_mem_data(bio, &value);
796
797 time = ngx_parse_http_time((u_char *) value, len);
798798
799799 BIO_free(bio);
800800