mirror of
https://github.com/openkmip/pykmip
synced 2026-01-04 09:33:37 +00:00
Update the PyKMIP clients to support changing their KMIP version
This change updates the PyKMIP clients, adding support for getting and setting the KMIP version they use when making KMIP requests. You can now do: >>> client.kmip_version to get the KMIP version enumeration the client is using. Use: >>> client.kmip_version = enums.KMIPVersion.KMIP_1_1 to set the KMIP version the client uses. The client unit tests have been updated to check and cover these changes. Fixes #470
This commit is contained in:
committed by
Peter Hamilton
parent
40c064a290
commit
c5e4c4a290
@@ -391,6 +391,14 @@ class KeyWrapType(enum.Enum):
|
||||
AS_REGISTERED = 0x00000002
|
||||
|
||||
|
||||
class KMIPVersion(enum.Enum):
|
||||
KMIP_1_0 = "KMIP 1.0"
|
||||
KMIP_1_1 = "KMIP 1.1"
|
||||
KMIP_1_2 = "KMIP 1.2"
|
||||
KMIP_1_3 = "KMIP 1.3"
|
||||
KMIP_1_4 = "KMIP 1.4"
|
||||
|
||||
|
||||
class LinkType(enum.Enum):
|
||||
CERTIFICATE_LINK = 0x00000101
|
||||
PUBLIC_KEY_LINK = 0x00000102
|
||||
|
||||
Reference in New Issue
Block a user