2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-17 16:53:48 +00:00

Fix a bug with revocation message decoding

This change fixes a bug with revocation message decoding that
would cause client and server failures if the revocation message
was included in a Revoke operation call. With this fix, the client
can now send a revocation message with a Revoke request and the
revocation will occur as expected.

A ProxyKmipClient demo script for the Revoke operation has been
included to help test Revoke functionality.

Finally, an argument ordering bug with the original KMIPProxy demo
Revoke script has also been fixed.

Fixes #546
This commit is contained in:
Peter Hamilton
2019-06-17 15:37:53 -04:00
committed by Peter Hamilton
parent 5ac0c5d6dd
commit 1c879e2f49
3 changed files with 61 additions and 6 deletions

View File

@@ -13,9 +13,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from kmip.core import enums
from kmip.core.enums import Operation
from kmip.core.enums import ResultStatus
from kmip.core.enums import RevocationReasonCode
from kmip.demos import utils
@@ -46,8 +46,8 @@ if __name__ == '__main__':
# Activate the object
result = client.revoke(
enums.RevocationReasonCode.KEY_COMPROMISE,
uuid,
RevocationReasonCode.UNSPECIFIED,
'Demo revocation message')
client.close()