ITADN

set debug_skip_body for OCSP requests in openssl tls provider

#345Pull Requesttobiasb-ms 创建于 2024-09-16
T
tobiasb-mscommented
Potential fix for #344. In the `openssl` `tls` provider, `debug_skip_body` isn't being set on OCSP requests, which have binary bodies. This results in debug output printing binary output, which can be weird depending on terminal settings. Example of debug output before fix (notice unprintable characters in the body): ``` 16.151640.473 opened connection ocsp.sectigo.com 16.151640.473 # sent 264 bytes: POST / HTTP/1.1 Host: ocsp.sectigo.com Accept-Encoding: identity Accept: */* Content-Type: application/ocsp-request Content-Length: 120 0v0t0M0K0I0 + 16.151640.473 ### req 0x79f04c1c3ad0 pending requests = 1 ``` Example with fix (notice the `<body skipped>`): ``` 16.153227.955 opened connection ocsp.sectigo.com 16.153227.955 # sent 264 bytes: POST / HTTP/1.1 Host: ocsp.sectigo.com Accept-Encoding: identity Accept: */* Content-Type: application/ocsp-request Content-Length: 120 <body skipped> 16.153227.955 ### req 0x72ed481c3ad0 pending requests = 1 ```
合并状态:未合并 关闭于 2024-09-22 2 条评论