1 (edited by kjjy7 2018-08-20 22:16:59)

Topic: internal.h and options.h ? which is first ?

in developing SW using wolfssl, I wonder internal.h and options.h

I think both of them are related in wolfssl

when I use both these header file, which one shell I defined ?

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

or

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

thanks

Share

Re: internal.h and options.h ? which is first ?

Hi kjjy7,

You should always include options.h before any other wolfSSL header. That being said you should never include internal.h as you will encounter issues with forward declarations. We define the same structs in internal.h and ssl.h You can not use ssl.h and internal.h together and you can not use most functionality in wolfSSL without ssl.h. The design is intentional. API's in internal.h are not for use by external applications for security reasons.

Can you still not share what it is you are working on?

- Kaleb

Re: internal.h and options.h ? which is first ?

thanks for your answer

Share