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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:700:       // Return first matching chain.    foreach(cert_chains_domain; string g; array(CertificatePair) chains)    if( glob(g, domain) )    return chains;    }       return cert_chains_domain["*"];   }    + //! Returns a list of all server certificates added with @[add_cert]. + array(CertificatePair) get_certificates() + { +  mapping(CertificatePair:int) c = ([]); +  foreach(cert_chains_domain;; array(CertificatePair) chains) +  foreach(chains, CertificatePair p) +  c[p]++; +  return indices(c); + } +    //! Add a certificate.   //!   //! This function is used on both servers and clients to add   //! a key and chain of certificates to the set of certificate   //! candidates to use in @[find_cert()].   //!   //! On a server these are used in the normal initial handshake,   //! while on a client they are only used if a server requests   //! client certificate authentication.   //!