diff options
Diffstat (limited to 'pkcs11.c')
-rw-r--r-- | pkcs11.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -64,7 +64,6 @@ #include "pkcs11.h" #include "attributes.h" -#include "p11_common.h" /* * This PKCS #11 implementation is hardwired with one slot, the token @@ -2820,8 +2819,8 @@ CK_RV C_GetTokenInfo(CK_SLOT_ID slotID, pInfo->ulSessionCount = CK_UNAVAILABLE_INFORMATION; pInfo->ulMaxRwSessionCount = CK_EFFECTIVELY_INFINITE; pInfo->ulRwSessionCount = CK_UNAVAILABLE_INFORMATION; - pInfo->ulMaxPinLen = P11_MAX_PIN_LENGTH; - pInfo->ulMinPinLen = P11_MIN_PIN_LENGTH; + pInfo->ulMaxPinLen = (CK_ULONG) hal_rpc_min_pin_length; + pInfo->ulMinPinLen = (CK_ULONG) hal_rpc_max_pin_length; pInfo->ulTotalPublicMemory = CK_UNAVAILABLE_INFORMATION; pInfo->ulFreePublicMemory = CK_UNAVAILABLE_INFORMATION; pInfo->ulTotalPrivateMemory = CK_UNAVAILABLE_INFORMATION; |