#endif
}
-static ossl_inline void lock(void)
+static ossl_inline void test_io_lock(void)
{
#if defined(OPENSSL_THREADS)
OPENSSL_assert(CRYPTO_THREAD_write_lock(io_lock) > 0);
#endif
}
-static ossl_inline void unlock(void)
+static ossl_inline void test_io_unlock(void)
{
#if defined(OPENSSL_THREADS)
CRYPTO_THREAD_unlock(io_lock);
{
int r;
- lock();
+ test_io_lock();
r = BIO_vprintf(bio_out, fmt, ap);
- unlock();
+ test_io_unlock();
return r;
}
{
int r;
- lock();
+ test_io_lock();
r = BIO_vprintf(bio_err, fmt, ap);
- unlock();
+ test_io_unlock();
return r;
}
{
int r;
- lock();
+ test_io_lock();
r = BIO_flush(bio_out);
- unlock();
+ test_io_unlock();
return r;
}
{
int r;
- lock();
+ test_io_lock();
r = BIO_flush(bio_err);
- unlock();
+ test_io_unlock();
return r;
}
{
int r;
- lock();
+ test_io_lock();
r = BIO_vprintf(tap_out, fmt, ap);
- unlock();
+ test_io_unlock();
return r;
}
{
int r;
- lock();
+ test_io_lock();
r = BIO_vprintf(tap_err, fmt, ap);
- unlock();
+ test_io_unlock();
return r;
}
{
int r;
- lock();
+ test_io_lock();
r = BIO_flush(tap_out);
- unlock();
+ test_io_unlock();
return r;
}
{
int r;
- lock();
+ test_io_lock();
r = BIO_flush(tap_err);
- unlock();
+ test_io_unlock();
return r;
}