backup: add support for openssl 1.1.0 options
The command for listing available algorithms have changed: old: openssl list-message-digest-algorithms new: openssl list -digest-algorithms
This commit is contained in:
parent
04635e7e80
commit
a821034653
@ -702,8 +702,12 @@ def get_supported_hmac_algo(hmac_algorithm=None):
|
|||||||
yield hmac_algorithm
|
yield hmac_algorithm
|
||||||
if hmac_algorithm != 'scrypt':
|
if hmac_algorithm != 'scrypt':
|
||||||
yield 'scrypt'
|
yield 'scrypt'
|
||||||
proc = subprocess.Popen(['openssl', 'list-message-digest-algorithms'],
|
proc = subprocess.Popen(
|
||||||
stdout=subprocess.PIPE)
|
'openssl list-message-digest-algorithms || '
|
||||||
|
'openssl list -digest-algorithms',
|
||||||
|
shell=True,
|
||||||
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.DEVNULL)
|
||||||
try:
|
try:
|
||||||
for algo in proc.stdout.readlines():
|
for algo in proc.stdout.readlines():
|
||||||
algo = algo.decode('ascii')
|
algo = algo.decode('ascii')
|
||||||
|
Loading…
Reference in New Issue
Block a user