openssl/util
Richard Levitte bbaddbc068 X509: Refactor X509_verify() and X509_REQ_verify() for better streamlining
The solution to incorporate the SM2 identity processing was an off
the side hack that more or less duplicated the ASN1_item_verify()
code with just a few lines being different.  We replace this with
a new function ASN1_item_verify_ctx(), which takes an EVP_MD_CTX
pointer instead of an EVP_PKEY pointer, just like its sibling
ASN1_item_sign_ctx().

This allows us to refactor X509_verify() and X509_REQ_verify() to
simply create a local EVP_MD_CTX and an attached EVP_PKEY_CTX,
which gets to hold the SM2 identity, if there is one, and then let
ASN1_item_verify_ctx() to its job.

This will also make it easier to adapt ASN1_item_verify_ctx() for
provider based keys.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10942)
2020-02-02 12:04:00 +01:00
..
perl OpenSSL::Test: bring back the relative paths 2020-01-27 08:48:31 +01:00
add-depends.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
build.info Build: Change all _NO_INST to use attributes instead. 2019-01-22 12:35:39 +01:00
cavs-to-evptest.pl Add the NIST CAVS test vectors for CCM 2019-05-23 10:49:54 +01:00
check-malloc-errs Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
ck_errf.pl Create provider errors and use them 2019-04-19 09:31:54 +01:00
copy.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
dofile.pl Refactor the tls/dlts version options 2020-01-13 20:48:03 +03:00
echo.pl Windows: fix echo for nmake 2018-07-11 14:49:02 +02:00
engines.num Change the build of engines to use ordinal files for symbol export 2018-10-05 08:22:42 +02:00
err-to-raise Add merge-err-lines script 2019-09-19 09:27:38 -04:00
find-doc-nits Document most missing options 2020-01-29 18:42:31 +01:00
find-unused-errs Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
fix-includes Add util/fix-includes script 2019-09-28 20:26:37 +02:00
fix-includes.sed CRYPTO: split cipher_platform.h into algorithm specific headers 2019-12-19 13:31:29 +01:00
indent.pro Deprecated {OPENSSL,CRYPTO}_debug_mem_{push,pop} 2019-07-17 14:48:06 +02:00
libcrypto.num X509: Refactor X509_verify() and X509_REQ_verify() for better streamlining 2020-02-02 12:04:00 +01:00
libssl.num TLS: use EVP for HMAC throughout libssl. 2020-01-29 19:49:23 +10:00
local_shlib.com.in VMS: fix util/[un]local.com.in to handle attributes 2019-03-05 08:56:20 +01:00
merge-err-lines Add merge-err-lines script 2019-09-19 09:27:38 -04:00
missingcrypto111.txt Adjust all util/missing*.txt to include the section number 2019-12-21 22:53:54 +01:00
missingcrypto.txt New functions for PKCS8 attributes management - documentation 2020-01-24 15:09:09 +03:00
missingmacro111.txt Adjust all util/missing*.txt to include the section number 2019-12-21 22:53:54 +01:00
missingmacro.txt Add doc for TS_VERIFY_CTX_set_certs() 2020-01-16 11:28:04 +08:00
missingssl111.txt Adjust all util/missing*.txt to include the section number 2019-12-21 22:53:54 +01:00
missingssl.txt Adjust all util/missing*.txt to include the section number 2019-12-21 22:53:54 +01:00
mkbuildinf.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
mkdef.pl Change the logic and behaviour surrounding '--api' and 'no-deprecated' 2019-11-07 11:37:25 +01:00
mkdir-p.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
mkerr.pl Remove handling of outdated macro's 2019-12-10 18:43:45 +01:00
mknum.pl util/mknum.pl: output stats on unassigned symbols 2019-11-05 22:44:21 +01:00
mkrc.pl Generate include/openssl/opensslv.h 2019-10-18 12:22:00 +02:00
mktar.sh Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
openssl-format-source Remove unnecessary trailing whitespace 2019-02-05 16:25:11 +01:00
openssl-update-copyright Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
opensslwrap.sh util/opensslwrap.sh: adjust to define OPENSSL_MODULES as well 2019-07-15 16:14:35 +02:00
other.syms Fix some missing doc links. 2020-01-22 18:06:49 +01:00
process_docs.pl util/process_docs.pl: handle multiple source directories correctly 2018-12-21 09:23:51 +01:00
providers.num Add provider module infrastructure 2019-03-11 20:40:13 +01:00
shlib_wrap.sh.in Rework building: adapt some scripts 2019-01-21 19:31:32 +01:00
su-filter.pl Following the license change, modify the boilerplates in util/, tools/ 2018-12-06 14:17:23 +01:00
unlocal_shlib.com.in VMS: fix util/[un]local.com.in to handle attributes 2019-03-05 08:56:20 +01:00