Topic: Getting WolfSSL application to work in Linux.


I have my application working with WolfSSL in windows and I am currently looking to add WolfSSL support in my Linux application.
I followed all the steps in the manual chapter ( Building in a *nix platform). I have configured and built the wolfssl library in linux.

But my question is how do I integrate wolfssl in my application, the code is already there the things that make it work in windows should also make it work in Linux as well.

I read somewhere that I need to have all the user_settings.h file and put that in "wolfssl/options.h"
and also include

#include "wolfssl/options.h"
#include "wolfssl/wolfcrypt/settings.h"
#include "wolfssl/ssl.h"

the above files in my application.. I did that but doesn't seem to be working.

This is the error that I am getting after I try to build my application in Linux ...

make -f
In file included from ../../eipasm.c:22:0:
../../eipinc.h:27:10: error: #include expects "FILENAME" or <FILENAME>
In file included from ../../eipinc.h:79:0,
                 from ../../eipasm.c:22:
../../eipfile.h:110:2: error: unknown type name ‘PLATFORM_FILE_HANDLE’
make: *** [eipasm.o] Error 1

Is there a document I could follow on how to integrate my application with WolfSSL in Linux? any help is appreciated..

Thank You.


Re: Getting WolfSSL application to work in Linux.

Can someone guide me on how do I link my application with the wolfssl library (I am assuming it is the .so file) in Linux?

Thank You for your help in advance.


Re: Getting WolfSSL application to work in Linux.

Hi ashetty,

It looks like the errors are completely unrelated to wolfSSL however one can link a shared object by using the following in your make file (this makefile assumes your application is named "test_app.c" just change to fit your test application name eipasm.c or whatever:

CFLAGS=-I$(WOLFPATH)/include -Wall
LIBS= -L$(WOLFPATH)/lib -lwolfssl

all: test_app

test_app: test_app.o
    $(CC) -o $@ $^ $(CFLAGS) $(LIBS)

.PHONY: clean

    rm -f *.o test_app