diff options
author | Ruchika Gupta <ruchika.gupta@linaro.org> | 2020-12-17 17:19:24 +0530 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2020-12-23 09:51:29 +0100 |
commit | 70c78a55b8a5a4ffe5310e322bbdadfd11d7e641 (patch) | |
tree | 3350948ecf9158509aaafa4ea5cf3791a936d6d2 /ta/pkcs11/src/persistent_token.c | |
parent | ff65c72a8592c0ddf2f37eb77248b546af035871 (diff) |
ta: pkcs11: Fix for CKA_KEY_GEN_MECHANISM in create_attributes_from_template()
CKA_KEY_GEN_MECHANISM attribute is not added in the attribute list
(attrs) from the template (temp) when a key object is created as
it doesn't fall in mandatory/optional attribute. So, error checking for
this attribute should be done on the original source template(temp)
and not the attribute list(attrs) in create_attributes_from_template().
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>
Reviewed-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Diffstat (limited to 'ta/pkcs11/src/persistent_token.c')
0 files changed, 0 insertions, 0 deletions