More disambiguation of Python in makefiles (#18284)
[mono-project.git] / mono / btls / btls-x509-store.h
blob182198217289023ac035b11a596d6c5ed8084c42
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 //
9 #ifndef __btls__btls_x509_store__
10 #define __btls__btls_x509_store__
12 #include <stdio.h>
13 #include "btls-ssl.h"
15 MONO_API MonoBtlsX509Store *
16 mono_btls_x509_store_new (void);
18 MONO_API MonoBtlsX509Store *
19 mono_btls_x509_store_from_store (X509_STORE *ctx);
21 MONO_API MonoBtlsX509Store *
22 mono_btls_x509_store_from_ctx (X509_STORE_CTX *ctx);
24 MONO_API MonoBtlsX509Store *
25 mono_btls_x509_store_from_ssl_ctx (MonoBtlsSslCtx *ctx);
27 MONO_API MonoBtlsX509Store *
28 mono_btls_x509_store_up_ref (MonoBtlsX509Store *store);
30 MONO_API int
31 mono_btls_x509_store_free (MonoBtlsX509Store *store);
33 MONO_API X509_STORE *
34 mono_btls_x509_store_peek_store (MonoBtlsX509Store *store);
36 MONO_API int
37 mono_btls_x509_store_add_cert (MonoBtlsX509Store *store, X509 *cert);
39 MONO_API int
40 mono_btls_x509_store_load_locations (MonoBtlsX509Store *store, const char *file, const char *path);
42 MONO_API int
43 mono_btls_x509_store_set_default_paths (MonoBtlsX509Store *store);
45 MONO_API int
46 mono_btls_x509_store_get_count (MonoBtlsX509Store *store);
48 #endif /* defined(__btls__btls_x509_store__) */