diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/src/e_os2.h | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/src/lib/libssl/src/e_os2.h b/src/lib/libssl/src/e_os2.h index 1b334430c1..31aa17fd3b 100644 --- a/src/lib/libssl/src/e_os2.h +++ b/src/lib/libssl/src/e_os2.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: e_os2.h,v 1.17 2014/06/12 15:49:27 deraadt Exp $ */ | 1 | /* $OpenBSD: e_os2.h,v 1.18 2014/07/11 09:36:34 jsing Exp $ */ |
| 2 | /* ==================================================================== | 2 | /* ==================================================================== |
| 3 | * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1998-2000 The OpenSSL Project. All rights reserved. |
| 4 | * | 4 | * |
| @@ -53,37 +53,29 @@ | |||
| 53 | * | 53 | * |
| 54 | */ | 54 | */ |
| 55 | 55 | ||
| 56 | #include <openssl/opensslconf.h> | ||
| 57 | |||
| 58 | #ifndef HEADER_E_OS2_H | 56 | #ifndef HEADER_E_OS2_H |
| 59 | #define HEADER_E_OS2_H | 57 | #define HEADER_E_OS2_H |
| 60 | 58 | ||
| 59 | #include <openssl/opensslconf.h> | ||
| 60 | |||
| 61 | #ifdef __cplusplus | 61 | #ifdef __cplusplus |
| 62 | extern "C" { | 62 | extern "C" { |
| 63 | #endif | 63 | #endif |
| 64 | 64 | ||
| 65 | #define OPENSSL_SYS_UNIX | 65 | #define OPENSSL_SYS_UNIX |
| 66 | 66 | ||
| 67 | /* Specials for I/O an exit */ | 67 | #define OPENSSL_EXPORT extern |
| 68 | # define OPENSSL_EXPORT extern | 68 | #define OPENSSL_IMPORT extern |
| 69 | # define OPENSSL_IMPORT extern | 69 | #define OPENSSL_GLOBAL |
| 70 | # define OPENSSL_GLOBAL | ||
| 71 | #define OPENSSL_EXTERN OPENSSL_IMPORT | 70 | #define OPENSSL_EXTERN OPENSSL_IMPORT |
| 72 | 71 | ||
| 73 | /* Macros to allow global variables to be reached through function calls when | 72 | #define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) \ |
| 74 | required (if a shared library version requires it, for example. | 73 | OPENSSL_GLOBAL type _shadow_##name=value; |
| 75 | The way it's done allows definitions like this: | 74 | #define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name |
| 75 | #define OPENSSL_GLOBAL_REF(name) _shadow_##name | ||
| 76 | |||
| 77 | #define ossl_ssize_t ssize_t | ||
| 76 | 78 | ||
| 77 | // in foobar.c | ||
| 78 | OPENSSL_IMPLEMENT_GLOBAL(int,foobar,0) | ||
| 79 | // in foobar.h | ||
| 80 | OPENSSL_DECLARE_GLOBAL(int,foobar); | ||
| 81 | #define foobar OPENSSL_GLOBAL_REF(foobar) | ||
| 82 | */ | ||
| 83 | # define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) OPENSSL_GLOBAL type _shadow_##name=value; | ||
| 84 | # define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name | ||
| 85 | # define OPENSSL_GLOBAL_REF(name) _shadow_##name | ||
| 86 | # define ossl_ssize_t ssize_t | ||
| 87 | #ifdef __cplusplus | 79 | #ifdef __cplusplus |
| 88 | } | 80 | } |
| 89 | #endif | 81 | #endif |
