Commit c4d0e08
ocsp_responder: fix UTC time parsing and CERT_UNKNOWN response
- ParseIndexFile: replace XMKTIME() with UtcMkTime() to correctly
interpret the trailing 'Z' (UTC) in the index file's revocation
timestamps; XMKTIME/mktime uses local time, skewing the result on
machines not running in UTC.
- wc_OcspResponder_WriteResponse: when a certificate is not found in
the status list, write a successful OCSPResponse with per-certificate
status CERT_UNKNOWN instead of returning OCSP_CERT_UNKNOWN. Per
RFC 6960, 'unknown' belongs in a SingleResponse inside a successful
response, not as an OCSPResponseStatus error, so OCSP clients can
distinguish 'unknown cert' from 'not authorized to answer'.
- MapErrorToOcspStatus: remove the now-unreachable OCSP_CERT_UNKNOWN
case.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2bb98cb commit c4d0e08
2 files changed
+40
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
261 | 282 | | |
262 | 283 | | |
263 | 284 | | |
| |||
331 | 352 | | |
332 | 353 | | |
333 | 354 | | |
334 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
335 | 359 | | |
336 | 360 | | |
337 | 361 | | |
| |||
686 | 710 | | |
687 | 711 | | |
688 | 712 | | |
689 | | - | |
690 | | - | |
691 | 713 | | |
692 | 714 | | |
693 | 715 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2753 | 2753 | | |
2754 | 2754 | | |
2755 | 2755 | | |
2756 | | - | |
2757 | | - | |
| 2756 | + | |
| 2757 | + | |
| 2758 | + | |
| 2759 | + | |
| 2760 | + | |
| 2761 | + | |
| 2762 | + | |
| 2763 | + | |
| 2764 | + | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
2758 | 2771 | | |
2759 | 2772 | | |
2760 | 2773 | | |
| |||
0 commit comments