Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate requirement to use wolfPKCS11_Store_OpenSz #42

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ int wolfPKCS11_Store_Write(void* store, unsigned char* buffer, int len)
static int wp11_storage_open_readonly(int type, CK_ULONG id1, CK_ULONG id2,
void** storage)
{
return wolfPKCS11_Store_OpenSz(type, id1, id2, 1, 0, storage);
return wolfPKCS11_Store_Open(type, id1, id2, 1, storage);
}

/*
Expand All @@ -1096,7 +1096,12 @@ static int wp11_storage_open_readonly(int type, CK_ULONG id1, CK_ULONG id2,
static int wp11_storage_open(int type, CK_ULONG id1, CK_ULONG id2,
int variableSz, void** storage)
{
#ifdef WOLFPKCS11_TPM_STORE
return wolfPKCS11_Store_OpenSz(type, id1, id2, 0, variableSz, storage);
#else
(void)variableSz; /* not used */
return wolfPKCS11_Store_Open(type, id1, id2, 0, storage);
#endif
}

/*
Expand Down
Loading