From ada8f0655f3fb8aa20a5f6b3f9e48d5a4bba8308 Mon Sep 17 00:00:00 2001 From: sthen <> Date: Sat, 11 Jan 2020 17:37:19 +0000 Subject: 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@ --- src/usr.sbin/ocspcheck/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ -/* $Id: http.c,v 1.12 2019/06/28 13:32:49 deraadt Exp $ */ +/* $Id: http.c,v 1.13 2020/01/11 17:37:19 sthen Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -349,6 +349,7 @@ http_open(const struct http *http, const void *p, size_t psz) c = asprintf(&req, "POST %s HTTP/1.0\r\n" "Host: %s\r\n" + "Content-Type: application/ocsp-request\r\n" "Content-Length: %zu\r\n" "\r\n", http->path, http->host, psz); -- cgit v1.2.3-55-g6feb