summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2020-11-03 18:47:19 +0000
committertb <>2020-11-03 18:47:19 +0000
commit33b097e74accc137080b919f90b51823c22fad3e (patch)
treec7076146877b19796b7547246062744e5c575995 /src
parentc48c826305267737b31caf607cf5dd085079e3d6 (diff)
downloadopenbsd-33b097e74accc137080b919f90b51823c22fad3e.tar.gz
openbsd-33b097e74accc137080b919f90b51823c22fad3e.tar.bz2
openbsd-33b097e74accc137080b919f90b51823c22fad3e.zip
garbage collect an essentially unused variable and wrap some overlong
lines
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/openssl/verify.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/usr.bin/openssl/verify.c b/src/usr.bin/openssl/verify.c
index 6d915009b0..95e3fa02eb 100644
--- a/src/usr.bin/openssl/verify.c
+++ b/src/usr.bin/openssl/verify.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: verify.c,v 1.11 2020/11/03 18:42:52 tb Exp $ */ 1/* $OpenBSD: verify.c,v 1.12 2020/11/03 18:47:19 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -260,13 +260,13 @@ verify_usage(void)
260int 260int
261verify_main(int argc, char **argv) 261verify_main(int argc, char **argv)
262{ 262{
263 int i, ret = 1;
264 STACK_OF(X509) *untrusted = NULL, *trusted = NULL; 263 STACK_OF(X509) *untrusted = NULL, *trusted = NULL;
265 STACK_OF(X509_CRL) *crls = NULL; 264 STACK_OF(X509_CRL) *crls = NULL;
266 X509_STORE *cert_ctx = NULL; 265 X509_STORE *cert_ctx = NULL;
267 X509_LOOKUP *lookup = NULL; 266 X509_LOOKUP *lookup = NULL;
268 char **cert_files = NULL; 267 char **cert_files = NULL;
269 int argsused; 268 int argsused;
269 int ret = 1;
270 270
271 if (single_execution) { 271 if (single_execution) {
272 if (pledge("stdio rpath", NULL) == -1) { 272 if (pledge("stdio rpath", NULL) == -1) {
@@ -297,9 +297,10 @@ verify_main(int argc, char **argv)
297 if (lookup == NULL) 297 if (lookup == NULL)
298 abort(); /* XXX */ 298 abort(); /* XXX */
299 if (verify_config.CAfile) { 299 if (verify_config.CAfile) {
300 i = X509_LOOKUP_load_file(lookup, verify_config.CAfile, X509_FILETYPE_PEM); 300 if (!X509_LOOKUP_load_file(lookup, verify_config.CAfile,
301 if (!i) { 301 X509_FILETYPE_PEM)) {
302 BIO_printf(bio_err, "Error loading file %s\n", verify_config.CAfile); 302 BIO_printf(bio_err, "Error loading file %s\n",
303 verify_config.CAfile);
303 ERR_print_errors(bio_err); 304 ERR_print_errors(bio_err);
304 goto end; 305 goto end;
305 } 306 }
@@ -310,9 +311,10 @@ verify_main(int argc, char **argv)
310 if (lookup == NULL) 311 if (lookup == NULL)
311 abort(); /* XXX */ 312 abort(); /* XXX */
312 if (verify_config.CApath) { 313 if (verify_config.CApath) {
313 i = X509_LOOKUP_add_dir(lookup, verify_config.CApath, X509_FILETYPE_PEM); 314 if (!X509_LOOKUP_add_dir(lookup, verify_config.CApath,
314 if (!i) { 315 X509_FILETYPE_PEM)) {
315 BIO_printf(bio_err, "Error loading directory %s\n", verify_config.CApath); 316 BIO_printf(bio_err, "Error loading directory %s\n",
317 verify_config.CApath);
316 ERR_print_errors(bio_err); 318 ERR_print_errors(bio_err);
317 goto end; 319 goto end;
318 } 320 }