Skip to content

Commit

Permalink
conda-forge environment support for windows platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-hunt committed Jan 19, 2021
1 parent 09bfc5a commit 0db3d0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pkcs11/pkcs11_token.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ CK_RV pkcs11_token_init(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinL
{
#if PKCS11_TOKEN_INIT_SUPPORT
CK_RV rv;
uint8_t buf[34];
uint8_t buf[34] = {0};
uint8_t * pConfig = NULL;
bool lock = false;
pkcs11_lib_ctx_ptr pLibCtx;
Expand Down
3 changes: 3 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def build_extension(self, ext):
# Suppress cmake output
devnull = open(os.devnull, 'r+b')
nousb = bool(os.environ.get('CRYPTOAUTHLIB_NOUSB', False))
cmake_gen = os.environ.get('CMAKE_GEN', None)

# Check if CMAKE is installed
try:
Expand Down Expand Up @@ -158,6 +159,8 @@ def build_extension(self, ext):
'-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_%s=' % cfg.upper() + extdir]
if sys.maxsize > 2**32:
cmake_args += ['-A', 'x64']
if cmake_gen is not None:
cmake_args += ['-G', '"{}"'.format(cmake_gen)]
else:
cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir]

Expand Down

0 comments on commit 0db3d0e

Please sign in to comment.