2
0
mirror of https://github.com/openkmip/pykmip synced 2026-01-03 00:53:16 +00:00

Fix a bug with how the server retrieves attributes under KMIP 2.0

This change fixes a bug in the server attribute handling logic
that manifests when attributes are deprecated and removed in KMIP
2.0. Now these attributes are effectively ignored for KMIP 2.0
messages, complying with the KMIP 2.0 specification.
This commit is contained in:
Peter Hamilton
2019-06-18 10:39:56 -04:00
committed by Peter Hamilton
parent 4ebaa6f501
commit f1b57d21fc
2 changed files with 6 additions and 1 deletions

View File

@@ -521,7 +521,8 @@ class AttributePolicy(object):
enums.ObjectType.SECRET_DATA,
enums.ObjectType.OPAQUE_DATA
),
contents.ProtocolVersion(1, 0)
contents.ProtocolVersion(1, 0),
contents.ProtocolVersion(2, 0)
),
'Cryptographic Usage Mask': AttributeRuleSet(
True,