[BTLS]: Add the native BTLS sources.
[mono.git] / mono / btls / btls-util.h
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 //
8
9 #ifndef __btls__btls_util__
10 #define __btls__btls_util__
11
12 #include <stdio.h>
13 #include <stdlib.h>
14 #include <string.h>
15 #include <openssl/ssl.h>
16
17 void
18 mono_btls_free (void *data);
19
20 long
21 mono_btls_util_asn1_time_to_ticks (ASN1_TIME *time);
22
23 int
24 mono_btls_debug_printf (BIO *bio, const char *format, va_list args);
25
26 OPENSSL_EXPORT void CRYPTO_refcount_inc(CRYPTO_refcount_t *count);
27 OPENSSL_EXPORT int CRYPTO_refcount_dec_and_test_zero(CRYPTO_refcount_t *count);
28
29 #endif /* __btls__btls_util__ */