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

version» Context lines:

pike.git/lib/modules/Tools.pmod/X509.pmod:1:   #pike __REAL_VERSION__   //#pragma strict_types      /* -  * $Id: X509.pmod,v 1.29 2004/02/05 19:47:27 nilsson Exp $ +  * $Id: X509.pmod,v 1.30 2004/02/07 15:53:55 nilsson Exp $    *    * Some random functions for creating RFC-2459 style X.509 certificates.    *    */      #if constant(Standards.ASN1.Types.Sequence)      import Standards.ASN1.Types;   import Standards.PKCS;   
pike.git/lib/modules/Tools.pmod/X509.pmod:148:    extension_sequence(extensions) }) )    : Sequence( ({ serial,    algorithm,    issuer,    validity,    subject,    keyinfo }) ));   }      //! - string make_selfsigned_dsa_certificate(Crypto.dsa dsa, int ttl, array name, + string make_selfsigned_dsa_certificate(Crypto.DSA dsa, int ttl, array name,    array|void extensions)   {    Integer serial = Integer(1); /* Hard coded serial number */    int now = time();    Sequence validity = Sequence( ({ make_time(now), make_time(now + ttl) }) );       Sequence signature_algorithm = Sequence( ({ Identifiers.dsa_sha_id }) );       Sequence keyinfo = Sequence(    ({ /* Use an identifier with parameters */