Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:2785:    string tmp2 = dn[Standards.PKCS.Identifiers.at_ids.commonName];    if (tmp2) {    if (tmp) {    tmp = tmp2 + " (" + tmp + ")";    } else {    tmp = tmp2;    }    }    if (tmp) {    res += ({ -  sprintf("<td style='white-space:nowrap'>" + +  sprintf("<td style='white-space:nowrap;vertical-align:top'>" +    LOC_C(0, "Issued by") +    "</td><td>%s</td>",    Roxen.html_encode_string(tmp)),    });    }    }       tmp = Roxen.html_encode_string(Calendar.Second(tbs->not_after)->    format_time());    if (tbs->not_after < time(1)) {
Roxen.git/server/base_server/roxen.pike:2818:    "<td><font color='&usr.warncolor;'>%s</font>\n"    "<img src='&usr.err-2;' /></td>",    LOC_C(0, "Expires"),    tmp),    });    } else {    res += ({    sprintf("<td>%s</td><td>%s</td>", LOC_C(0, "Expires"), tmp),    });    } +  +  mapping keypair_metadata = CertDB.get_keypair_metadata(keypair_id); +  +  array(string) paths = keypair_metadata->certs->pem_path + +  ({ keypair_metadata->key->pem_path }); +  if (sizeof(paths)) { +  paths = Array.uniq(paths); +  res += ({ +  sprintf("<td style='vertical-align:top'>%s</td><td><tt>%s</tt></td>", +  LOC_C(0, "Path(s)"), +  map(paths, Roxen.html_encode_string) * "</tt><br/><tt>") +  });    } -  +  }       return res;    }       string render_form(RequestID id, void|mapping additional_args) {    array(string) current = map(query(), _name);    string res = "<table width='100%'>\n";    foreach( get_choice_list(); int i; mixed elem ) {    if (i != 0) {    res += "<tr><td colspan='3'><hr/></td></tr>\n";