diff --git a/configure b/configure index a80693a..2d95f1a 100755 --- a/configure +++ b/configure @@ -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' diff --git a/src/coolkey/slot.cpp b/src/coolkey/slot.cpp index 12253c9..d7431f3 100644 --- a/src/coolkey/slot.cpp +++ b/src/coolkey/slot.cpp @@ -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