diff options
author | jsing <> | 2014-05-22 17:53:00 +0000 |
---|---|---|
committer | jsing <> | 2014-05-22 17:53:00 +0000 |
commit | f02ed2588c7917dc5b92c97841ea09a314c7be10 (patch) | |
tree | a9c417fe63b3c1f21c7f955e6f9898066cdbe0ea /src/lib/libcrypto/engine | |
parent | 1daf1f522a26bc92ef488c760b18c65ff223b0af (diff) | |
download | openbsd-f02ed2588c7917dc5b92c97841ea09a314c7be10.tar.gz openbsd-f02ed2588c7917dc5b92c97841ea09a314c7be10.tar.bz2 openbsd-f02ed2588c7917dc5b92c97841ea09a314c7be10.zip |
Expand the OPENSSL_{GLOBAL,EXPORT,IMPORT,EXTERN} macros - this rids the
libssl tree from all uses of these defines.
ok miod@
Diffstat (limited to 'src/lib/libcrypto/engine')
-rw-r--r-- | src/lib/libcrypto/engine/eng_padlock.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/engine/engine.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/engine/eng_padlock.c b/src/lib/libcrypto/engine/eng_padlock.c index 5a80b2b16d..e727067f11 100644 --- a/src/lib/libcrypto/engine/eng_padlock.c +++ b/src/lib/libcrypto/engine/eng_padlock.c | |||
@@ -1088,9 +1088,9 @@ static RAND_METHOD padlock_rand = { | |||
1088 | 1088 | ||
1089 | #else /* !COMPILE_HW_PADLOCK */ | 1089 | #else /* !COMPILE_HW_PADLOCK */ |
1090 | #ifndef OPENSSL_NO_DYNAMIC_ENGINE | 1090 | #ifndef OPENSSL_NO_DYNAMIC_ENGINE |
1091 | OPENSSL_EXPORT | 1091 | extern |
1092 | int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); | 1092 | int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); |
1093 | OPENSSL_EXPORT | 1093 | extern |
1094 | int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { return 0; } | 1094 | int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { return 0; } |
1095 | IMPLEMENT_DYNAMIC_CHECK_FN() | 1095 | IMPLEMENT_DYNAMIC_CHECK_FN() |
1096 | #endif | 1096 | #endif |
diff --git a/src/lib/libcrypto/engine/engine.h b/src/lib/libcrypto/engine/engine.h index 096c271b61..5c2f7b0527 100644 --- a/src/lib/libcrypto/engine/engine.h +++ b/src/lib/libcrypto/engine/engine.h | |||
@@ -654,8 +654,8 @@ typedef struct st_dynamic_fns { | |||
654 | * can be fully instantiated with IMPLEMENT_DYNAMIC_CHECK_FN(). */ | 654 | * can be fully instantiated with IMPLEMENT_DYNAMIC_CHECK_FN(). */ |
655 | typedef unsigned long (*dynamic_v_check_fn)(unsigned long ossl_version); | 655 | typedef unsigned long (*dynamic_v_check_fn)(unsigned long ossl_version); |
656 | #define IMPLEMENT_DYNAMIC_CHECK_FN() \ | 656 | #define IMPLEMENT_DYNAMIC_CHECK_FN() \ |
657 | OPENSSL_EXPORT unsigned long v_check(unsigned long v); \ | 657 | extern unsigned long v_check(unsigned long v); \ |
658 | OPENSSL_EXPORT unsigned long v_check(unsigned long v) { \ | 658 | extern unsigned long v_check(unsigned long v) { \ |
659 | if(v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \ | 659 | if(v >= OSSL_DYNAMIC_OLDEST) return OSSL_DYNAMIC_VERSION; \ |
660 | return 0; } | 660 | return 0; } |
661 | 661 | ||
@@ -677,9 +677,9 @@ typedef unsigned long (*dynamic_v_check_fn)(unsigned long ossl_version); | |||
677 | typedef int (*dynamic_bind_engine)(ENGINE *e, const char *id, | 677 | typedef int (*dynamic_bind_engine)(ENGINE *e, const char *id, |
678 | const dynamic_fns *fns); | 678 | const dynamic_fns *fns); |
679 | #define IMPLEMENT_DYNAMIC_BIND_FN(fn) \ | 679 | #define IMPLEMENT_DYNAMIC_BIND_FN(fn) \ |
680 | OPENSSL_EXPORT \ | 680 | extern \ |
681 | int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \ | 681 | int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns); \ |
682 | OPENSSL_EXPORT \ | 682 | extern \ |
683 | int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \ | 683 | int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { \ |
684 | if(ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \ | 684 | if(ENGINE_get_static_state() == fns->static_state) goto skip_cbs; \ |
685 | if(!CRYPTO_set_mem_functions(fns->mem_fns.malloc_cb, \ | 685 | if(!CRYPTO_set_mem_functions(fns->mem_fns.malloc_cb, \ |