diff options
author | tb <> | 2020-12-16 13:44:17 +0000 |
---|---|---|
committer | tb <> | 2020-12-16 13:44:17 +0000 |
commit | d3ac08178a3af38a0a297989a450a0563d1bf210 (patch) | |
tree | 962f7df0ce399fa7fb838821918c09de997ac9ed /src | |
parent | 504bf1627e800924a2e652013e03bb332dbcb7e3 (diff) | |
download | openbsd-d3ac08178a3af38a0a297989a450a0563d1bf210.tar.gz openbsd-d3ac08178a3af38a0a297989a450a0563d1bf210.tar.bz2 openbsd-d3ac08178a3af38a0a297989a450a0563d1bf210.zip |
Fix some KNF issues
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vpm.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c index 448ee20984..9fb94b2772 100644 --- a/src/lib/libcrypto/x509/x509_vpm.c +++ b/src/lib/libcrypto/x509/x509_vpm.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vpm.c,v 1.22 2020/09/14 08:10:04 beck Exp $ */ | 1 | /* $OpenBSD: x509_vpm.c,v 1.23 2020/12/16 13:44:17 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2004. | 3 | * project 2004. |
4 | */ | 4 | */ |
@@ -207,7 +207,7 @@ X509_VERIFY_PARAM_new(void) | |||
207 | param = calloc(1, sizeof(X509_VERIFY_PARAM)); | 207 | param = calloc(1, sizeof(X509_VERIFY_PARAM)); |
208 | if (param == NULL) | 208 | if (param == NULL) |
209 | return NULL; | 209 | return NULL; |
210 | paramid = calloc (1, sizeof(X509_VERIFY_PARAM_ID)); | 210 | paramid = calloc(1, sizeof(X509_VERIFY_PARAM_ID)); |
211 | if (paramid == NULL) { | 211 | if (paramid == NULL) { |
212 | free(param); | 212 | free(param); |
213 | return NULL; | 213 | return NULL; |
@@ -227,7 +227,8 @@ X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param) | |||
227 | free(param); | 227 | free(param); |
228 | } | 228 | } |
229 | 229 | ||
230 | /* This function determines how parameters are "inherited" from one structure | 230 | /* |
231 | * This function determines how parameters are "inherited" from one structure | ||
231 | * to another. There are several different ways this can happen. | 232 | * to another. There are several different ways this can happen. |
232 | * | 233 | * |
233 | * 1. If a child structure needs to have its values initialized from a parent | 234 | * 1. If a child structure needs to have its values initialized from a parent |
@@ -673,8 +674,8 @@ X509_VERIFY_PARAM_get_count(void) | |||
673 | return num; | 674 | return num; |
674 | } | 675 | } |
675 | 676 | ||
676 | const | 677 | const X509_VERIFY_PARAM * |
677 | X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id) | 678 | X509_VERIFY_PARAM_get0(int id) |
678 | { | 679 | { |
679 | int num = sizeof(default_table) / sizeof(X509_VERIFY_PARAM); | 680 | int num = sizeof(default_table) / sizeof(X509_VERIFY_PARAM); |
680 | if (id < num) | 681 | if (id < num) |
@@ -682,8 +683,8 @@ X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id) | |||
682 | return sk_X509_VERIFY_PARAM_value(param_table, id - num); | 683 | return sk_X509_VERIFY_PARAM_value(param_table, id - num); |
683 | } | 684 | } |
684 | 685 | ||
685 | const | 686 | const X509_VERIFY_PARAM * |
686 | X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name) | 687 | X509_VERIFY_PARAM_lookup(const char *name) |
687 | { | 688 | { |
688 | X509_VERIFY_PARAM pm; | 689 | X509_VERIFY_PARAM pm; |
689 | unsigned int i, limit; | 690 | unsigned int i, limit; |