Skip to content

Commit

Permalink
PKCS11: Use more accurate error when template inconsistant
Browse files Browse the repository at this point in the history
  • Loading branch information
aveenismail committed Sep 25, 2023
1 parent 481d081 commit 0604251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkcs11/yubihsm_pkcs11.c
Original file line number Diff line number Diff line change
Expand Up @@ -2286,7 +2286,7 @@ static CK_RV set_object_type(uint8_t *type, uint8_t expected_type) {
}
if (*type != expected_type) {
DBG_ERR("Mismatch in attribute values");
return CKR_ATTRIBUTE_VALUE_INVALID;
return CKR_TEMPLATE_INCONSISTENT;
}
return CKR_OK;
}
Expand Down

0 comments on commit 0604251

Please sign in to comment.