author | Ruchika Gupta <ruchika.gupta@linaro.org> | |
Fri, 11 Dec 2020 11:55:54 +0000 (17:25 +0530) | ||
committer | Jérôme Forissier <jerome@forissier.org> | |
Thu, 17 Dec 2020 08:45:03 +0000 (09:45 +0100) | ||
commit | d1d443727098d6af4a02e8e14ee48635055a7ec1 | |
tree | e182e90493b0e446e8ab74a4de8c5400c62b3467 | tree | snapshot (tar.xz tar.gz zip) |
parent | 5440719db58fae341de9079fc7ce556f7662de8b | commit | diff |
ta: pkcs11: Fix the error code returned
While generating a key of type PKCS11_CKO_SECRET_KEY, if
CKA_VALUE_LEN field is not specified in the attribute
template, the error returned needs to be
PKCS11_CKR_TEMPLATE_INCOMPLETE.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>
While generating a key of type PKCS11_CKO_SECRET_KEY, if
CKA_VALUE_LEN field is not specified in the attribute
template, the error returned needs to be
PKCS11_CKR_TEMPLATE_INCOMPLETE.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>
ta/pkcs11/src/pkcs11_attributes.c | diff | blob | history |