File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 2424#ifndef WOLFSSL_conf_H_
2525#define WOLFSSL_conf_H_
2626
27+ #include <wolfssl/wolfcrypt/settings.h>
28+ #include <wolfssl/version.h>
29+
2730#ifdef __cplusplus
2831 extern "C" {
2932#endif
3033
31- #include <wolfssl/wolfcrypt/settings.h>
32- #include <wolfssl/version.h>
33-
3434typedef struct WOLFSSL_CONF_VALUE {
3535 char * section ;
3636 char * name ;
3737 char * value ;
3838} WOLFSSL_CONF_VALUE ;
3939
40+ #ifdef __cplusplus
41+ } /* extern "C" */
42+ #endif
43+
4044/* ssl.h requires WOLFSSL_CONF_VALUE */
4145#include <wolfssl/ssl.h>
4246
47+ #ifdef __cplusplus
48+ extern "C" {
49+ #endif
50+
4351typedef struct WOLFSSL_CONF {
4452 void * meth_data ;
4553 WOLF_LHASH_OF (WOLFSSL_CONF_VALUE ) * data ;
Original file line number Diff line number Diff line change @@ -270,11 +270,21 @@ typedef struct WOLFSSL_BY_DIR WOLFSSL_BY_DIR;
270270/* redeclare guard */
271271#define WOLFSSL_TYPES_DEFINED
272272
273+ #ifdef __cplusplus
274+ } /* extern "C" */
275+ #endif
276+
277+ #include <wolfssl/wolfio.h>
278+
273279/* The WOLFSSL_RSA type is required in all build configurations. */
274280#if defined(OPENSSL_EXTRA ) || defined(OPENSSL_EXTRA_X509_SMALL )
275281#include <wolfssl/openssl/rsa.h>
276282#endif
277283
284+ #ifdef __cplusplus
285+ extern "C" {
286+ #endif
287+
278288#ifndef WC_RNG_TYPE_DEFINED /* guard on redeclaration */
279289 typedef struct WC_RNG WC_RNG ;
280290 #define WC_RNG_TYPE_DEFINED
You can’t perform that action at this time.
0 commit comments