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

version» Context lines:

pike.git/lib/modules/Tools.pmod/X509.pmod:1:   /* X509.pmod    *    * Some random functions for creating RFC-2459 style X.509 certificates.    *    */    + #if constant(Standards.ASN1.Types.asn1_sequence) +    import Standards.ASN1.Types;   import Standards.PKCS;      object make_time(int t)   {    mapping m = gmtime(t);       if (m->year >= 150)    throw( ({ "Tools.X509.make_time: "    "Times later than 2049 not supported yet\n",
pike.git/lib/modules/Tools.pmod/X509.pmod:445:    v = tbs->public_key;    }    else    v = authorities[tbs->issuer->get_der()];       return v && v->verify(cert->elements[1],    cert->elements[0]->get_der(),    cert->elements[2]->value)    && tbs;   } +  + #endif   Newline at end of file removed.