summaryrefslogtreecommitdiffstats
path: root/crypto/ossl_typ.h
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2014-08-27 21:43:25 -0400
committerRich Salz <rsalz@akamai.com>2014-08-27 21:45:09 -0400
commit089f10e69ece75ce31540501fe0898b15e898552 (patch)
tree7a3d6b91f2de16844feb98f99cd7577a0506326d /crypto/ossl_typ.h
parent7f7c05ca638c3cc6d261961fae439cd91e3c1d27 (diff)
RT2308: Add extern "C" { ... } wrapper
Add the wrapper to all public header files (Configure generates one). Don't bother for those that are just lists of #define's that do renaming. Reviewed-by: Tim Hudson <tjh@openssl.org> Cherry-pick of commit 17e80c6bd05de7406a65116f34ed59665607d8d5
Diffstat (limited to 'crypto/ossl_typ.h')
-rw-r--r--crypto/ossl_typ.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/ossl_typ.h b/crypto/ossl_typ.h
index d26196df42..7ee4f3982c 100644
--- a/crypto/ossl_typ.h
+++ b/crypto/ossl_typ.h
@@ -55,6 +55,10 @@
#ifndef HEADER_OPENSSL_TYPES_H
#define HEADER_OPENSSL_TYPES_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <openssl/e_os2.h>
#ifdef NO_ASN1_TYPEDEFS
@@ -201,4 +205,7 @@ typedef struct ocsp_req_ctx_st OCSP_REQ_CTX;
typedef struct ocsp_response_st OCSP_RESPONSE;
typedef struct ocsp_responder_id_st OCSP_RESPID;
+#ifdef __cplusplus
+}
+#endif
#endif /* def HEADER_OPENSSL_TYPES_H */