diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x509/x509_verify.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_verify.c b/src/lib/libcrypto/x509/x509_verify.c index e49fbdee48..8bcc647149 100644 --- a/src/lib/libcrypto/x509/x509_verify.c +++ b/src/lib/libcrypto/x509/x509_verify.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_verify.c,v 1.49 2021/09/09 15:09:43 beck Exp $ */ | 1 | /* $OpenBSD: x509_verify.c,v 1.50 2021/10/26 15:14:18 job Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2020-2021 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2020-2021 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -352,6 +352,14 @@ x509_verify_ctx_validate_legacy_chain(struct x509_verify_ctx *ctx, | |||
352 | if (!x509_vfy_check_chain_extensions(ctx->xsc)) | 352 | if (!x509_vfy_check_chain_extensions(ctx->xsc)) |
353 | goto err; | 353 | goto err; |
354 | 354 | ||
355 | #ifndef OPENSSL_NO_RFC3779 | ||
356 | if (!X509v3_asid_validate_path(ctx->xsc)) | ||
357 | goto err; | ||
358 | |||
359 | if (!X509v3_addr_validate_path(ctx->xsc)) | ||
360 | goto err; | ||
361 | #endif | ||
362 | |||
355 | if (!x509_constraints_chain(ctx->xsc->chain, | 363 | if (!x509_constraints_chain(ctx->xsc->chain, |
356 | &ctx->xsc->error, &ctx->xsc->error_depth)) { | 364 | &ctx->xsc->error, &ctx->xsc->error_depth)) { |
357 | X509 *cert = sk_X509_value(ctx->xsc->chain, depth); | 365 | X509 *cert = sk_X509_value(ctx->xsc->chain, depth); |