Mercurial > hg > nginx
comparison src/event/ngx_event_openssl_stapling.c @ 6205:dcae651b2a0c
OCSP stapling: fixed ssl_stapling_file (ticket #769).
Broken by 6893a1007a7c (1.9.2) during introduction of strict OCSP response
validity checks. As stapling file is expected to be returned unconditionally,
fix is to set its validity to the maximum supported time.
Reported by Faidon Liambotis.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 07 Jul 2015 16:38:49 +0300 |
parents | 6893a1007a7c |
children | 595b179e429f |
comparison
equal
deleted
inserted
replaced
6204:114d1f8cdcab | 6205:dcae651b2a0c |
---|---|
243 OCSP_RESPONSE_free(response); | 243 OCSP_RESPONSE_free(response); |
244 BIO_free(bio); | 244 BIO_free(bio); |
245 | 245 |
246 staple->staple.data = buf; | 246 staple->staple.data = buf; |
247 staple->staple.len = len; | 247 staple->staple.len = len; |
248 staple->valid = NGX_MAX_TIME_T_VALUE; | |
248 | 249 |
249 return NGX_OK; | 250 return NGX_OK; |
250 | 251 |
251 failed: | 252 failed: |
252 | 253 |