diff options
Diffstat (limited to 'extra/wolfssl/wolfssl/wolfcrypt/src/wc_pkcs11.c')
-rw-r--r-- | extra/wolfssl/wolfssl/wolfcrypt/src/wc_pkcs11.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/extra/wolfssl/wolfssl/wolfcrypt/src/wc_pkcs11.c b/extra/wolfssl/wolfssl/wolfcrypt/src/wc_pkcs11.c index 6ae88d79..0d7bd6e2 100644 --- a/extra/wolfssl/wolfssl/wolfcrypt/src/wc_pkcs11.c +++ b/extra/wolfssl/wolfssl/wolfcrypt/src/wc_pkcs11.c @@ -74,7 +74,7 @@ #endif -/* Maximim length of the EC parameter string. */ +/* Maximum length of the EC parameter string. */ #define MAX_EC_PARAM_LEN 16 @@ -403,11 +403,11 @@ static void pkcs11_val(const char* op, CK_ULONG val) } #else /* Disable logging of PKCS#11 calls and return value. */ -#define PKCS11_RV(op, ev) +#define PKCS11_RV(op, ev) WC_DO_NOTHING /* Disable logging of PKCS#11 calls and value. */ -#define PKCS11_VAL(op, val) +#define PKCS11_VAL(op, val) WC_DO_NOTHING /* Disable logging of PKCS#11 template. */ -#define PKCS11_DUMP_TEMPLATE(name, templ, cnt) +#define PKCS11_DUMP_TEMPLATE(name, templ, cnt) WC_DO_NOTHING #endif /** @@ -3755,7 +3755,12 @@ int wc_Pkcs11_CryptoDevCb(int devId, wc_CryptoInfo* info, void* ctx) int ret = 0; Pkcs11Token* token = (Pkcs11Token*)ctx; Pkcs11Session session; + +#ifdef WOLFSSL_PKCS11_RW_TOKENS + int readWrite = 1; +#else int readWrite = 0; +#endif if (devId <= INVALID_DEVID || info == NULL || ctx == NULL) ret = BAD_FUNC_ARG; |