Topic: Using WolfSSL on Windows 10 through Visual Studio.

Hello, developer. When I use the wolfSSL_CTX_LoadCRL and wolfSSL_CTX_EnableCRL functions from wolfSSL, I get the following error:

Severity: Error

Code: LNK2019

Description: Unresolved external symbol wolfSSL_CTX_EnableCRL referenced in function main.

I have already linked the package directory. What could be causing this issue, and how should I resolve it?

Share

Re: Using WolfSSL on Windows 10 through Visual Studio.

Hi Happy,

There could be a configuration issue. `HAVE_CRL` needs to be defined in user_settings.h (or `--enable-crl` if using ./configure).

Share your wolfSSL configuration if the issue persists.

Thanks,
Eric - wolfSSL Support

Re: Using WolfSSL on Windows 10 through Visual Studio.

Hello, developer. Can you tell me if the command cmake .. -DENABLE_CRL=ON -DCMAKE can enable CRL?

Share

Re: Using WolfSSL on Windows 10 through Visual Studio.

With cmake, you want to use the `WOLFSSL_CRL` option:

add_option(WOLFSSL_CRL
    "Enable CRL (Use =io for inline CRL HTTP GET) (default: disabled)"
    "no" "yes;no;io")

5 (edited by HAPPY 2024-10-29 18:32:13)

Re: Using WolfSSL on Windows 10 through Visual Studio.

Hello developer, I used

 long verify_result = wolfSSL_get_verify_result(ssl)

; from wolfSSL to check the certificate revocation status, and I have already included

#include <wolfssl/ssl.h>

. Why do I still get the following error?

/usr/bin/ld: /tmp/ccjSsmqw.o: in function `main':
wolfssl_crl_test.c:(.text+0x55f): undefined reference to `wolfSSL_get_verify_result'
collect2: error: ld returned 1 exit status

Share