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

version» Context lines:

pike.git/lib/modules/SSL.pmod/Context.pike:803:   array(string) get_authorities()   {    return authorities;   }      protected array(string) authorities = ({});   array(string(8bit)) authorities_cache = ({});      //! Sets the list of trusted certificate issuers.   //! - //! @param a + //! @param issuers   //!   //! An array of certificate chains whose root is self signed (ie a   //! root issuer), and whose final certificate is an issuer that we   //! trust. The root of the certificate should be first certificate in   //! the chain. The string is a DER-encoded certificate, which   //! typically must be decoded using @[MIME.decode_base64] or   //! @[Standards.PEM.Messages] first.   //!   //! If this array is left empty, and the context is set to verify   //! certificates, a certificate chain must have a root that is self   //! signed. - void set_trusted_issuers(array(array(string)) i) + void set_trusted_issuers(array(array(string)) issuers)   { -  trusted_issuers = i; +  trusted_issuers = issuers;    update_trusted_issuers();   }      //! Get the list of trusted issuers. See @[set_trusted_issuers].   array(array(string)) get_trusted_issuers()   {    return trusted_issuers;   }      protected array(array(string)) trusted_issuers = ({});