Expand description
Typed Python classes for each GeneralName variant (RFC 5280 §4.2.1.6).
Each variant of the ASN.1 GeneralName CHOICE is represented as a
separate frozen pyclass in the synta.general_name submodule. These
types are constructed by py_from_general_name, which is called from
the Python binding whenever typed GeneralName objects are needed.
Structs§
- PyDirectory
Name - A
directoryName [4]GeneralName (X.500 distinguished name). - PyDns
Name - A
dNSName [2]GeneralName (DNS host name). - PyEdi
Party Name - An
ediPartyName [5]GeneralName (raw DER, unusual in practice). - PyIP
Address - An
iPAddress [7]GeneralName. - PyOther
Name - An
otherName [0]GeneralName. - PyRegistered
Id - A
registeredID [8]GeneralName (OID). - PyRfc822
Name - An
rfc822Name [1]GeneralName (e-mail address). - PyUri
- A
uniformResourceIdentifier [6]GeneralName (URI). - PyX400
Address - An
x400Address [3]GeneralName (raw DER, unusual in practice).
Functions§
- decode_
general_ names_ to_ py - Decode a DER-encoded
SEQUENCE OF GeneralNameinto a Python list of typed general-name objects. - py_
from_ general_ name - Convert a Rust
GeneralName<'_>to the appropriate Python general-name object.