Topic: "compilation of example client and source code in wolfssl-examples "

hi ,

I am trying to execute the example client and server code in the below links which will have basic Wolfssl APIs so that i can implement same APIs to my existing project which will have cyclone TCP.
https://github.com/wolfSSL/wolfssl-exam … ient-tls.c ;
https://github.com/wolfSSL/wolfssl-exam … rver-tls.c ;

i dont want to use entire wolfssl source code to minimize the size.  so that i just added below folders from sorce code to my example project.since i could see the headers include in example code are from below folders.
wolfssl,
wolfcrypt,
certs,
src,

but i am getting so many errors saying  saying some headers are not included and some are not declared.

So i just want to know w.r.t example in above links  which folders i need to add to my project ?

Kindly clarify my doubts?

Share

Re: "compilation of example client and source code in wolfssl-examples "

Have you tried just building it?

Client and server are both under 256K for my build.
If I wanted to decrease the size I would play with the build switches in settings.h

I doubt you can drop the size considerably.

Share

Re: "compilation of example client and source code in wolfssl-examples "

hi ,

Basically i want to add simple wolfssl client  to my application which is using cycloneTCP code as shown example in below link.
i want to use basic APIs mentioned in the below links to my application.
https://github.com/wolfSSL/wolfssl-exam … ient-tls.c ;


Presently i added below folders from Wolfssl source code
wolfssl,
wolfcrypt,
certs,
src,            to complete my build as below headers are needed

#include <wolfssl/options.h>
#include <wolfssl/ssl.h>



But i am getting warining like " pthread.h : No Such directory " as it is coming under #ifndef SINGLE_THREADED in wc_port.h file

so kindly someone  let me know what settings exactly needs to be done in settings.h or any other file.

Share

Re: "compilation of example client and source code in wolfssl-examples "

Have you tried building the wolfssl library and link it to your ciient?  We did not use the client as is, but pulled specific items from the client and linked with the wofssl library.  We are using in an embedded device with Keil MDK running RTX OS.  The trick on the the library is getting the right options in the build.

We did use the server direct, but had to build it using the wolfSSL.sln. Running it on a server  required a number of directories that the documents do not address.  Tried to run the the server.sln but the paths were all off and once you do that the wolfssl.sln no longer allows the build.  Building on windows with Vs 2015.

Share