Apply a small patch from Diego R. Lopez <diego.lopez@rediris.es>,

making X509_check_issued() properly match an issuer that's found in a
Authority Key Identifier.
This commit is contained in:
Richard Levitte 2002-01-26 04:25:16 +00:00
parent 123c401967
commit 63810d8566

View File

@ -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;
}
}