mirror of
https://github.com/openkmip/pykmip
synced 2025-12-16 00:04:26 +00:00
Updating the CryptographicParameters struct
This change updates the CryptographicParameters struct, removing the primitive class wrappers that it used to use for attribute values and replacing them with struct properties that internally manage the primitive objects directly. This gutting and regutting necessitates cascading changes to every part of the library that used these internal primitive class wrappers, including unit tests, client and client tests, and attribute factory handlers. All of these have been updated to reflect the correct usage of the CryptographicParameters struct. This change also adds in additional attribute members for the CryptographicParameters struct to bring it up to spec with KMIP 1.2.
This commit is contained in:
@@ -22,8 +22,7 @@ from kmip.core import objects as cobjects
|
||||
|
||||
from kmip.core.factories import attributes
|
||||
|
||||
from kmip.core.attributes import CryptographicParameters, \
|
||||
CryptographicAlgorithm
|
||||
from kmip.core.attributes import CryptographicParameters
|
||||
|
||||
from kmip.pie import api
|
||||
from kmip.pie import exceptions
|
||||
@@ -687,7 +686,8 @@ class ProxyKmipClient(api.KmipClient):
|
||||
raise exceptions.ClientConnectionNotOpen()
|
||||
|
||||
parameters_attribute = CryptographicParameters(
|
||||
cryptographic_algorithm=CryptographicAlgorithm(algorithm))
|
||||
cryptographic_algorithm=algorithm
|
||||
)
|
||||
|
||||
# Get the message authentication code and handle the results
|
||||
result = self.proxy.mac(data, uid, parameters_attribute)
|
||||
|
||||
Reference in New Issue
Block a user