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
build.info
cavs-to-evptest.pl
check-malloc-errs
ck_errf.pl
copy.pl
dofile.pl Refactor the tls/dlts version options 2020-01-13 20:48:03 +03:00
echo.pl
engines.num
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
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
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
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
mkdef.pl Change the logic and behaviour surrounding '--api' and 'no-deprecated' 2019-11-07 11:37:25 +01:00
mkdir-p.pl
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
openssl-format-source
openssl-update-copyright
opensslwrap.sh
other.syms Fix some missing doc links. 2020-01-22 18:06:49 +01:00
process_docs.pl
providers.num
shlib_wrap.sh.in
su-filter.pl
unlocal_shlib.com.in