pike.git / lib / modules / SSL.pmod / Context.pike

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:828:   //! @throws   //! The function performs various validation of the @[key]   //! and @[certs], and throws errors if the validation fails.   //!   //! @seealso   //! @[find_cert()]   void add_cert(Crypto.Sign key, array(string(8bit)) certs,    array(string(8bit))|void extra_name_globs)   {    CertificatePair cp = CertificatePair(key, certs, extra_name_globs); -  -  cert_pairs += ({ cp }); -  -  cert_pairs_sorted = 0; -  -  cert_cache = ([]); +  add_cert(cp);   }   variant void add_cert(CertificatePair cp)   {    cert_pairs += ({ cp }); -  +     cert_pairs_sorted = 0; -  +     cert_cache = ([]);   }      // update the cached decoded authorities list   private void update_authorities()   {    authorities_cache = ({});    foreach(authorities, string a)    authorities_cache += ({ Standards.X509.decode_certificate(a)->    subject->get_der() });