[btls] Convert BTLS icalls to pinvokes by invoking them using [DllImp… (#3799)
[mono.git] / mono / btls / btls-x509-store.c
index f2c826e11f4be867c81ef1c49940733bc79867ea..3534739a6ee72b352b48c063646413dbb4fd59c6 100644 (file)
@@ -13,7 +13,7 @@ struct MonoBtlsX509Store {
        CRYPTO_refcount_t references;
 };
 
-MonoBtlsX509Store *
+MONO_API MonoBtlsX509Store *
 mono_btls_x509_store_from_store (X509_STORE *ctx)
 {
        MonoBtlsX509Store *store;
@@ -29,13 +29,13 @@ mono_btls_x509_store_from_store (X509_STORE *ctx)
        return store;
 }
 
-MonoBtlsX509Store *
+MONO_API MonoBtlsX509Store *
 mono_btls_x509_store_from_ctx (X509_STORE_CTX *ctx)
 {
        return mono_btls_x509_store_from_store (ctx->ctx);
 }
 
-MonoBtlsX509Store *
+MONO_API MonoBtlsX509Store *
 mono_btls_x509_store_new (void)
 {
        MonoBtlsX509Store *store;
@@ -50,20 +50,20 @@ mono_btls_x509_store_new (void)
        return store;
 }
 
-X509_STORE *
+MONO_API X509_STORE *
 mono_btls_x509_store_peek_store (MonoBtlsX509Store *store)
 {
        return store->store;
 }
 
-MonoBtlsX509Store *
+MONO_API MonoBtlsX509Store *
 mono_btls_x509_store_from_ssl_ctx (MonoBtlsSslCtx *ctx)
 {
        X509_STORE *store = mono_btls_ssl_ctx_peek_store (ctx);
        return mono_btls_x509_store_from_store (store);
 }
 
-int
+MONO_API int
 mono_btls_x509_store_free (MonoBtlsX509Store *store)
 {
        if (!CRYPTO_refcount_dec_and_test_zero(&store->references))
@@ -77,32 +77,32 @@ mono_btls_x509_store_free (MonoBtlsX509Store *store)
        return 1;
 }
 
-MonoBtlsX509Store *
+MONO_API MonoBtlsX509Store *
 mono_btls_x509_store_up_ref (MonoBtlsX509Store *store)
 {
        CRYPTO_refcount_inc (&store->references);
        return store;
 }
 
-int
+MONO_API int
 mono_btls_x509_store_add_cert (MonoBtlsX509Store *store, X509 *cert)
 {
        return X509_STORE_add_cert (store->store, cert);
 }
 
-int
+MONO_API int
 mono_btls_x509_store_load_locations (MonoBtlsX509Store *store, const char *file, const char *path)
 {
        return X509_STORE_load_locations (store->store, file, path);
 }
 
-int
+MONO_API int
 mono_btls_x509_store_set_default_paths (MonoBtlsX509Store *store)
 {
        return X509_STORE_set_default_paths (store->store);
 }
 
-int
+MONO_API int
 mono_btls_x509_store_get_count (MonoBtlsX509Store *store)
 {
        return (int)sk_X509_OBJECT_num (store->store->objs);