5 // Created by Martin Baulig on 3/23/16.
6 // Copyright © 2016 Xamarin. All rights reserved.
9 #ifndef __btls__btls_util__
10 #define __btls__btls_util__
15 #include <openssl/ssl.h>
20 // MONO_API is not used consistently and therefore errors.
21 // .def file is preferred.
22 //#define MONO_API __declspec(dllexport)
23 #define MONO_API /* nothing */
28 #define MONO_API __attribute__ ((__visibility__ ("default")))
37 mono_btls_free (void *data
);
40 mono_btls_util_asn1_time_to_ticks (ASN1_TIME
*time
);
43 mono_btls_debug_printf (BIO
*bio
, const char *format
, va_list args
);
45 OPENSSL_EXPORT
void CRYPTO_refcount_inc(CRYPTO_refcount_t
*count
);
46 OPENSSL_EXPORT
int CRYPTO_refcount_dec_and_test_zero(CRYPTO_refcount_t
*count
);
48 #endif /* __btls__btls_util__ */