| Index: third_party/tlslite/tlslite/X509.py
|
| diff --git a/third_party/tlslite/tlslite/X509.py b/third_party/tlslite/tlslite/X509.py
|
| index a47ddcfa2a29b46fb86d7505b73a78647ef4bf56..d8b8bccb1414c62093fbfb3e20259ea711bfe2a3 100644
|
| --- a/third_party/tlslite/tlslite/X509.py
|
| +++ b/third_party/tlslite/tlslite/X509.py
|
| @@ -13,11 +13,15 @@ class X509:
|
|
|
| @type publicKey: L{tlslite.utils.RSAKey.RSAKey}
|
| @ivar publicKey: The subject public key from the certificate.
|
| +
|
| + @type subject: L{array.array} of unsigned bytes
|
| + @ivar subject: The DER-encoded ASN.1 subject distinguished name.
|
| """
|
|
|
| def __init__(self):
|
| self.bytes = createByteArraySequence([])
|
| self.publicKey = None
|
| + self.subject = None
|
|
|
| def parse(self, s):
|
| """Parse a PEM-encoded X.509 certificate.
|
| @@ -63,6 +67,10 @@ class X509:
|
| else:
|
| subjectPublicKeyInfoIndex = 5
|
|
|
| + #Get the subject
|
| + self.subject = tbsCertificateP.getChildBytes(\
|
| + subjectPublicKeyInfoIndex - 1)
|
| +
|
| #Get the subjectPublicKeyInfo
|
| subjectPublicKeyInfoP = tbsCertificateP.getChild(\
|
| subjectPublicKeyInfoIndex)
|
|
|