diff options
author | tb <> | 2021-02-11 04:56:43 +0000 |
---|---|---|
committer | tb <> | 2021-02-11 04:56:43 +0000 |
commit | a08933ee451c535496e04710143294584fdb5483 (patch) | |
tree | 93fe20e38d07d5bf454138ae93a51c776450408b /src | |
parent | 7540d4670346fbac7e3407dd4e7dd10cdd5a3779 (diff) | |
download | openbsd-a08933ee451c535496e04710143294584fdb5483.tar.gz openbsd-a08933ee451c535496e04710143294584fdb5483.tar.bz2 openbsd-a08933ee451c535496e04710143294584fdb5483.zip |
KNF
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c index 7daf8bf60e..1c2d03b9b6 100644 --- a/src/lib/libcrypto/x509/x509_vfy.c +++ b/src/lib/libcrypto/x509/x509_vfy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_vfy.c,v 1.84 2020/11/18 17:40:42 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.c,v 1.85 2021/02/11 04:56:43 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -910,7 +910,8 @@ check_name_constraints(X509_STORE_CTX *ctx) | |||
910 | 910 | ||
911 | /* Given a certificate try and find an exact match in the store */ | 911 | /* Given a certificate try and find an exact match in the store */ |
912 | 912 | ||
913 | static X509 *lookup_cert_match(X509_STORE_CTX *ctx, X509 *x) | 913 | static X509 * |
914 | lookup_cert_match(X509_STORE_CTX *ctx, X509 *x) | ||
914 | { | 915 | { |
915 | STACK_OF(X509) *certs; | 916 | STACK_OF(X509) *certs; |
916 | X509 *xtmp = NULL; | 917 | X509 *xtmp = NULL; |
@@ -937,7 +938,8 @@ static X509 *lookup_cert_match(X509_STORE_CTX *ctx, X509 *x) | |||
937 | return xtmp; | 938 | return xtmp; |
938 | } | 939 | } |
939 | 940 | ||
940 | static int check_trust(X509_STORE_CTX *ctx) | 941 | static int |
942 | check_trust(X509_STORE_CTX *ctx) | ||
941 | { | 943 | { |
942 | size_t i; | 944 | size_t i; |
943 | int ok; | 945 | int ok; |
@@ -991,7 +993,8 @@ static int check_trust(X509_STORE_CTX *ctx) | |||
991 | return X509_TRUST_UNTRUSTED; | 993 | return X509_TRUST_UNTRUSTED; |
992 | } | 994 | } |
993 | 995 | ||
994 | int x509_vfy_check_trust(X509_STORE_CTX *ctx) | 996 | int |
997 | x509_vfy_check_trust(X509_STORE_CTX *ctx) | ||
995 | { | 998 | { |
996 | return check_trust(ctx); | 999 | return check_trust(ctx); |
997 | } | 1000 | } |