diff options
Diffstat (limited to 'dirmngr/ocsp.c')
-rw-r--r-- | dirmngr/ocsp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dirmngr/ocsp.c b/dirmngr/ocsp.c index 7de8b10e4..aee921e9a 100644 --- a/dirmngr/ocsp.c +++ b/dirmngr/ocsp.c @@ -197,6 +197,9 @@ do_ocsp_request (ctrl_t ctrl, ksba_ocsp_t ocsp, return err; } + if (*opt.user_agent) + es_fprintf (http_get_write_ptr (http), + "User-Agent: %s\r\n", opt.user_agent); es_fprintf (http_get_write_ptr (http), "Content-Type: application/ocsp-request\r\n" "Content-Length: %lu\r\n", |