mirror of https://github.com/OpenKMIP/PyKMIP.git
Fixing the KMIPProxy CreateKeyPair demo script
This change fixes a bug with the CreateKeyPair demo script for the KMIPProxy client. The key pair name was never included with the create request due to variable name overuse. This change fixes the variable names thereby fixing the demo script. Fixes #249
This commit is contained in:
parent
3f1979188c
commit
47898365ba
|
@ -98,10 +98,10 @@ if __name__ == '__main__':
|
|||
value = Name(name_value=name_value, name_type=name_type)
|
||||
name = Attribute(attribute_name=name, attribute_value=value)
|
||||
|
||||
name = Attribute.AttributeName('Cryptographic Usage Mask')
|
||||
usage_mask = Attribute.AttributeName('Cryptographic Usage Mask')
|
||||
value = CryptographicUsageMask(
|
||||
UsageMaskEnum.ENCRYPT.value | UsageMaskEnum.DECRYPT.value)
|
||||
usage_mask = Attribute(attribute_name=name, attribute_value=value)
|
||||
usage_mask = Attribute(attribute_name=usage_mask, attribute_value=value)
|
||||
|
||||
attribute_type = AttributeType.CRYPTOGRAPHIC_LENGTH
|
||||
length_obj = attribute_factory.create_attribute(attribute_type,
|
||||
|
|
Loading…
Reference in New Issue