undo change in mini.c
[mono-project.git] / mono / btls / btls-x509-chain.h
blob8c3a0ba4ed6806e5d34eb84095e6cf92f6d94fdf
1 //
2 // btls-x509-chain.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_chain__
10 #define __btls__btls_x509_chain__
12 #include <stdio.h>
13 #include "btls-ssl.h"
14 #include "btls-x509.h"
16 MONO_API MonoBtlsX509Chain *
17 mono_btls_x509_chain_new (void);
19 MONO_API MonoBtlsX509Chain *
20 mono_btls_x509_chain_from_certs (STACK_OF(X509) *certs);
22 MONO_API STACK_OF(X509) *
23 mono_btls_x509_chain_peek_certs (MonoBtlsX509Chain *chain);
25 MONO_API int
26 mono_btls_x509_chain_get_count (MonoBtlsX509Chain *chain);
28 MONO_API X509 *
29 mono_btls_x509_chain_get_cert (MonoBtlsX509Chain *chain, int index);
31 MONO_API STACK_OF(X509) *
32 mono_btls_x509_chain_get_certs (MonoBtlsX509Chain *chain);
34 MONO_API MonoBtlsX509Chain *
35 mono_btls_x509_chain_up_ref (MonoBtlsX509Chain *chain);
37 MONO_API int
38 mono_btls_x509_chain_free (MonoBtlsX509Chain *chain);
40 MONO_API void
41 mono_btls_x509_chain_add_cert (MonoBtlsX509Chain *chain, X509 *x509);
43 #endif /* defined(__btls__btls_x509_chain__) */