]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - optee/ti-optee-os.git/commit
ta: pkcs11: Use get_attribute_ptr() instead of get_attribute()
authorRuchika Gupta <ruchika.gupta@linaro.org>
Tue, 22 Dec 2020 09:24:02 +0000 (14:54 +0530)
committerJérôme Forissier <jerome@forissier.org>
Wed, 23 Dec 2020 08:51:29 +0000 (09:51 +0100)
commit90c47fe29e97003d7e9aebe063276155b5748ba4
treee9672b65b0de475edd8b7b6bc36fa21370aabdf1
parent4cfce748748a47029b2c30f911b4b0232b23349f
ta: pkcs11: Use get_attribute_ptr() instead of get_attribute()

When just trying to determine if an attribute is present in the
list or not withour requiring the actual value of the attribute,
using get_attribute_ptr() is better to use as it is more
light-weight than it's counterpart get_attribute().

Suggested-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>
Reviewed-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
ta/pkcs11/src/pkcs11_attributes.c