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

version» Context lines:

pike.git/lib/modules/Standards.pmod/X509.pmod:358: Inside #if constant(Crypto.ECC.Curve)
      Sequence params = seq[1];    return ECDSAVerifier(str->value, params->get_der());    }   #endif       DBG("make_verifier: Unknown algorithm identifier: %O\n", seq[0]);   }      //! Represents a TBSCertificate. + //! + //! @note + //! Was not compatible with @[Standards.ASN1.Types.Sequence] + //! Prior to Pike 8.0.   class TBSCertificate   {    inherit Sequence;       protected string internal_der;       //!    void `der=(string asn1)    {    internal_der = UNDEFINED;
pike.git/lib/modules/Standards.pmod/X509.pmod:449:    void `issuer=(Sequence i)    {    low_set(2, i);    }    Sequence `issuer()    {    return low_get(2);    }       //! +  void `validity=(Sequence v) +  { +  // FIXME: Validate? +  low_set(3, v); +  } +  Sequence `validity() +  { +  return low_get(3); +  } +  +  //!    void `not_before=(int t)    {    Sequence validity = low_get(3);    validity->elements[0] = UTC()->set_posix(t);    internal_der = UNDEFINED;    }    int `not_before()    {    Sequence validity = low_get(3);    return validity[0]->get_posix();
pike.git/lib/modules/Standards.pmod/X509.pmod:487:    low_set(4, s);    }    Sequence `subject()    {    return low_get(4);    }       protected Verifier internal_public_key;       //! +  void `keyinfo=(Sequence ki) +  { +  internal_public_key = make_verifier(ki); +  low_set(5, ki); +  } +  Sequence `keyinfo() +  { +  return low_get(5); +  } +  +  //!    void `public_key=(Verifier v)    {    internal_public_key = v;    low_set(5, v->pkc->pkcs_public_key());    }    Verifier `public_key()    {    return internal_public_key;    }