diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2020-11-18 17:01:00 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2020-11-18 17:01:00 +0000 |
commit | c7d089c858728bb77455d91167aaf7f2d5343131 (patch) | |
tree | 7fa0f3c7457fe69ce3fc99148dc8a7ac82ceb289 /lib/libcrypto/x509 | |
parent | 8f945677fa3acd116f01510ea8fa5a94d718ef8e (diff) |
KNF (whitespace)
Diffstat (limited to 'lib/libcrypto/x509')
-rw-r--r-- | lib/libcrypto/x509/x509_constraints.c | 4 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509_internal.h | 6 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509_issuer_cache.c | 12 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509_vfy.c | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/lib/libcrypto/x509/x509_constraints.c b/lib/libcrypto/x509/x509_constraints.c index 5659d6e6a76..dc91c00345e 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.10 2020/09/21 05:41:43 tb Exp $ */ +/* $OpenBSD: x509_constraints.c,v 1.11 2020/11/18 17:00:59 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck <beck@openbsd.org> * @@ -700,7 +700,7 @@ x509_constraints_extract_names(struct x509_constraints_names *names, *error = X509_V_ERR_OUT_OF_MEM; goto err; } - vname->type=GEN_DNS; + vname->type = GEN_DNS; include_cn = 0; /* don't use cn from subject */ break; case GEN_EMAIL: diff --git a/lib/libcrypto/x509/x509_internal.h b/lib/libcrypto/x509/x509_internal.h index f6887be5fbf..2f2fe47a8f9 100644 --- a/lib/libcrypto/x509/x509_internal.h +++ b/lib/libcrypto/x509/x509_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_internal.h,v 1.4 2020/11/11 18:49:34 jsing Exp $ */ +/* $OpenBSD: x509_internal.h,v 1.5 2020/11/18 17:00:59 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck <beck@openbsd.org> * @@ -73,8 +73,8 @@ struct x509_verify_ctx { size_t max_depth; /* Max chain depth for validation */ size_t max_sigs; /* Max number of signature checks */ size_t sig_checks; /* Number of signature checks done */ - size_t error_depth; /* Depth of last error seen */ - int error; /* Last error seen */ + size_t error_depth; /* Depth of last error seen */ + int error; /* Last error seen */ }; int ASN1_time_tm_clamp_notafter(struct tm *tm); diff --git a/lib/libcrypto/x509/x509_issuer_cache.c b/lib/libcrypto/x509/x509_issuer_cache.c index 6831c18986c..26cde17239b 100644 --- a/lib/libcrypto/x509/x509_issuer_cache.c +++ b/lib/libcrypto/x509/x509_issuer_cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_issuer_cache.c,v 1.1 2020/09/11 14:30:51 beck Exp $ */ +/* $OpenBSD: x509_issuer_cache.c,v 1.2 2020/11/18 17:00:59 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck <beck@openbsd.org> * @@ -77,9 +77,9 @@ x509_issuer_cache_set_max(size_t max) * Find a previous result of checking if parent signed child * * Returns: - * -1 : No entry exists in the cache. signature must be checked. - * 0 : The signature of parent signing child is invalid. - * 1 : The signature of parent signing child is valid. + * -1 : No entry exists in the cache. signature must be checked. + * 0 : The signature of parent signing child is invalid. + * 1 : The signature of parent signing child is valid. */ int x509_issuer_cache_find(unsigned char *parent_md, unsigned char *child_md) @@ -98,7 +98,7 @@ x509_issuer_cache_find(unsigned char *parent_md, unsigned char *child_md) return -1; if ((found = RB_FIND(x509_issuer_tree, &x509_issuer_cache, &candidate)) != NULL) { - TAILQ_REMOVE(&x509_issuer_lru, found, queue); + TAILQ_REMOVE(&x509_issuer_lru, found, queue); TAILQ_INSERT_HEAD(&x509_issuer_lru, found, queue); ret = found->valid; } @@ -111,7 +111,7 @@ x509_issuer_cache_find(unsigned char *parent_md, unsigned char *child_md) * Attempt to add a validation result to the cache. * * valid must be: - * 0: The signature of parent signing child is invalid. + * 0: The signature of parent signing child is invalid. * 1: The signature of parent signing child is valid. * * Previously added entries for the same parent and child are *not* replaced. diff --git a/lib/libcrypto/x509/x509_vfy.c b/lib/libcrypto/x509/x509_vfy.c index fe1431ce496..38ae515871f 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.81 2020/09/26 02:06:28 deraadt Exp $ */ +/* $OpenBSD: x509_vfy.c,v 1.82 2020/11/18 17:00:59 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -654,7 +654,7 @@ X509_verify_cert(X509_STORE_CTX *ctx) CRYPTO_w_lock(CRYPTO_LOCK_X509_STORE); if ((objs = X509_STORE_get0_objects(ctx->ctx)) == NULL) - good = 0; + good = 0; for (i = 0; good && i < sk_X509_OBJECT_num(objs); i++) { X509_OBJECT *obj; X509 *root; |