summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorjsing <>2020-11-03 17:43:01 +0000
committerjsing <>2020-11-03 17:43:01 +0000
commitd2716adb9f74470eeeb4b1db41704858437fb598 (patch)
treec166a6b7a886d5520db2032688877af24c4d3865 /src/lib
parenta706869ac70670ecb35789f6076ad655477e08e6 (diff)
downloadopenbsd-d2716adb9f74470eeeb4b1db41704858437fb598.tar.gz
openbsd-d2716adb9f74470eeeb4b1db41704858437fb598.tar.bz2
openbsd-d2716adb9f74470eeeb4b1db41704858437fb598.zip
Fix bad indent.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/x509/x509_verify.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c
index 6ab1cad2ad..c3923a88d5 100644
--- a/src/lib/libcrypto/x509/x509_verify.c
+++ b/src/lib/libcrypto/x509/x509_verify.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_verify.c,v 1.17 2020/11/03 17:22:45 jsing Exp $ */ 1/* $OpenBSD: x509_verify.c,v 1.18 2020/11/03 17:43:01 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -333,12 +333,11 @@ x509_verify_consider_candidate(struct x509_verify_ctx *ctx, X509 *cert,
333 return 0; 333 return 0;
334 } 334 }
335 335
336
337 if (!x509_verify_parent_signature(candidate, cert, cert_md, 336 if (!x509_verify_parent_signature(candidate, cert, cert_md,
338 &ctx->error)) { 337 &ctx->error)) {
339 if (!x509_verify_cert_error(ctx, candidate, depth, 338 if (!x509_verify_cert_error(ctx, candidate, depth,
340 ctx->error, 0)) 339 ctx->error, 0))
341 return 0; 340 return 0;
342 } 341 }
343 342
344 if (!x509_verify_cert_valid(ctx, candidate, current_chain)) 343 if (!x509_verify_cert_valid(ctx, candidate, current_chain))
@@ -460,8 +459,8 @@ x509_verify_build_chains(struct x509_verify_ctx *ctx, X509 *cert,
460 (void) ctx->xsc->verify_cb(1, ctx->xsc); 459 (void) ctx->xsc->verify_cb(1, ctx->xsc);
461 } 460 }
462 } else if (ctx->error_depth == depth) { 461 } else if (ctx->error_depth == depth) {
463 (void) x509_verify_cert_error(ctx, cert, depth, 462 (void) x509_verify_cert_error(ctx, cert, depth,
464 ctx->error, 0); 463 ctx->error, 0);
465 } 464 }
466} 465}
467 466