RPKI Engine
1.0
|
Public Member Functions | |
def | decode |
def | dump_to_disk |
def | encode |
def | pretty_print_content |
def | schema_check |
def | unwrap |
def | wrap |
Public Attributes | |
content | |
Static Public Attributes | |
dump_inbound_cms = None | |
If set, we write all inbound XML-CMS PDUs to disk, for debugging. | |
dump_outbound_cms = None | |
If set, we write all outbound XML-CMS PDUs to disk, for debugging. | |
tuple | econtent_oid = POWify_OID("id-ct-xml") |
def rpki::x509::XML_CMS_object::decode | ( | self, | |
xml | |||
) |
Decode XML and set inner content.
Definition at line 1212 of file x509.py.
Referenced by rpki::x509::CMS_object::extract(), and rpki::x509::CMS_object::verify().
def rpki::x509::XML_CMS_object::dump_to_disk | ( | self, | |
prefix | |||
) |
Write DER of current message to disk, for debugging.
Definition at line 1236 of file x509.py.
References rpki::x509::DER_object::get_DER(), rpki::x509::X509::get_DER(), rpki::x509::PKCS10::get_DER(), rpki::x509::RSA::get_DER(), rpki::x509::RSApublic::get_DER(), rpki::x509::CMS_object::get_DER(), and rpki::x509::CRL::get_DER().
def rpki::x509::XML_CMS_object::encode | ( | self | ) |
Encode inner content for signing.
Definition at line 1206 of file x509.py.
References rpki::publication::cms_msg::encoding, rpki::up_down::cms_msg::encoding, rpki::left_right::cms_msg::encoding, and rpki::x509::CMS_object::get_content().
Referenced by rpki::x509::CMS_object::sign().
def rpki::x509::XML_CMS_object::pretty_print_content | ( | self | ) |
Pretty print XML content of this message.
Definition at line 1218 of file x509.py.
References rpki::publication::cms_msg::encoding, rpki::up_down::cms_msg::encoding, rpki::left_right::cms_msg::encoding, and rpki::x509::CMS_object::get_content().
Referenced by schema_check().
def rpki::x509::XML_CMS_object::schema_check | ( | self | ) |
Handle XML RelaxNG schema check.
Definition at line 1224 of file x509.py.
References rpki::x509::CMS_object::get_content(), and pretty_print_content().
Referenced by unwrap(), and wrap().
def rpki::x509::XML_CMS_object::unwrap | ( | self, | |
ta | |||
) |
Unwrap a CMS-wrapped XML PDU and return Python objects.
Definition at line 1256 of file x509.py.
References dump_inbound_cms, rpki::x509::CMS_object::get_content(), rpki::rootd::cms_msg::saxify, rpki::xml_utils::sax_handler::saxify(), irbe_cli::left_right_cms_msg::saxify, irbe_cli::publication_cms_msg::saxify, rpki::publication::cms_msg::saxify, rpki::up_down::cms_msg::saxify, rpki::left_right::cms_msg::saxify, schema_check(), and rpki::x509::CMS_object::verify().
def rpki::x509::XML_CMS_object::wrap | ( | self, | |
msg, | |||
keypair, | |||
certs, | |||
crls = None |
|||
) |
Wrap an XML PDU in CMS and return its DER encoding.
Definition at line 1244 of file x509.py.
References dump_outbound_cms, rpki::x509::DER_object::get_DER(), rpki::x509::X509::get_DER(), rpki::x509::PKCS10::get_DER(), rpki::x509::RSA::get_DER(), rpki::x509::RSApublic::get_DER(), rpki::x509::CMS_object::get_DER(), rpki::x509::CRL::get_DER(), schema_check(), rpki::x509::CMS_object::set_content(), and rpki::x509::CMS_object::sign().
Reimplemented from rpki::x509::CMS_object.
rpki::x509::XML_CMS_object::dump_inbound_cms = None [static] |
rpki::x509::XML_CMS_object::dump_outbound_cms = None [static] |
tuple rpki::x509::XML_CMS_object::econtent_oid = POWify_OID("id-ct-xml") [static] |
Reimplemented from rpki::x509::CMS_object.