-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: Fix serialization of NULL mechanism pointer
A NULL mechanism pointer is valid for C_*Init functions to cancel the operation. Since 852ccd8 we encoded it with a CK_MECHANISM_TYPE 0 as an indicator, though it clashes with CKM_RSA_PKCS_KEY_PAIR_GEN (0). This patch changes the encoding to use a special value (0xffffffff) to indicate that and also properly advance the offset when reading. Signed-off-by: Daiki Ueno <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters