diff options
author | tb <> | 2023-04-14 15:27:13 +0000 |
---|---|---|
committer | tb <> | 2023-04-14 15:27:13 +0000 |
commit | 1a5bd4cb78097710de5283a737286c1b65609dc7 (patch) | |
tree | 7aed66c51404da4ea67dbb87b6191ab6c0e9a5ee /src/usr.bin/openssl/s_cb.c | |
parent | be3f11b57177567c1f951c5428261d6d8d9ee729 (diff) | |
download | openbsd-1a5bd4cb78097710de5283a737286c1b65609dc7.tar.gz openbsd-1a5bd4cb78097710de5283a737286c1b65609dc7.tar.bz2 openbsd-1a5bd4cb78097710de5283a737286c1b65609dc7.zip |
Drop policy printing from openssl
Nothing really uses the policy tree. It's desgined with built-in DoS
capabilities directly from the RFC. It will be removed from the attack
surface and replaced with something equivalent that doesn't grow
exponentially with the depth.
This removes the only reason the policy tree itself ever leaked out of
the library.
ok jsing
Diffstat (limited to 'src/usr.bin/openssl/s_cb.c')
-rw-r--r-- | src/usr.bin/openssl/s_cb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/usr.bin/openssl/s_cb.c b/src/usr.bin/openssl/s_cb.c index 73f45c25c5..d503b8cf27 100644 --- a/src/usr.bin/openssl/s_cb.c +++ b/src/usr.bin/openssl/s_cb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s_cb.c,v 1.20 2022/08/31 07:12:30 tb Exp $ */ | 1 | /* $OpenBSD: s_cb.c,v 1.21 2023/04/14 15:27:13 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 | * |
@@ -189,11 +189,8 @@ verify_callback(int ok, X509_STORE_CTX * ctx) | |||
189 | BIO_printf(bio_err, "\n"); | 189 | BIO_printf(bio_err, "\n"); |
190 | break; | 190 | break; |
191 | case X509_V_ERR_NO_EXPLICIT_POLICY: | 191 | case X509_V_ERR_NO_EXPLICIT_POLICY: |
192 | policies_print(bio_err, ctx); | ||
193 | break; | 192 | break; |
194 | } | 193 | } |
195 | if (err == X509_V_OK && ok == 2) | ||
196 | policies_print(bio_err, ctx); | ||
197 | 194 | ||
198 | BIO_printf(bio_err, "verify return:%d\n", ok); | 195 | BIO_printf(bio_err, "verify return:%d\n", ok); |
199 | return (ok); | 196 | return (ok); |