Branch: Tag:

2014-05-18

2014-05-18 15:00:54 by Martin Nilsson <nilsson@opera.com>

More generic fix.

1726:    if(!verifiers && require_trust)    ERROR(CERT_ROOT_UNTRUSTED);    -  if( !arrayp(verifiers) ) -  verifiers = ({ verifiers }); -  +     // Is the root self signed?    if (tbs->issuer->get_der() == tbs->subject->get_der())    {
1738:    // always trust our own authority first, even if it is self signed.    if(!verifiers)    verifiers = ({ tbs->public_key }); -  } else if (objectp(verifiers)) { +  } +  +  if (objectp(verifiers))    verifiers = ({ verifiers });    } -  } +        else // otherwise, we make sure the chain is unbroken.    {