From bef75f92760574525922f5ff9c66adf59413432e Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 20 Sep 2020 18:32:33 +0000 Subject: KNF/whitespace nits --- src/lib/libcrypto/x509/x509_constraints.c | 4 ++-- src/lib/libcrypto/x509/x509_vfy.c | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/x509/x509_constraints.c b/src/lib/libcrypto/x509/x509_constraints.c index 8fafadfcdf..34795c0796 100644 --- a/src/lib/libcrypto/x509/x509_constraints.c +++ b/src/lib/libcrypto/x509/x509_constraints.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_constraints.c,v 1.6 2020/09/20 18:22:31 beck Exp $ */ +/* $OpenBSD: x509_constraints.c,v 1.7 2020/09/20 18:32:33 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -448,7 +448,7 @@ x509_constraints_valid_domain_constraint(uint8_t *constraint, size_t len) * with end of URI, '/', '?', "#', or ':'. */ int -x509_constraints_uri_host(uint8_t *uri, size_t len, char**hostpart) +x509_constraints_uri_host(uint8_t *uri, size_t len, char **hostpart) { size_t i, hostlen = 0; uint8_t *authority = NULL; diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index 99a699f99e..584dd09ed1 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_vfy.c,v 1.79 2020/09/15 11:55:14 beck Exp $ */ +/* $OpenBSD: x509_vfy.c,v 1.80 2020/09/20 18:32:33 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1664,9 +1664,10 @@ check_crl(X509_STORE_CTX *ctx, X509_CRL *crl) if (ctx->current_issuer) { issuer = ctx->current_issuer; } else if (cnum < chnum) { - /* Else find CRL issuer: if not last certificate then issuer - * is next certificate in chain. - */ + /* + * Else find CRL issuer: if not last certificate then issuer + * is next certificate in chain. + */ issuer = sk_X509_value(ctx->chain, cnum + 1); } else { issuer = sk_X509_value(ctx->chain, chnum); -- cgit v1.2.3-55-g6feb