summaryrefslogtreecommitdiffstats
path: root/crypto/stack
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2014-08-27 15:28:08 -0400
committerRich Salz <rsalz@akamai.com>2014-08-27 21:35:32 -0400
commit17e80c6bd05de7406a65116f34ed59665607d8d5 (patch)
tree62f3fbd5755cd016cfae2c1f3beffff2365cd40d /crypto/stack
parent7b3e11c54466f1da8b707c932e308d345fd61101 (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>
Diffstat (limited to 'crypto/stack')
-rw-r--r--crypto/stack/safestack.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h
index 1a89e01252..5327cb89e8 100644
--- a/crypto/stack/safestack.h
+++ b/crypto/stack/safestack.h
@@ -57,6 +57,10 @@
#include <openssl/stack.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef CHECKED_PTR_OF
#define CHECKED_PTR_OF(type, p) \
((void*) (1 ? p : (type*)0))
@@ -2798,4 +2802,8 @@ DECLARE_SPECIAL_STACK_OF(OPENSSL_BLOCK, void)
#define lh_SSL_SESSION_free(lh) LHM_lh_free(SSL_SESSION,lh)
/* End of util/mkstack.pl block, you may now edit :-) */
+
+#ifdef __cplusplus
+}
+#endif
#endif /* !defined HEADER_SAFESTACK_H */