Branch: Tag:

2015-11-08

2015-11-08 00:04:36 by Martin Nilsson <nilsson@fastmail.com>

Always set the cert_data after verification, even if it fails, as the error codes are listed in the mapping.

306:    Standards.X509.verify_certificate_chain(certs,    context->trusted_issuers_cache,    context->require_trust); -  if(result->verified) -  { +     // This data isn't actually used internally.    session->cert_data = result; -  +  +  if(result->verified)    return [array(Standards.X509.TBSCertificate)]result->certificates; -  } +        return 0;   }