fix: avoid emptying nomcom session key when openssl complains about derivation (#4524)

This commit is contained in:
Robert Sparks 2022-09-30 08:05:01 -05:00 committed by GitHub
parent feab9fb385
commit 9b896e5869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,7 @@ def store_nomcom_private_key(request, year, private_key):
)
if code != 0:
log("openssl error: %s:\n Error %s: %s" %(command, code, error))
if error:
if error and error!=b"*** WARNING : deprecated key derivation used.\nUsing -iter or -pbkdf2 would be better.\n":
out = ''
request.session['NOMCOM_PRIVATE_KEY_%s' % year] = out