artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eed49ca
)
Don't do policy checking unless we were asked to do so.
author
beck
<beck@openbsd.org>
Tue, 17 Jan 2023 23:49:28 +0000
(23:49 +0000)
committer
beck
<beck@openbsd.org>
Tue, 17 Jan 2023 23:49:28 +0000
(23:49 +0000)
ok tb@
lib/libcrypto/x509/x509_verify.c
patch
|
blob
|
history
diff --git
a/lib/libcrypto/x509/x509_verify.c
b/lib/libcrypto/x509/x509_verify.c
index
e85c3a6
..
5891bd8
100644
(file)
--- a/
lib/libcrypto/x509/x509_verify.c
+++ b/
lib/libcrypto/x509/x509_verify.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: x509_verify.c,v 1.6
1 2022/10/17 18:56:54 jsing
Exp $ */
+/* $OpenBSD: x509_verify.c,v 1.6
2 2023/01/17 23:49:28 beck
Exp $ */
/*
* Copyright (c) 2020-2021 Bob Beck <beck@openbsd.org>
*
@@
-447,7
+447,8
@@
x509_verify_ctx_validate_legacy_chain(struct x509_verify_ctx *ctx,
if (!x509_vfy_check_revocation(ctx->xsc))
goto err;
- if (!x509_vfy_check_policy(ctx->xsc))
+ if (ctx->xsc->param->flags & X509_V_FLAG_POLICY_CHECK &&
+ !x509_vfy_check_policy(ctx->xsc))
goto err;
ret = 1;