summaryrefslogtreecommitdiffstats
path: root/crypto/modes
diff options
context:
space:
mode:
authorRich Salz <rsalz@akamai.com>2014-08-27 21:47:12 -0400
committerRich Salz <rsalz@akamai.com>2014-08-27 21:47:12 -0400
commit23ea9f6f03332c07977964c674fa00699d999220 (patch)
treee9a2338bc450bffadefbacae134148d65e91f822 /crypto/modes
parent3e5df378613b2bd70e2e2eee4bec7b5c88b298e6 (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 picked from commit 089f10e69ece75ce31540501fe0898b15e898552)
Diffstat (limited to 'crypto/modes')
-rw-r--r--crypto/modes/modes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/modes/modes.h b/crypto/modes/modes.h
index f18215bb2b..7773c2542e 100644
--- a/crypto/modes/modes.h
+++ b/crypto/modes/modes.h
@@ -7,6 +7,9 @@
#include <stddef.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
typedef void (*block128_f)(const unsigned char in[16],
unsigned char out[16],
const void *key);
@@ -133,3 +136,6 @@ typedef struct xts128_context XTS128_CONTEXT;
int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16],
const unsigned char *inp, unsigned char *out, size_t len, int enc);
+#ifdef __cplusplus
+}
+#endif