]> git.ipfire.org Git - thirdparty/mkosi.git/commit
typing: Fix typing error when calling add_signer() 869/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 8 Dec 2021 11:23:12 +0000 (12:23 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 8 Dec 2021 12:55:32 +0000 (13:55 +0100)
commit2243fe3b5046b3446ca9920913a8612dec7ae99c
tree065dd8211e8dad6360bf3b87aa1c5ab7e2638a06
parentdeaea6768f251973c8fe6d322a5d6e4aa3ea5f50
typing: Fix typing error when calling add_signer()

The add_signer() method of PKCS7SignatureBuilder only supports a
subset of the key types returned by load_pem_private_key() so let's
make sure the loaded key is of one of the supported types to fix
the error.
mkosi/__init__.py