Browse Source

fix: add missing definition of sha1

master
ThomasV 10 years ago
parent
commit
ebd5a565ed
  1. 1
      lib/paymentrequest.py
  2. 5
      lib/rsakey.py

1
lib/paymentrequest.py

@ -128,6 +128,7 @@ class PaymentRequest:
try:
x, ca = verify_cert_chain(cert.certificate)
except BaseException as e:
traceback.print_exc(file=sys.stderr)
self.error = str(e)
return False
# get requestor name

5
lib/rsakey.py

@ -14,10 +14,15 @@ import os
import math
import base64
import binascii
import hashlib
from pem import *
def SHA1(x):
return hashlib.sha1(x).digest()
# **************************************************************************
# PRNG Functions
# **************************************************************************

Loading…
Cancel
Save