Branch: Tag:

2014-09-30

2014-09-30 17:15:42 by Martin Nilsson <nilsson@opera.com>

Only attempt to import PEM CERTIFICATE parts.

1630:    if (pem) {    Standards.PEM.Messages messages = Standards.PEM.Messages(pem);    foreach(messages->fragments, string|Standards.PEM.Message m) { -  if (!objectp(m)) continue; +  if (!objectp(m) || m->pre!="CERTIFICATE" || !m->body) continue;    TBSCertificate tbs = verify_ca_certificate(m->body);    if (!tbs) continue;    string subj = tbs->subject->get_der();