diff options
author | David Benjamin <davidben@chromium.org> | 2015-04-02 23:34:42 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-02 23:36:58 +0300 |
commit | 4d78718cde0a23421ea4d8f1245b21fe37f7a519 (patch) | |
tree | 19b612d4615bf96a963b577b7d73d8cb54f3c7d0 /crypto/internal.h | |
parent | 89baa72ed8f6ea45e3437b1ae3da007e7318bb3b (diff) |
OPENSSL_EXPORT the threading functions.
Otherwise thread_test doesn't build in a components build.
Change-Id: I05d88bd2abc6fcbc43097a50cea0c064beafdb74
Reviewed-on: https://boringssl-review.googlesource.com/4209
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r-- | crypto/internal.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crypto/internal.h b/crypto/internal.h index ec3b3e2d..30e6e924 100644 --- a/crypto/internal.h +++ b/crypto/internal.h @@ -316,7 +316,7 @@ typedef int32_t CRYPTO_once_t; * * The |once| argument must be a |CRYPTO_once_t| that has been initialised with * the value |CRYPTO_ONCE_INIT|. */ -void CRYPTO_once(CRYPTO_once_t *once, void (*init)(void)); +OPENSSL_EXPORT void CRYPTO_once(CRYPTO_once_t *once, void (*init)(void)); /* Thread local storage. */ @@ -335,7 +335,7 @@ typedef void (*thread_local_destructor_t)(void *); /* CRYPTO_get_thread_local gets the pointer value that is stored for the * current thread for the given index, or NULL if none has been set. */ -void *CRYPTO_get_thread_local(thread_local_data_t value); +OPENSSL_EXPORT void *CRYPTO_get_thread_local(thread_local_data_t value); /* CRYPTO_set_thread_local sets a pointer value for the current thread at the * given index. This function should only be called once per thread for a given @@ -351,8 +351,9 @@ void *CRYPTO_get_thread_local(thread_local_data_t value); * * This function returns one on success or zero on error. If it returns zero * then |destructor| has been called with |value| already. */ -int CRYPTO_set_thread_local(thread_local_data_t index, void *value, - thread_local_destructor_t destructor); +OPENSSL_EXPORT int CRYPTO_set_thread_local( + thread_local_data_t index, void *value, + thread_local_destructor_t destructor); #if defined(__cplusplus) |