Skip to content

Latest commit

 

History

History
78 lines (39 loc) · 1.83 KB

PyCTL.md

File metadata and controls

78 lines (39 loc) · 1.83 KB

PyCTL

PyCTL_CONTEXT Object

Object containing a Certificate Trust List

Methods

Properties

  • int HCTL_CONTEXT

    Raw message handle

PyCTL_CONTEXT.CertDeleteCTLFromStore

CertDeleteCTLFromStore() Removes the CTL from the store that it is contained in

PyCTL_CONTEXT.CertEnumCTLContextProperties

(int,...) = CertEnumCTLContextProperties() Lists property id's for the context

PyCTL_CONTEXT.CertEnumSubjectInSortedCTL

((str,str),...) = CertEnumSubjectInSortedCTL() Retrieves trusted subjects contained in CRL

Return Value

Returns a sequence of tuples containing two strings (SubjectIdentifier, EncodedAttributes)

PyCTL_CONTEXT.CertFreeCTLContext

CertFreeCTLContext() Closes the CTL handle

PyCTL_CONTEXT.CertSerializeCTLStoreElement

string = CertSerializeCTLStoreElement(Flags) Serializes the CTL and its properties

Parameters

  • Flags=0 : int

    Reserved, use only 0 if passed in

PyCTL_USAGE Object

Sequence of string OIDs (szOID_*). This struct is identical to CERT_ENHKEY_USAGE.