From: Richard Levitte Date: Sat, 26 Jan 2002 04:25:16 +0000 (+0000) Subject: Apply a small patch from Diego R. Lopez , X-Git-Tag: OpenSSL-engine-0_9_6c^2^2~59 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=63810d85666f75322f5b5548027f283efd48162e;p=oweals%2Fopenssl.git Apply a small patch from Diego R. Lopez , making X509_check_issued() properly match an issuer that's found in a Authority Key Identifier. --- diff --git a/crypto/x509v3/v3_purp.c b/crypto/x509v3/v3_purp.c index b739e4fd83..30687119a3 100644 --- a/crypto/x509v3/v3_purp.c +++ b/crypto/x509v3/v3_purp.c @@ -615,7 +615,7 @@ int X509_check_issued(X509 *issuer, X509 *subject) break; } } - if(nm && X509_NAME_cmp(nm, X509_get_issuer_name(issuer))) + if(nm && X509_NAME_cmp(nm, X509_get_subject_name(issuer))) return X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH; } }