{
return FALSE;
}
- if (!this->issuer->equals(this->issuer, issuer->get_subject(issuer)))
- {
- return FALSE;
- }
if (!(x509->get_flags(x509) & X509_CA))
{
return FALSE;
}
}
+ if (!this->issuer->equals(this->issuer, issuer->get_subject(issuer)))
+ {
+ return FALSE;
+ }
if (!sigcheck)
{
return TRUE;
return NULL;
}
- /* check if the certificate self-signed */
- if (this->subject->equals(this->subject, this->issuer) &&
- issued_by(this, &this->public.interface.interface, TRUE))
+ /* check if the certificate is self-signed */
+ if (issued_by(this, &this->public.interface.interface, TRUE))
{
this->flags |= X509_SELF_SIGNED;
}