Skip to content

Commit f9aec60

Browse files
committed
Restore previous includes but add more externs
1 parent 77e1fb6 commit f9aec60

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

wolfssl/openssl/conf.h

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,30 @@
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-
3434
typedef 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+
4351
typedef struct WOLFSSL_CONF {
4452
void *meth_data;
4553
WOLF_LHASH_OF(WOLFSSL_CONF_VALUE) *data;

wolfssl/ssl.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)