diff options
author | Rich Salz <rsalz@akamai.com> | 2014-08-27 21:43:25 -0400 |
---|---|---|
committer | Rich Salz <rsalz@akamai.com> | 2014-08-27 21:45:09 -0400 |
commit | 089f10e69ece75ce31540501fe0898b15e898552 (patch) | |
tree | 7a3d6b91f2de16844feb98f99cd7577a0506326d /crypto | |
parent | 7f7c05ca638c3cc6d261961fae439cd91e3c1d27 (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')
-rw-r--r-- | crypto/ebcdic.h | 7 | ||||
-rw-r--r-- | crypto/modes/modes.h | 6 | ||||
-rw-r--r-- | crypto/opensslv.h | 7 | ||||
-rw-r--r-- | crypto/ossl_typ.h | 7 | ||||
-rw-r--r-- | crypto/pqueue/pqueue.h | 6 | ||||
-rw-r--r-- | crypto/stack/safestack.h | 8 |
6 files changed, 41 insertions, 0 deletions
diff --git a/crypto/ebcdic.h b/crypto/ebcdic.h index 6d65afcf9e..85f3cf7f66 100644 --- a/crypto/ebcdic.h +++ b/crypto/ebcdic.h @@ -5,6 +5,10 @@ #include <sys/types.h> +#ifdef __cplusplus +extern "C" { +#endif + /* Avoid name clashes with other applications */ #define os_toascii _openssl_os_toascii #define os_toebcdic _openssl_os_toebcdic @@ -16,4 +20,7 @@ extern const unsigned char os_toebcdic[256]; void *ebcdic2ascii(void *dest, const void *srce, size_t count); void *ascii2ebcdic(void *dest, const void *srce, size_t count); +#ifdef __cplusplus +} +#endif #endif diff --git a/crypto/modes/modes.h b/crypto/modes/modes.h index 9912550a21..3629e54075 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); @@ -141,3 +144,6 @@ size_t CRYPTO_128_wrap(void *key, const unsigned char *iv, size_t CRYPTO_128_unwrap(void *key, const unsigned char *iv, unsigned char *out, const unsigned char *in, size_t inlen, block128_f block); +#ifdef __cplusplus +} +#endif diff --git a/crypto/opensslv.h b/crypto/opensslv.h index 5b35cf7a6c..fa0d6eaf14 100644 --- a/crypto/opensslv.h +++ b/crypto/opensslv.h @@ -1,6 +1,10 @@ #ifndef HEADER_OPENSSLV_H #define HEADER_OPENSSLV_H +#ifdef __cplusplus +extern "C" { +#endif + /* Numeric release version identifier: * MNNFFPPS: major minor fix patch status * The status nibble has one of the values 0 for development, 1 to e for betas @@ -86,4 +90,7 @@ #define SHLIB_VERSION_NUMBER "1.0.0" +#ifdef __cplusplus +} +#endif #endif /* HEADER_OPENSSLV_H */ 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 */ diff --git a/crypto/pqueue/pqueue.h b/crypto/pqueue/pqueue.h index 87fc9037c8..26b5348089 100644 --- a/crypto/pqueue/pqueue.h +++ b/crypto/pqueue/pqueue.h @@ -64,6 +64,9 @@ #include <stdlib.h> #include <string.h> +#ifdef __cplusplus +extern "C" { +#endif typedef struct _pqueue *pqueue; typedef struct _pitem @@ -91,4 +94,7 @@ pitem *pqueue_next(piterator *iter); void pqueue_print(pqueue pq); int pqueue_size(pqueue pq); +#ifdef __cplusplus +} +#endif #endif /* ! HEADER_PQUEUE_H */ diff --git a/crypto/stack/safestack.h b/crypto/stack/safestack.h index f2d5317ac0..c4a5a204f5 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 */ |