diff options
Diffstat (limited to 'src/lib/libcrypto/engine/engine.h')
-rw-r--r-- | src/lib/libcrypto/engine/engine.h | 8 |
1 files changed, 4 insertions, 4 deletions
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, \ |