Tag the mutex functions with OPENSSL_EXPORT.

Now that ssl/ code is using them, shared-library builds need this.

Change-Id: Icf0088b8e52325f179a72708e28c2add8b824259
This commit is contained in:
Adam Langley 2015-05-20 13:14:44 -07:00
parent 6e1f64568b
commit 04edcc8b1b

View File

@ -414,37 +414,40 @@ struct CRYPTO_STATIC_MUTEX {
/* CRYPTO_MUTEX_init initialises |lock|. If |lock| is a static variable, use a /* CRYPTO_MUTEX_init initialises |lock|. If |lock| is a static variable, use a
* |CRYPTO_STATIC_MUTEX|. */ * |CRYPTO_STATIC_MUTEX|. */
void CRYPTO_MUTEX_init(CRYPTO_MUTEX *lock); OPENSSL_EXPORT void CRYPTO_MUTEX_init(CRYPTO_MUTEX *lock);
/* CRYPTO_MUTEX_lock_read locks |lock| such that other threads may also have a /* CRYPTO_MUTEX_lock_read locks |lock| such that other threads may also have a
* read lock, but none may have a write lock. (On Windows, read locks are * read lock, but none may have a write lock. (On Windows, read locks are
* actually fully exclusive.) */ * actually fully exclusive.) */
void CRYPTO_MUTEX_lock_read(CRYPTO_MUTEX *lock); OPENSSL_EXPORT void CRYPTO_MUTEX_lock_read(CRYPTO_MUTEX *lock);
/* CRYPTO_MUTEX_lock_write locks |lock| such that no other thread has any type /* CRYPTO_MUTEX_lock_write locks |lock| such that no other thread has any type
* of lock on it. */ * of lock on it. */
void CRYPTO_MUTEX_lock_write(CRYPTO_MUTEX *lock); OPENSSL_EXPORT void CRYPTO_MUTEX_lock_write(CRYPTO_MUTEX *lock);
/* CRYPTO_MUTEX_unlock unlocks |lock|. */ /* CRYPTO_MUTEX_unlock unlocks |lock|. */
void CRYPTO_MUTEX_unlock(CRYPTO_MUTEX *lock); OPENSSL_EXPORT void CRYPTO_MUTEX_unlock(CRYPTO_MUTEX *lock);
/* CRYPTO_MUTEX_cleanup releases all resources held by |lock|. */ /* CRYPTO_MUTEX_cleanup releases all resources held by |lock|. */
void CRYPTO_MUTEX_cleanup(CRYPTO_MUTEX *lock); OPENSSL_EXPORT void CRYPTO_MUTEX_cleanup(CRYPTO_MUTEX *lock);
/* CRYPTO_STATIC_MUTEX_lock_read locks |lock| such that other threads may also /* CRYPTO_STATIC_MUTEX_lock_read locks |lock| such that other threads may also
* have a read lock, but none may have a write lock. The |lock| variable does * have a read lock, but none may have a write lock. The |lock| variable does
* not need to be initialised by any function, but must have been statically * not need to be initialised by any function, but must have been statically
* initialised with |CRYPTO_STATIC_MUTEX_INIT|. */ * initialised with |CRYPTO_STATIC_MUTEX_INIT|. */
void CRYPTO_STATIC_MUTEX_lock_read(struct CRYPTO_STATIC_MUTEX *lock); OPENSSL_EXPORT void CRYPTO_STATIC_MUTEX_lock_read(
struct CRYPTO_STATIC_MUTEX *lock);
/* CRYPTO_STATIC_MUTEX_lock_write locks |lock| such that no other thread has /* CRYPTO_STATIC_MUTEX_lock_write locks |lock| such that no other thread has
* any type of lock on it. The |lock| variable does not need to be initialised * any type of lock on it. The |lock| variable does not need to be initialised
* by any function, but must have been statically initialised with * by any function, but must have been statically initialised with
* |CRYPTO_STATIC_MUTEX_INIT|. */ * |CRYPTO_STATIC_MUTEX_INIT|. */
void CRYPTO_STATIC_MUTEX_lock_write(struct CRYPTO_STATIC_MUTEX *lock); OPENSSL_EXPORT void CRYPTO_STATIC_MUTEX_lock_write(
struct CRYPTO_STATIC_MUTEX *lock);
/* CRYPTO_STATIC_MUTEX_unlock unlocks |lock|. */ /* CRYPTO_STATIC_MUTEX_unlock unlocks |lock|. */
void CRYPTO_STATIC_MUTEX_unlock(struct CRYPTO_STATIC_MUTEX *lock); OPENSSL_EXPORT void CRYPTO_STATIC_MUTEX_unlock(
struct CRYPTO_STATIC_MUTEX *lock);
/* Thread local storage. */ /* Thread local storage. */