Update opnsense_checkmk_agent.py

Fix encrypted agent output
This commit is contained in:
Thorsten Spille 2023-10-11 19:55:35 +02:00 committed by GitHub
parent 26a02a1853
commit 50cf4b1128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ class checkmk_checker(object):
SALT = b"Salted__" SALT = b"Salted__"
_backend = crypto_default_backend() _backend = crypto_default_backend()
_kdf_key = PBKDF2HMAC( _kdf_key = PBKDF2HMAC(
algorithm = hashes.SHA256, algorithm = hashes.SHA256(),
length = KEY_LENGTH + IV_LENGTH, length = KEY_LENGTH + IV_LENGTH,
salt = SALT, salt = SALT,
iterations = PBKDF2_CYCLES, iterations = PBKDF2_CYCLES,