pike.git / lib / modules / Standards.pmod / X509.pmod

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:260:   //!   //! @param extensions   //! List of extensions as ASN.1 structures.   //!   //! @param serial   //! Serial number of the certificate. Defaults to generating a UUID   //! version1 value with random node. Some browsers will refuse   //! different certificates from the same signer with the same serial   //! number.   string make_selfsigned_certificate(Crypto.RSA|Crypto.DSA c, int ttl, -  array name, array|void extensions, +  mapping|array name, array|void extensions,    void|int serial)   {    if(!serial)    serial = (int)Gmp.mpz(Standards.UUID.make_version1(-1)->encode(), 256); -  Sequence dn = Certificate.build_distinguished_name(@name); +  Sequence dn = Certificate.build_distinguished_name(name);    return sign_key(dn, c, dn, serial, ttl, extensions);   }      class Verifier {    constant type = "none";    int(0..1) verify(object,string,string);    optional Crypto.RSA rsa;    optional Crypto.DSA dsa;   }