wolfssl-examples icon indicating copy to clipboard operation
wolfssl-examples copied to clipboard

failed to build tls-sock-client

Open Breeze-Wu opened this issue 4 years ago • 3 comments

image failed to build tls-sock-client accordding to the readme

Breeze-Wu avatar Dec 01 '21 08:12 Breeze-Wu

Hi @Breeze-Wu ,

The default DH implementation in wolfSSL uses the std math lib -lm. However if you build wolfSSL with WOLFSSL_DH_CONST it will use internal math. Example build wolfSSL with: ./configure CFLAGS="-DWOLFSSL_DH_CONST -DHAVE_FFDHE_2048" && make && sudo make install. Or you can disable DH math using --disable-dh.

Thanks, David Garske, wolfSSL

dgarske avatar Dec 01 '21 15:12 dgarske

Thank your reply,but I use cmake to build how to use cmake to disable dh

Thanks,
Breeze-Wu

Breeze-Wu avatar Dec 02 '21 02:12 Breeze-Wu

Hi @Breeze-Wu ,

With wolfSSL and cmake the option to disable DH is WOLFSSL_DH=no. If you use ccmake .. you can see the list of options supported with cmake.

Thanks, David Garske, wolfSSL

dgarske avatar Dec 02 '21 16:12 dgarske