mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
update comment on x509 class
This commit is contained in:
parent
7a7e65d66c
commit
b03d11003e
1 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,10 @@ def decode_str(data):
|
||||||
|
|
||||||
|
|
||||||
class X509(tlslite.X509):
|
class X509(tlslite.X509):
|
||||||
""" Child class of tlslite.X509 that uses pyasn1 """
|
"""Child class of tlslite.X509 that uses pyasn1 to parse cert
|
||||||
|
information. Note: pyasn1 is a lot slower than tlslite, so we
|
||||||
|
should try to do everything in tlslite.
|
||||||
|
"""
|
||||||
|
|
||||||
def slow_parse(self):
|
def slow_parse(self):
|
||||||
self.cert = decoder.decode(str(self.bytes), asn1Spec=Certificate())[0]
|
self.cert = decoder.decode(str(self.bytes), asn1Spec=Certificate())[0]
|
||||||
|
|
Loading…
Add table
Reference in a new issue