fix: add missing definition of sha1
This commit is contained in:
parent
62643cbc18
commit
ebd5a565ed
|
@ -128,6 +128,7 @@ class PaymentRequest:
|
||||||
try:
|
try:
|
||||||
x, ca = verify_cert_chain(cert.certificate)
|
x, ca = verify_cert_chain(cert.certificate)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
|
traceback.print_exc(file=sys.stderr)
|
||||||
self.error = str(e)
|
self.error = str(e)
|
||||||
return False
|
return False
|
||||||
# get requestor name
|
# get requestor name
|
||||||
|
|
|
@ -14,10 +14,15 @@ import os
|
||||||
import math
|
import math
|
||||||
import base64
|
import base64
|
||||||
import binascii
|
import binascii
|
||||||
|
import hashlib
|
||||||
|
|
||||||
from pem import *
|
from pem import *
|
||||||
|
|
||||||
|
|
||||||
|
def SHA1(x):
|
||||||
|
return hashlib.sha1(x).digest()
|
||||||
|
|
||||||
|
|
||||||
# **************************************************************************
|
# **************************************************************************
|
||||||
# PRNG Functions
|
# PRNG Functions
|
||||||
# **************************************************************************
|
# **************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue