diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2020-12-16 13:44:18 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2020-12-16 13:44:18 +0000 |
commit | 23767b889e46b9559214105cc580d77f39804328 (patch) | |
tree | 7ae6aaaeda691700bb3123bf2a2864ddf0fbbacb /lib/libcrypto | |
parent | a44bd0d03ce1e180f07ed7e39d975af8c1fa2536 (diff) |
Fix some KNF issues
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/x509/x509_vpm.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/libcrypto/x509/x509_vpm.c b/lib/libcrypto/x509/x509_vpm.c index 448ee209843..9fb94b27724 100644 --- a/lib/libcrypto/x509/x509_vpm.c +++ b/lib/libcrypto/x509/x509_vpm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_vpm.c,v 1.22 2020/09/14 08:10:04 beck Exp $ */ +/* $OpenBSD: x509_vpm.c,v 1.23 2020/12/16 13:44:17 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2004. */ @@ -207,7 +207,7 @@ X509_VERIFY_PARAM_new(void) param = calloc(1, sizeof(X509_VERIFY_PARAM)); if (param == NULL) return NULL; - paramid = calloc (1, sizeof(X509_VERIFY_PARAM_ID)); + paramid = calloc(1, sizeof(X509_VERIFY_PARAM_ID)); if (paramid == NULL) { free(param); return NULL; @@ -227,7 +227,8 @@ X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param) free(param); } -/* This function determines how parameters are "inherited" from one structure +/* + * This function determines how parameters are "inherited" from one structure * to another. There are several different ways this can happen. * * 1. If a child structure needs to have its values initialized from a parent @@ -673,8 +674,8 @@ X509_VERIFY_PARAM_get_count(void) return num; } -const -X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id) +const X509_VERIFY_PARAM * +X509_VERIFY_PARAM_get0(int id) { int num = sizeof(default_table) / sizeof(X509_VERIFY_PARAM); if (id < num) @@ -682,8 +683,8 @@ X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id) return sk_X509_VERIFY_PARAM_value(param_table, id - num); } -const -X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name) +const X509_VERIFY_PARAM * +X509_VERIFY_PARAM_lookup(const char *name) { X509_VERIFY_PARAM pm; unsigned int i, limit; |