;ò Æp!?c@sÑdZdkZdkZdkZdklZdkZdkZheid<ei d<ei d<ei d<ei d This module is distributed under the terms of the GPL (GNU GENERAL PUBLIC LICENSE) Version 2 (see http://www.gnu.org/copyleft/gpl.html) $Id: x500.py,v 1.13 2003/07/25 18:02:46 michael Exp $ N(sasn1sasciist61-8sutf-8s utf-16-besAttributeTypeAndValuecBs)tZdZd„Zd„Zd„ZRS(sí Class for X.500 attributetype / value pairs AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY DEFINED BY AttributeType cCstii||ƒdS(N(sasn1sSequences__init__sselfsval(sselfsval((s./pylib/mspki/x500.pys__init__)scCs,dt|idƒt|idƒfSdS(Ns%s: %sii(sstrsselfsval(sself((s./pylib/mspki/x500.pys__repr__,scCst|ƒSdS(N(sreprsself(sself((s./pylib/mspki/x500.pys__html__/s(s__name__s __module__s__doc__s__init__s__repr__s__html__(((s./pylib/mspki/x500.pysAttributeTypeAndValues   sRelativeDistinguishedNamecBstZdZRS(st Class for X.500 relative distinguished names RelativeDistinguishedName ::= SET OF AttributeTypeAndValue (s__name__s __module__s__doc__(((s./pylib/mspki/x500.pysRelativeDistinguishedName2s sNamecBsPtZdZd„Zedd„Zedd„Zed„Zedd„ZRS(s‰ Class for X.500 distinguished names Name ::= CHOICE { RDNSequence } RDNSequence ::= SEQUENCE OF RelativeDistinguishedName c Cshgi}|D]J}||didt|didit|didiƒfƒq~|_dS(Nii( sappends_[1]svalsisunicodesstrtag2charsetstagsselfs_name(sselfsvalsis_[1]((s./pylib/mspki/x500.pys__init__Dssutf-8cCsLti}gi}|iD]'}|||d|ƒ|dfƒq~SdS(s<Distinguished Name object with OIDs replaced by descriptionsiiN( s asn1helpersGetOIDDescriptionsfsappends_[1]sselfs_namesisoids(sselfsoidsscharsetsfsis_[1]((s./pylib/mspki/x500.pys __descr__Js cCsn|o|i|ƒ}n |i}digi}|D])\}}|d||i |ƒfƒq7~ƒSdS(sñ String representation of distinguished name for displaying This mimics the string output behaviour of OpenSSL. If parameter oids is set (dictionary returned by asn1.parseCfg() descriptions are used instead of OIDs. ss/%s=%sN( soidssselfs __descr__srdnlists_namesjoinsappends_[1]s attr_types attr_valuesencodescharset(sselfsoidsscharsetsrdnlists_[1]s attr_values attr_type((s./pylib/mspki/x500.pys__str__Rs  cCsx|o|i|ƒ}n |i}|iƒdigi}|D])\}}|d||i dƒfƒqA~ƒSdS(s® See RFC2253: String representation of X.500 DNs If parameter oids is set (dictionary returned by asn1.parseCfg() descriptions are used instead of OIDs. s,s%s=%ssutf-8N( soidssselfs __descr__srdnlists_namesreversesjoinsappends_[1]s attr_types attr_valuesencode(sselfsoidssrdnlists_[1]s attr_values attr_type((s./pylib/mspki/x500.pys__repr__cs   c Csr|o|i|ƒ}n |i}ddigi}|D])\}}|d||i |ƒfƒq:~ƒSdS(sº HTML-formatted string representation of distinguished name. If parameter oids is set (dictionary returned by asn1.parseCfg() descriptions are used instead of OIDs. s
%s
s s
%s
%s
N( soidssselfs __descr__srdnlists_namesjoinsappends_[1]s attr_types attr_valuesencodescharset(sselfsoidsscharsetsrdnlists_[1]s attr_values attr_type((s./pylib/mspki/x500.pys__html__ts  ( s__name__s __module__s__doc__s__init__sNones __descr__s__str__s__repr__s__html__(((s./pylib/mspki/x500.pysName:s   (s__doc__ssyssstringst61_8spiscessasn1sutctimes asn1helpersPRINTABLE_STRINGs T61STRINGs IA5STRINGs UTF8STRINGs BMPSTRINGsstrtag2charsetsSequencesAttributeTypeAndValuesSetsRelativeDistinguishedNamesName( s asn1helpersRelativeDistinguishedNamesstringsstrtag2charsetst61_8sasn1ssyssutctimesNamesAttributeTypeAndValue((s./pylib/mspki/x500.pys? s  B