[System.Reflection] CoreFX import for ParameterInfo type
[mono-project.git] / mono / btls / btls-util.h
blob07165573aee25767f0b2ceb2d2efaea52b46eafe
1 //
2 // btls-util.h
3 // MonoBtls
4 //
5 // Created by Martin Baulig on 3/23/16.
6 // Copyright © 2016 Xamarin. All rights reserved.
7 //
9 #ifndef __btls__btls_util__
10 #define __btls__btls_util__
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <string.h>
15 #include <openssl/ssl.h>
17 #ifndef MONO_API
18 #if defined(_MSC_VER)
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 */
25 #else
27 #ifdef __GNUC__
28 #define MONO_API __attribute__ ((__visibility__ ("default")))
29 #else
30 #define MONO_API
31 #endif
33 #endif
34 #endif
36 void
37 mono_btls_free (void *data);
39 int64_t
40 mono_btls_util_asn1_time_to_ticks (ASN1_TIME *time);
42 int
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__ */