summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-09-20 18:32:33 +0000
committertb <tb@openbsd.org>2020-09-20 18:32:33 +0000
commit03d702fc5877e0176089f2c14ba172309a4db97d (patch)
tree953d13498304774e8828db23627de636a1b3796e
parentCorrect a 1 byte read overflow in x509_contraints_uri and add (diff)
downloadwireguard-openbsd-03d702fc5877e0176089f2c14ba172309a4db97d.tar.xz
wireguard-openbsd-03d702fc5877e0176089f2c14ba172309a4db97d.zip
KNF/whitespace nits
-rw-r--r--lib/libcrypto/x509/x509_constraints.c4
-rw-r--r--lib/libcrypto/x509/x509_vfy.c9
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/libcrypto/x509/x509_constraints.c b/lib/libcrypto/x509/x509_constraints.c
index 8fafadfcdf2..34795c07963 100644
--- a/lib/libcrypto/x509/x509_constraints.c
+++ b/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 <beck@openbsd.org>
*
@@ -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/lib/libcrypto/x509/x509_vfy.c b/lib/libcrypto/x509/x509_vfy.c
index 99a699f99e4..584dd09ed1c 100644
--- a/lib/libcrypto/x509/x509_vfy.c
+++ b/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);