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

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:1236:   //! @[ext] as the extension payload. If the @[critical] flag is set   //! the extension will be marked as critical.   Sequence make_extension(Identifier id, Object ext, void|int critical)   {    array seq = ({ id });    if( critical )    seq += ({ Boolean(1) });    return Sequence( seq+({ OctetString(ext->get_der()) }) );   }    - int make_key_usage_flags(Crypto.Sign.State c) + protected int make_key_usage_flags(Crypto.Sign.State c)   {    int flags = KU_digitalSignature|KU_keyEncipherment;       // ECDSA certificates can be used for ECDH exchanges, which requires    // keyAgreement. Potentially we should make a nicer API than name    // prefix.    if( has_prefix(c->name(), "ECDSA") )    flags |= KU_keyAgreement;       return flags;