forked from wolfSSL/wolfssl
Link to advapi32 on Windows
`rand.c` on Windows uses old CryptoAPI functions like CryptAcquireContext , which are present in advapi32, but it wasn't linked explicitly.
This commit is contained in:
@ -2412,7 +2412,7 @@ target_link_libraries(wolfssl PUBLIC ${WOLFSSL_LINK_LIBS})
|
||||
if(WIN32)
|
||||
# For Windows link ws2_32
|
||||
target_link_libraries(wolfssl PUBLIC
|
||||
$<$<PLATFORM_ID:Windows>:ws2_32 crypt32>)
|
||||
$<$<PLATFORM_ID:Windows>:ws2_32 crypt32 advapi32>)
|
||||
elseif(APPLE)
|
||||
if(WOLFSSL_SYS_CA_CERTS)
|
||||
target_link_libraries(wolfssl PUBLIC
|
||||
|
Reference in New Issue
Block a user