From 8509302e359fcae1d7e9fca1a0c39d97876d1e98 Mon Sep 17 00:00:00 2001 From: Christopher Morrow Date: Thu, 25 Apr 2019 17:28:37 -0400 Subject: [PATCH 1/2] Fixed typos in variables names that prevented compiling of slot.cpp Signed-off-by: Christopher Morrow --- src/coolkey/slot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 8a38bd54d88a8d50d6bd52b800190be6e23e9dd3 Mon Sep 17 00:00:00 2001 From: Christopher Morrow Date: Thu, 25 Apr 2019 20:51:21 -0400 Subject: [PATCH 2/2] Switched to using the system's libtool Signed-off-by: Christopher Morrow --- configure | 2 ++ 1 file changed, 2 insertions(+) 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'