Merge pull request #3591 from directhex/mono_libdir_fallback
[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 <assert.h>
11
12 int
13 mono_btls_error_peek_error (void)
14 {
15         return ERR_peek_error ();
16 }
17
18 int
19 mono_btls_error_get_error (void)
20 {
21         return ERR_get_error ();
22 }
23
24 void
25 mono_btls_error_clear_error (void)
26 {
27         ERR_clear_error ();
28 }
29
30 void
31 mono_btls_error_get_error_string_n (int error, char *buf, int len)
32 {
33         ERR_error_string_n (error, buf, len);
34 }
35