From 45725e72b47ac69d0a3cb366c7008168c67f085a Mon Sep 17 00:00:00 2001 From: John Hensley Date: Mon, 20 Apr 2020 12:46:37 -0400 Subject: [PATCH] Update qa_loader for crypto_util changes The old CryptoUtil.getkey method, which actually returned a fingerprint, was renamed to get_fingerprint. --- securedrop/qa_loader.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/securedrop/qa_loader.py b/securedrop/qa_loader.py index f966af7a53..8f76be13e1 100755 --- a/securedrop/qa_loader.py +++ b/securedrop/qa_loader.py @@ -188,7 +188,10 @@ def new_reply(self, journalist_id, source_id): fname = "{}-{}-reply.gpg".format(source.interaction_count, source.journalist_filename) current_app.crypto_util.encrypt( next(replies), - [current_app.crypto_util.getkey(source.filesystem_id), sdconfig.JOURNALIST_KEY], + [ + current_app.crypto_util.get_fingerprint(source.filesystem_id), + sdconfig.JOURNALIST_KEY + ], current_app.storage.path(source.filesystem_id, fname), )