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

Fixed typos in variables names that prevented compiling of slot.cpp #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -8234,6 +8234,8 @@ LIBTOOL_DEPS="$ltmain"

# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
# Except when it fails to build on Fedora / Red Hat
LIBTOOL='$(SHELL) libtool'



Expand Down
4 changes: 2 additions & 2 deletions src/coolkey/slot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4485,14 +4485,14 @@ Slot::cryptRSA(SessionHandleSuffix suffix, CK_BYTE_PTR pInput,
params.setKeySize(keySize);

if( CKYBuffer_Size(result) == 0 ) {
unsigned int maxSize = param.getKeySize()/8;
unsigned int maxSize = params.getKeySize()/8;

// we haven't already peformed the decryption, so do it now.
if( pInput == NULL || ulInputLen == 0) {
throw PKCS11Exception(CKR_DATA_LEN_RANGE);
}
if (ulInputLen > maxSize) {
ulInputlen = maxSize;
ulInputLen = maxSize;
}
// OK, this is gross. We should get our own C++ like buffer
// management at this point. This code has nothing to do with
Expand Down