Undo previous change, X509_check_issued() was correct.
authorBodo Möller <bodo@openssl.org>
Sun, 27 Jan 2002 17:41:12 +0000 (17:41 +0000)
committerBodo Möller <bodo@openssl.org>
Sun, 27 Jan 2002 17:41:12 +0000 (17:41 +0000)
[See
     Message-ID: <3BB07999.30432AD2@celocom.com>
     Date: Tue, 25 Sep 2001 13:33:29 +0100
     From: Dr S N Henson <drh@celocom.com>
     To: openssl-dev@openssl.org
     Subject: Re: Error in v3_purp.c
]

crypto/x509v3/v3_purp.c

index 3068711..b739e4f 100644 (file)
@@ -615,7 +615,7 @@ int X509_check_issued(X509 *issuer, X509 *subject)
                                        break;
                                }
                        }
-                       if(nm && X509_NAME_cmp(nm, X509_get_subject_name(issuer)))
+                       if(nm && X509_NAME_cmp(nm, X509_get_issuer_name(issuer)))
                                return X509_V_ERR_AKID_ISSUER_SERIAL_MISMATCH;
                }
        }