diff options
| author | jsing <> | 2018-11-06 20:41:11 +0000 |
|---|---|---|
| committer | jsing <> | 2018-11-06 20:41:11 +0000 |
| commit | 5b8cabaeb0bc8cca139fc6efd8423cf50026cd9c (patch) | |
| tree | a4f6975b1b7df45a59fa1b136ebb340980316959 /src/usr.sbin | |
| parent | c572182382f504af52f71f2197c113d5be045376 (diff) | |
| download | openbsd-5b8cabaeb0bc8cca139fc6efd8423cf50026cd9c.tar.gz openbsd-5b8cabaeb0bc8cca139fc6efd8423cf50026cd9c.tar.bz2 openbsd-5b8cabaeb0bc8cca139fc6efd8423cf50026cd9c.zip | |
Use TLS_CA_CERT_FILE instead of a separate define.
ok beck@ bluhm@ tb@
Diffstat (limited to 'src/usr.sbin')
| -rw-r--r-- | src/usr.sbin/ocspcheck/http.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr.sbin/ocspcheck/http.c b/src/usr.sbin/ocspcheck/http.c index 6830bacaec..ce479f27ef 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.9 2017/03/26 18:41:02 deraadt Exp $ */ | 1 | /* $Id: http.c,v 1.10 2018/11/06 20:41:11 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> | 3 | * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> |
| 4 | * | 4 | * |
| @@ -35,8 +35,6 @@ | |||
| 35 | #include "http.h" | 35 | #include "http.h" |
| 36 | #include <tls.h> | 36 | #include <tls.h> |
| 37 | 37 | ||
| 38 | #define DEFAULT_CA_FILE "/etc/ssl/cert.pem" | ||
| 39 | |||
| 40 | /* | 38 | /* |
| 41 | * A buffer for transferring HTTP/S data. | 39 | * A buffer for transferring HTTP/S data. |
| 42 | */ | 40 | */ |
| @@ -137,7 +135,7 @@ http_init() | |||
| 137 | goto err; | 135 | goto err; |
| 138 | } | 136 | } |
| 139 | 137 | ||
| 140 | if (tls_config_set_ca_file(tlscfg, DEFAULT_CA_FILE) == -1) { | 138 | if (tls_config_set_ca_file(tlscfg, TLS_CA_CERT_FILE) == -1) { |
| 141 | warn("tls_config_set_ca_file: %s", tls_config_error(tlscfg)); | 139 | warn("tls_config_set_ca_file: %s", tls_config_error(tlscfg)); |
| 142 | goto err; | 140 | goto err; |
| 143 | } | 141 | } |
