Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mono / btls / btls-x509-store.h
1 //
2 //  btls-x509-store.h
3 //  MonoBtls
4 //
5 //  Created by Martin Baulig on 3/3/16.
6 //  Copyright © 2016 Xamarin. All rights reserved.
7 //
8
9 #ifndef __btls__btls_x509_store__
10 #define __btls__btls_x509_store__
11
12 #include <stdio.h>
13 #include <btls-ssl.h>
14
15 MonoBtlsX509Store *
16 mono_btls_x509_store_new (void);
17
18 MonoBtlsX509Store *
19 mono_btls_x509_store_from_ctx (X509_STORE_CTX *ctx);
20
21 MonoBtlsX509Store *
22 mono_btls_x509_store_from_ssl_ctx (MonoBtlsSslCtx *ctx);
23
24 MonoBtlsX509Store *
25 mono_btls_x509_store_up_ref (MonoBtlsX509Store *store);
26
27 int
28 mono_btls_x509_store_free (MonoBtlsX509Store *store);
29
30 X509_STORE *
31 mono_btls_x509_store_peek_store (MonoBtlsX509Store *store);
32
33 int
34 mono_btls_x509_store_add_cert (MonoBtlsX509Store *store, X509 *cert);
35
36 int
37 mono_btls_x509_store_load_locations (MonoBtlsX509Store *store, const char *file, const char *path);
38
39 int
40 mono_btls_x509_store_set_default_paths (MonoBtlsX509Store *store);
41
42 int
43 mono_btls_x509_store_get_count (MonoBtlsX509Store *store);
44
45 #endif /* defined(__btls__btls_x509_store__) */
46