author | Ruchika Gupta <ruchika.gupta@linaro.org> | |
Tue, 22 Dec 2020 09:24:02 +0000 (14:54 +0530) | ||
committer | Jérôme Forissier <jerome@forissier.org> | |
Wed, 23 Dec 2020 08:51:29 +0000 (09:51 +0100) | ||
commit | 90c47fe29e97003d7e9aebe063276155b5748ba4 | |
tree | e9672b65b0de475edd8b7b6bc36fa21370aabdf1 | tree | snapshot (tar.xz tar.gz zip) |
parent | 4cfce748748a47029b2c30f911b4b0232b23349f | commit | diff |
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>
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 | diff | blob | history |