pike.git / lib / modules / Standards.pmod / X509.pmod

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:1622:    };       foreach(root_cert_dirs, string dir) {    if (!Stdio.is_dir(dir)) continue;       int found;       // Try the merged certificate files first.    foreach(({ "ca-certificates.crt", "ca-bundle.crt", "ca-bundle.trust.crt" }),    string fname) { +  string pem = Stdio.read_bytes(combine_path(dir, fname));    if (pem) {    Standards.PEM.Messages messages = Standards.PEM.Messages(pem);    foreach(messages->get_certificates(), string m) {    TBSCertificate tbs = verify_ca_certificate(m);    if (!tbs) continue;    string subj = tbs->subject->get_der();    if( !res[subj] || !has_value(res[subj], tbs->public_key ) )    {    update_expire(tbs);    res[subj] += ({ tbs->public_key });