aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2017-06-19 19:17:12 +0200
committerJ08nY2017-06-19 19:17:12 +0200
commitea3c9c3778e79b8fcef648e59aee7affe724791b (patch)
tree846a9d50b3052a242f4c0d7328f9655dbad04dbc
parentc6d0427b66049146772a70528700b083108d29ea (diff)
downloadmailman-pgp-ea3c9c3778e79b8fcef648e59aee7affe724791b.tar.gz
mailman-pgp-ea3c9c3778e79b8fcef648e59aee7affe724791b.tar.zst
mailman-pgp-ea3c9c3778e79b8fcef648e59aee7affe724791b.zip
-rw-r--r--src/mailman_pgp/pgp/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman_pgp/pgp/__init__.py b/src/mailman_pgp/pgp/__init__.py
index b9aad50..62c6045 100644
--- a/src/mailman_pgp/pgp/__init__.py
+++ b/src/mailman_pgp/pgp/__init__.py
@@ -46,14 +46,14 @@ class PGP:
if key_type not in KEYPAIR_KEY_TYPE_VALID:
raise ValueError('Invalid key_type. {}'.format(key_type))
self.keypair_config['key_type'] = KEYPAIR_TYPE_MAP[key_type]
- self.keypair_config['key_size'] = int(self.keypair_config['key_size'])
+ self.keypair_config['key_length'] = int(self.keypair_config['key_length'])
subkey_type = self.keypair_config['subkey_type'].upper()
if subkey_type not in KEYPAIR_SUBKEY_TYPE_VALID:
raise ValueError('Invalid subkey_type. {}'.format(subkey_type))
self.keypair_config['subkey_type'] = KEYPAIR_TYPE_MAP[subkey_type]
- self.keypair_config['subkey_size'] = int(
- self.keypair_config['subkey_size'])
+ self.keypair_config['subkey_length'] = int(
+ self.keypair_config['subkey_length'])
# Make sure the keydir paths are directories and exist.
for keydir in self.keydir_config.values():