openssl/crypto
Tomas Mraz 5fd7eb5c8a Improve the implementation of X509_STORE_CTX_get1_issuer()
It is possible for the stack of X509_OBJECTs held in an X509_STORE_CTX to
have a custom compare function associated with it. Normally (by default)
this uses X509_NAME_cmp(). The X509_STORE_CTX_get1_issuer() function
assumed that it would always be X509_NAME_cmp().

By implementing OPENSSL_sk_find_all() function we can avoid explicitly
using X509_NAME_cmp() in X509_STORE_CTX_get1_issuer().

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14728)
2021-04-28 11:19:34 +02:00
..
aes
aria Update copyright year 2021-04-08 13:04:41 +01:00
asn1 ASN1: Ensure that d2i_ASN1_OBJECT() frees the strings on ASN1_OBJECT reuse 2021-04-27 12:43:52 +02:00
async Update copyright year 2021-04-08 13:04:41 +01:00
bf
bio Removed dead code in linebuffer_ctrl() 2021-04-22 16:45:57 +02:00
bn Rename some globals, add ossl prefix. 2021-04-28 10:16:32 +10:00
buffer
camellia
cast
chacha
cmac Update copyright year 2021-04-22 14:38:44 +01:00
cmp Improve ossl_cmp_build_cert_chain(); publish it as X509_build_chain() 2021-04-20 10:47:24 +02:00
cms Remove an unused parameter 2021-04-22 18:11:18 +02:00
comp Add RUN_ONCE support to zlib init 2021-04-22 17:41:55 +02:00
conf Resurrect and modernize C++Builder config 2021-04-19 11:05:54 +02:00
crmf Prefer fetch over legacy get_digestby/get_cipherby 2021-04-28 09:38:31 +02:00
ct Update copyright year 2021-04-08 13:04:41 +01:00
des
dh Fixes related to separation of DH and DHX types 2021-04-26 19:52:11 +02:00
dsa Update copyright year 2021-04-22 14:38:44 +01:00
dso
ec Fix potential NULL dereference in ossl_ec_key_dup() 2021-04-22 16:46:20 +02:00
encode_decode ENCODER & DECODER: Allow decoder implementations to specify "carry on" 2021-04-21 10:53:03 +02:00
engine Update copyright year 2021-04-08 13:04:41 +01:00
err Fix typos 2021-04-22 11:16:35 +10:00
ess Prefer fetch over legacy get_digestby/get_cipherby 2021-04-28 09:38:31 +02:00
evp Deprecate EVP_PKEY_cmp() and EVP_PKEY_cmp_parameters(). 2021-04-27 09:45:53 +10:00
ffc Fixes related to separation of DH and DHX types 2021-04-26 19:52:11 +02:00
hmac
http http/http_lib.c: Include stdio.h for sscanf() 2021-04-22 17:45:13 +02:00
idea Update copyright year 2021-04-08 13:04:41 +01:00
kdf
lhash Update copyright year 2021-04-08 13:04:41 +01:00
md2
md4
md5
mdc2
modes Update copyright year 2021-04-08 13:04:41 +01:00
objects Update copyright year 2021-04-08 13:04:41 +01:00
ocsp Prefer fetch over legacy get_digestby/get_cipherby 2021-04-28 09:38:31 +02:00
pem pem: remove references to EVP_sha1() 2021-04-21 09:27:51 +10:00
perlasm
pkcs7 Modify OBJ_nid2sn(OBJ_obj2nid(...)) occurences to use OBJ_obj2txt() 2021-04-18 10:10:24 +02:00
pkcs12 Update copyright year 2021-04-22 14:38:44 +01:00
poly1305 Update copyright year 2021-04-08 13:04:41 +01:00
property Update copyright year 2021-04-08 13:04:41 +01:00
rand Update copyright year 2021-04-08 13:04:41 +01:00
rc2
rc4
rc5
ripemd
rsa Detect low-level engine and app method based keys 2021-04-19 11:36:16 +02:00
seed
sha
siphash Fix a TODO(3.0) in the siphash code 2021-03-17 10:16:21 +10:00
sm2 Fix up issues found when running evp_extra_test with a non-default library context 2021-03-17 17:51:16 +10:00
sm3 Add "origin" field to EVP_CIPHER, EVP_MD 2021-04-18 10:03:07 +02:00
sm4 Update copyright year 2021-04-08 13:04:41 +01:00
srp srp: remove references to EVP_sha1() 2021-04-21 09:27:51 +10:00
stack Improve the implementation of X509_STORE_CTX_get1_issuer() 2021-04-28 11:19:34 +02:00
store crypto/store/ossl_result.c: Better filtering of errors 2021-04-23 20:22:49 +02:00
ts Prefer fetch over legacy get_digestby/get_cipherby 2021-04-28 09:38:31 +02:00
txt_db
ui Update copyright year 2021-04-08 13:04:41 +01:00
whrlpool Update copyright year 2021-03-11 13:27:36 +00:00
x509 Improve the implementation of X509_STORE_CTX_get1_issuer() 2021-04-28 11:19:34 +02:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c
armv4cpuid.pl
asn1_dsa.c Update copyright year 2021-04-08 13:04:41 +01:00
bsearch.c
build.info Support DLL builds + Fix C RTL variants 2021-04-19 11:05:54 +02:00
c64xpluscpuid.pl
context.c Remove obsolete comment 2021-04-22 21:32:50 +02:00
core_algorithm.c Add type_name member to provided methods and use it 2021-04-26 12:05:05 +02:00
core_fetch.c
core_namemap.c CORE: pre-populate the namemap with legacy OIDs too 2021-04-18 10:10:24 +02:00
cpt_err.c
cpuid.c Refactor CPUID code 2021-04-02 16:39:13 +02:00
cryptlib.c Refactor CPUID code 2021-04-02 16:39:13 +02:00
ctype.c Update copyright year 2021-04-08 13:04:41 +01:00
cversion.c
der_writer.c
dllmain.c
ebcdic.c
ex_data.c Fix external symbols for crypto_* 2021-03-18 17:35:10 +10:00
getenv.c
ia64cpuid.S
info.c
init.c Add RUN_ONCE support to zlib init 2021-04-22 17:41:55 +02:00
initthread.c Convert a TODO(3.0) in OPENSSL_thread_stop_ex to a comment 2021-03-14 15:40:25 +10:00
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
mem_clr.c
mem_sec.c Update copyright year 2021-04-08 13:04:41 +01:00
mem.c
mips_arch.h
o_dir.c
o_fopen.c
o_init.c
o_str.c Update copyright year 2021-04-08 13:04:41 +01:00
o_time.c Update copyright year 2021-03-11 13:27:36 +00:00
packet.c
param_build_set.c Update copyright year 2021-03-11 13:27:36 +00:00
param_build.c Replace OSSL_PARAM_BLD_free_params() with OSSL_PARAM_free(). 2021-04-12 16:55:30 +10:00
params_dup.c params_dup: fix off by one error that allows array overreach. 2021-04-21 08:57:42 +10:00
params_from_text.c params: fix coverity 1473069: unchecked return values 2021-03-26 08:46:02 +10:00
params.c Fix potential NULL dereference in OSSL_PARAM_get_utf8_string() 2021-04-22 16:46:20 +02:00
pariscid.pl
passphrase.c
ppc_arch.h
ppccap.c crypto/ppccap.c: Remove useless TODO 3.0 2021-03-04 14:15:01 +01:00
ppccpuid.pl
provider_conf.c Update copyright year 2021-03-11 13:27:36 +00:00
provider_core.c property: check return values from the property locking calls. 2021-04-08 17:46:35 +10:00
provider_local.h Update copyright year 2021-04-08 13:04:41 +01:00
provider_predefined.c Update copyright year 2021-04-08 13:04:41 +01:00
provider.c rename ossl_provider_forall_loaded to ossl_provider_doall_activated 2021-03-12 09:14:00 +10:00
punycode.c
README-sparse_array.md
s390x_arch.h
s390xcap.c
s390xcpuid.pl
self_test_core.c
sparc_arch.h
sparccpuid.S
sparcv9cap.c
sparse_array.c Update copyright year 2021-04-08 13:04:41 +01:00
threads_lib.c
threads_none.c Update copyright year 2021-04-08 13:04:41 +01:00
threads_pthread.c Always check CRYPTO_LOCK_{read,write}_lock 2021-03-14 15:33:34 +10:00
threads_win.c Always check CRYPTO_LOCK_{read,write}_lock 2021-03-14 15:33:34 +10:00
trace.c Update copyright year 2021-04-08 13:04:41 +01:00
uid.c
vms_rms.h
x86_64cpuid.pl Update copyright year 2021-04-08 13:04:41 +01:00
x86cpuid.pl