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

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:777:    }   }      //! Creates the ASN.1 TBSCertificate sequence (see RFC2459 section   //! 4.1) to be signed (TBS) by the CA. version is explicitly set to   //! v3, and @[extensions] is optionally added to the sequence.   //! issuerUniqueID and subjectUniqueID are not supported.   TBSCertificate make_tbs(Sequence issuer, Sequence algorithm,    Sequence subject, Sequence keyinfo,    Integer serial, Sequence validity, -  array|void extensions) +  array|int(0..0)|void extensions)   {    TBSCertificate tbs = TBSCertificate();    tbs->serial = serial->value;    tbs->algorithm = algorithm;    tbs->issuer = issuer;    tbs->validity = validity;    tbs->subject = subject;    tbs->keyinfo = keyinfo;    tbs->raw_extensions = extensions && Sequence(extensions);    return tbs;
pike.git/lib/modules/Standards.pmod/X509.pmod:801:   //! 4.1) to be signed (TBS) by the CA. version is explicitly set to   //! v3, validity is calculated based on time and @[ttl], and   //! @[extensions] is optionally added to the sequence.   //! issuerUniqueID and subjectUniqueID are not supported.   //!   //! @note   //! Prior to Pike 8.0 this function returned a plain @[Sequence] object.   variant TBSCertificate make_tbs(Sequence issuer, Sequence algorithm,    Sequence subject, Sequence keyinfo,    Integer serial, int ttl, -  array|void extensions) +  array|int(0..0)|void extensions)   {    int now = time();    Sequence validity = Sequence( ({ UTC()->set_posix(now),    UTC()->set_posix(now + ttl) }) );       return make_tbs(issuer, algorithm, subject, keyinfo,    serial, validity, extensions);   }      //! Sign the provided TBSCertificate.