forked from p11-glue/p11-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RPC calls: ATTRIBUTE buf not null but length 0
Let's add a support for cases when the buffer != NULL but the length is 0. According to Oasis, buffer = NULL and length = 0 means a query of the length so the subsequent calls with a buffer != NULL should fill then buffer when length is long enough. If not, according to Oasis, one should get a CKR_BUFFER_TOO_SMALL. See the previous commit for IN_ULONG_BUFFER(). This patch is follow a similar design pattern. Fix: issue p11-glue#257
- Loading branch information
Showing
2 changed files
with
26 additions
and
4 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