test: evp_extra: test signing with legacy app method based keys
authorMatthias St. Pierre <matthias.st.pierre@ncp-e.com>
Sat, 23 Sep 2023 23:13:20 +0000 (01:13 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 4 Oct 2023 10:22:59 +0000 (12:22 +0200)
commitd40ccbc09ed8f391389287142c27a37c7d7f702a
tree98aa63426e791c625aa3aa1ca7e6d4303ef9d683
parentf21889d1550abe64c37d434ba6dc6b5109fd1c10
test: evp_extra: test signing with legacy app method based keys

This commit adds `test_EVP_PKEY_sign_with_app_method`, a regression
test for the bug fix in commit 1acc3e8cc3c6 (pull request #22163).

It is analogous to `test_EVP_PKEY_sign`, only with a fake app method
based key. (The EC key test case was omitted, because there is no
`EC_KEY_METHOD_dup` method.)

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22185)

(cherry picked from commit 860e36d0dd72f4aa4791e88aa185cb42065a30c4)
test/evp_extra_test.c