openssl/include/crypto
Richard Levitte 10315851d0 X509: Refactor X509_PUBKEY processing to include provider side keys
When a SubjectPublicKeyInfo (SPKI) is decoded into an X509_PUBKEY
structure, the corresponding EVP_PKEY is automatically added as well.
This used to only support our built-in keytypes, and only in legacy
form.

This is now refactored by making The ASN1 implementation of the
X509_PUBKEY an EXTERN_ASN1, resulting in a more manual implementation
of the basic support routines.  Specifically, the d2i routine will do
what was done in the callback before, and try to interpret the input
as an EVP_PKEY, first in legacy form, and then using OSSL_DECODER.

Fixes #13893

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14281)
2021-02-24 10:17:14 +01:00
..
__DECC_INCLUDE_EPILOGUE.H
__DECC_INCLUDE_PROLOGUE.H
aes_platform.h Update copyright year 2021-02-18 15:05:17 +00:00
aria.h Update copyright year 2021-02-18 15:05:17 +00:00
asn1_dsa.h Update copyright year 2021-02-18 15:05:17 +00:00
asn1.h include/crypto: add a few missing #pragma once directives 2021-02-10 23:20:57 +01:00
asn1err.h Update copyright year 2020-11-26 14:18:57 +00:00
async.h Update copyright year 2021-02-18 15:05:17 +00:00
asyncerr.h Update copyright year 2020-11-26 14:18:57 +00:00
bioerr.h Update copyright year 2020-11-26 14:18:57 +00:00
bn_conf.h.in Update copyright year 2021-02-18 15:05:17 +00:00
bn_dh.h
bn_srp.h
bn.h Update copyright year 2021-02-18 15:05:17 +00:00
bnerr.h Update copyright year 2020-11-26 14:18:57 +00:00
buffererr.h Update copyright year 2020-11-26 14:18:57 +00:00
chacha.h Update copyright year 2021-02-18 15:05:17 +00:00
cmll_platform.h Update copyright year 2021-02-18 15:05:17 +00:00
cmperr.h Update copyright year 2020-11-26 14:18:57 +00:00
cms.h Fix external symbols for cms. 2021-02-22 09:16:36 +10:00
cmserr.h Update copyright year 2020-11-26 14:18:57 +00:00
comperr.h Update copyright year 2020-11-26 14:18:57 +00:00
conferr.h Update copyright year 2020-11-26 14:18:57 +00:00
crmferr.h Update copyright year 2020-11-26 14:18:57 +00:00
cryptlib.h Update copyright year 2021-02-18 15:05:17 +00:00
cryptoerr.h openssl_hexstr2buf_sep(): Prevent misleading 'malloc failure' errors on short input 2020-12-10 15:19:55 +01:00
cterr.h Update copyright year 2020-11-26 14:18:57 +00:00
ctype.h Update copyright year 2021-02-18 15:05:17 +00:00
decoder.h Update copyright year 2021-02-18 15:05:17 +00:00
decodererr.h Update copyright year 2020-11-26 14:18:57 +00:00
des_platform.h Update copyright year 2021-02-18 15:05:17 +00:00
dh.h Add EVP_PKEY_public_check_quick. 2021-02-22 13:31:31 +10:00
dherr.h Update copyright year 2020-11-26 14:18:57 +00:00
dsa.h Update copyright year 2021-02-18 15:05:17 +00:00
dsaerr.h Update copyright year 2020-11-26 14:18:57 +00:00
dso_conf.h.in Update copyright year 2021-02-18 15:05:17 +00:00
ec.h Add EVP_PKEY_public_check_quick. 2021-02-22 13:31:31 +10:00
ecerr.h Update copyright year 2020-11-26 14:18:57 +00:00
ecx.h Update copyright year 2021-02-18 15:05:17 +00:00
encoder.h
encodererr.h Update copyright year 2020-11-26 14:18:57 +00:00
engine.h
engineerr.h Update copyright year 2020-11-26 14:18:57 +00:00
err.h Update copyright year 2021-02-18 15:05:17 +00:00
ess.h Fix external symbols for cms. 2021-02-22 09:16:36 +10:00
esserr.h Update copyright year 2020-11-26 14:18:57 +00:00
evp.h EVP: Implement data-driven translation between known ctrl and OSSL_PARAMs 2021-02-23 13:41:48 +01:00
evperr.h Don't overflow the output length in EVP_CipherUpdate calls 2021-02-16 11:40:12 +00:00
httperr.h Update copyright year 2020-11-26 14:18:57 +00:00
lhash.h Update copyright year 2021-02-18 15:05:17 +00:00
md32_common.h
modes.h
objects.h
objectserr.h Update copyright year 2020-11-26 14:18:57 +00:00
ocsperr.h Update copyright year 2020-11-26 14:18:57 +00:00
pem.h Update copyright year 2021-02-18 15:05:17 +00:00
pemerr.h Update copyright year 2020-11-26 14:18:57 +00:00
pkcs7.h Fix external symbols for pkcs7. 2021-02-22 09:16:37 +10:00
pkcs7err.h Update copyright year 2020-11-26 14:18:57 +00:00
pkcs12err.h Update copyright year 2020-11-26 14:18:57 +00:00
poly1305.h Update copyright year 2021-02-18 15:05:17 +00:00
punycode.h Update copyright year 2021-02-18 15:05:17 +00:00
rand_pool.h Update copyright year 2021-02-18 15:05:17 +00:00
rand.h Update copyright year 2021-02-18 15:05:17 +00:00
randerr.h Update copyright year 2020-11-26 14:18:57 +00:00
rsa.h Update copyright year 2021-02-18 15:05:17 +00:00
rsaerr.h Update copyright year 2020-11-26 14:18:57 +00:00
security_bits.h Update copyright year 2021-02-18 15:05:17 +00:00
sha.h Update copyright year 2021-02-18 15:05:17 +00:00
siphash.h Update copyright year 2021-02-18 15:05:17 +00:00
siv.h
sm2.h include/crypto: add a few missing #pragma once directives 2021-02-10 23:20:57 +01:00
sm2err.h ERR: Rebuild all generated error headers and source files 2021-02-05 14:09:16 +01:00
sm4.h Update copyright year 2021-02-18 15:05:17 +00:00
sparse_array.h Update copyright year 2021-02-18 15:05:17 +00:00
store.h Update copyright year 2021-02-18 15:05:17 +00:00
storeerr.h Update copyright year 2020-11-26 14:18:57 +00:00
tserr.h Update copyright year 2020-11-26 14:18:57 +00:00
types.h Update copyright year 2021-01-28 13:54:57 +01:00
uierr.h Update copyright year 2020-11-26 14:18:57 +00:00
x509.h X509: Refactor X509_PUBKEY processing to include provider side keys 2021-02-24 10:17:14 +01:00
x509err.h Update copyright year 2020-11-26 14:18:57 +00:00
x509v3err.h Update copyright year 2020-11-26 14:18:57 +00:00