Reading many attributes from different HSMs I noticed that JackNJI11 treats specifically ATTRIBUTE_TYPE_INVALID in a partly special way, but not completely. Carefully reading the PKCS#11 spec, and realized that the HSM (driver) must do this for us, so JackNJI11 should simply return an empty value if ATTRIBUTE_TYPE_INVALID or ATTRIBUTE_SENSITIVE.
This patch fixes this.
Reading many attributes from different HSMs I noticed that JackNJI11 treats specifically ATTRIBUTE_TYPE_INVALID in a partly special way, but not completely. Carefully reading the PKCS#11 spec, and realized that the HSM (driver) must do this for us, so JackNJI11 should simply return an empty value if ATTRIBUTE_TYPE_INVALID or ATTRIBUTE_SENSITIVE. This patch fixes this.