Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:6517: Inside #if defined(SSL3_DEBUG)
   foreach(glob(base, paths), string fname) {   #ifdef SSL3_DEBUG    werror("Found PEM file %O, matching %O.\n",    Stdio.append_path(dir, fname), glob_pattern);   #endif    CertDB.register_pem_file(Stdio.append_path(dir, fname));    }    }    }    } -  CertDB.refresh_all_pem_files(force); +  +  if (CertDB.refresh_all_pem_files(force)) { +  +  // Update all open SSL/TLS ports with the new certificates. +  foreach(open_ports || ([]); ; mapping(string:mapping(int:Protocol)) ips) { +  foreach(ips || ([]); ; mapping(int:Protocol) ports) { +  foreach(ports || ([]); ; Protocol prot) { +  if (prot->certificates_changed) { +  prot->certificates_changed(UNDEFINED, !prot->bound);    } -  +  } +  } +  } +  } + }      protected BackgroundProcess scan_certs_process;      // Start a background process that scan for new certs every 10 minutes.   protected void start_scan_certs()   {    if (scan_certs_process) return;       scan_certs_process = BackgroundProcess(600, scan_certs);   }