Merge "Casts algorithm to lower case in KMIP plugin."

This commit is contained in:
Jenkins 2016-02-24 20:40:58 +00:00 committed by Gerrit Code Review
commit 3006c7edc4

View File

@ -251,7 +251,7 @@ class KMIPSecretStore(ss.SecretStoreBase):
"'generate_symmetric_key' method").format(
algorithm=key_spec.alg))
algorithm = self._get_kmip_algorithm(key_spec.alg)
algorithm = self._get_kmip_algorithm(key_spec.alg.lower())
try:
with self.client:
LOG.debug("Opened connection to KMIP client for secret " +
@ -291,7 +291,7 @@ class KMIPSecretStore(ss.SecretStoreBase):
u._('KMIP plugin does not currently support protecting the '
'private key with a passphrase'))
algorithm = self._get_kmip_algorithm(key_spec.alg)
algorithm = self._get_kmip_algorithm(key_spec.alg.lower())
length = key_spec.bit_length
try: