mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix missing occurences of X509.parse
This commit is contained in:
parent
e8d30129ea
commit
476d198be9
1 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ class TcpInterface(threading.Thread):
|
|||
cert = f.read()
|
||||
try:
|
||||
x = x509.X509()
|
||||
x.parse(cert)
|
||||
x.parseBinary(cert)
|
||||
except:
|
||||
traceback.print_exc(file=sys.stderr)
|
||||
self.print_error("wrong certificate")
|
||||
|
@ -344,7 +344,7 @@ def check_host_name(peercert, name):
|
|||
def check_cert(host, cert):
|
||||
try:
|
||||
x = x509.X509()
|
||||
x.parse(cert)
|
||||
x.parseBinary(cert)
|
||||
except:
|
||||
traceback.print_exc(file=sys.stdout)
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue