In x509_verify.c r1.62, beck disabled policy checks by default in the new
X.509 verifier to match the behavior of the legacy validator and OpenSSL.
In order to keep policy checks as mandated by RFC 7318, we need to opt
into them explicitly.
ok beck
-/* $OpenBSD: validate.c,v 1.52 2023/01/04 14:22:43 claudio Exp $ */
+/* $OpenBSD: validate.c,v 1.53 2023/01/18 00:27:10 tb Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
cryptoerrx("X509_VERIFY_PARAM_add0_policy");
flags = X509_V_FLAG_CRL_CHECK;
+ flags |= X509_V_FLAG_POLICY_CHECK;
flags |= X509_V_FLAG_EXPLICIT_POLICY;
flags |= X509_V_FLAG_INHIBIT_MAP;
X509_STORE_CTX_set_flags(store_ctx, flags);