forked from wolfSSL/wolfssl
Merge pull request #6778 from danielinux/writeable_pkcs11_tokens
Add compile-time option WOLFSSL_PKCS11_RW_TOKENS
This commit is contained in:
@ -3755,7 +3755,12 @@ int wc_Pkcs11_CryptoDevCb(int devId, wc_CryptoInfo* info, void* ctx)
|
|||||||
int ret = 0;
|
int ret = 0;
|
||||||
Pkcs11Token* token = (Pkcs11Token*)ctx;
|
Pkcs11Token* token = (Pkcs11Token*)ctx;
|
||||||
Pkcs11Session session;
|
Pkcs11Session session;
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_PKCS11_RW_TOKENS
|
||||||
|
int readWrite = 1;
|
||||||
|
#else
|
||||||
int readWrite = 0;
|
int readWrite = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (devId <= INVALID_DEVID || info == NULL || ctx == NULL)
|
if (devId <= INVALID_DEVID || info == NULL || ctx == NULL)
|
||||||
ret = BAD_FUNC_ARG;
|
ret = BAD_FUNC_ARG;
|
||||||
|
Reference in New Issue
Block a user