diff options
| author | sthen <> | 2020-01-11 17:37:19 +0000 |
|---|---|---|
| committer | sthen <> | 2020-01-11 17:37:19 +0000 |
| commit | 447ae9961c3e13c550103d720a0cabeb72e6b84f (patch) | |
| tree | 75d1b7b9529855a08a9f69ce09bd14ab8e3bd912 /src | |
| parent | 8b9f481b47fe0f92f73f2dfab84982ebc9010790 (diff) | |
| download | openbsd-447ae9961c3e13c550103d720a0cabeb72e6b84f.tar.gz openbsd-447ae9961c3e13c550103d720a0cabeb72e6b84f.tar.bz2 openbsd-447ae9961c3e13c550103d720a0cabeb72e6b84f.zip | |
Set "Content-Type: application/ocsp-request" in ocspcheck(1)'s POSTs,
it is required by the RFC and some CAs require it (e.g. sectigo).
From daharmasterkor at gmail com, ok jca@
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.sbin/ocspcheck/http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr.sbin/ocspcheck/http.c b/src/usr.sbin/ocspcheck/http.c index e0df6cfa11..6666bb070c 100644 --- a/src/usr.sbin/ocspcheck/http.c +++ b/src/usr.sbin/ocspcheck/http.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $Id: http.c,v 1.12 2019/06/28 13:32:49 deraadt Exp $ */ | 1 | /* $Id: http.c,v 1.13 2020/01/11 17:37:19 sthen Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> | 3 | * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> |
| 4 | * | 4 | * |
| @@ -349,6 +349,7 @@ http_open(const struct http *http, const void *p, size_t psz) | |||
| 349 | c = asprintf(&req, | 349 | c = asprintf(&req, |
| 350 | "POST %s HTTP/1.0\r\n" | 350 | "POST %s HTTP/1.0\r\n" |
| 351 | "Host: %s\r\n" | 351 | "Host: %s\r\n" |
| 352 | "Content-Type: application/ocsp-request\r\n" | ||
| 352 | "Content-Length: %zu\r\n" | 353 | "Content-Length: %zu\r\n" |
| 353 | "\r\n", | 354 | "\r\n", |
| 354 | http->path, http->host, psz); | 355 | http->path, http->host, psz); |
