[btls] Fix library install
[mono.git] / mono / btls / btls-error.c
1 //
2 //  btls-error.c
3 //  MonoBtls
4 //
5 //  Created by Martin Baulig on 6/19/16.
6 //  Copyright © 2016 Xamarin. All rights reserved.
7 //
8
9 #include <btls-error.h>
10 #include <btls-util.h>
11 #include <assert.h>
12
13 MONO_API int
14 mono_btls_error_peek_error (void)
15 {
16         return ERR_peek_error ();
17 }
18
19 MONO_API int
20 mono_btls_error_get_error (void)
21 {
22         return ERR_get_error ();
23 }
24
25 MONO_API void
26 mono_btls_error_clear_error (void)
27 {
28         ERR_clear_error ();
29 }
30
31 MONO_API void
32 mono_btls_error_get_error_string_n (int error, char *buf, int len)
33 {
34         ERR_error_string_n (error, buf, len);
35 }
36