Skip to content

Commit

Permalink
Merge pull request #5200 from freedomofpress/fix-qa-loader-new-reply
Browse files Browse the repository at this point in the history
Update qa_loader for crypto_util changes
  • Loading branch information
zenmonkeykstop committed Apr 20, 2020
2 parents 174b29d + 45725e7 commit bc06d98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion securedrop/qa_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)

Expand Down

0 comments on commit bc06d98

Please sign in to comment.