Add a test for X509_STORE_CTX_set_purpose()
authorMatt Caswell <matt@openssl.org>
Thu, 30 Dec 2021 16:38:28 +0000 (16:38 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 27 Jan 2022 15:30:04 +0000 (15:30 +0000)
commit8447f2e3912c810a02ed1c8641db27ff70ded5ba
treea7a07ca1b0af8c8e9d9f83562576cdd5b69622d9
parent4aa82850267defd772ddf74a88d515ef4fb566b8
Add a test for X509_STORE_CTX_set_purpose()

This function was previously incorrectly failing if it is called with
X509_PURPOSE_ANY. Add a test to catch this.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/17382)
test/recipes/70-test_verify_extra.t
test/verify_extra_test.c