2 * security-core-clr.h: CoreCLR security
5 * Mark Probst <mark.probst@gmail.com>
10 #ifndef _MONO_METADATA_SECURITY_CORE_CLR_H_
11 #define _MONO_METADATA_SECURITY_CORE_CLR_H_
13 #include <mono/metadata/reflection.h>
16 /* We compare these values as integers, so the order must not
18 MONO_SECURITY_CORE_CLR_TRANSPARENT
= 0,
19 MONO_SECURITY_CORE_CLR_SAFE_CRITICAL
,
20 MONO_SECURITY_CORE_CLR_CRITICAL
21 } MonoSecurityCoreCLRLevel
;
23 extern gboolean mono_security_core_clr_test
;
25 extern void mono_security_core_clr_ensure_reflection_access_field (MonoClassField
*field
) MONO_INTERNAL
;
26 extern void mono_security_core_clr_ensure_reflection_access_method (MonoMethod
*method
) MONO_INTERNAL
;
27 extern gboolean
mono_security_core_clr_ensure_delegate_creation (MonoMethod
*method
, gboolean throwOnBindFailure
) MONO_INTERNAL
;
28 extern MonoException
* mono_security_core_clr_ensure_dynamic_method_resolved_object (gpointer ref
, MonoClass
*handle_class
) MONO_INTERNAL
;
30 extern MonoSecurityCoreCLRLevel
mono_security_core_clr_class_level (MonoClass
*class) MONO_INTERNAL
;
31 extern MonoSecurityCoreCLRLevel
mono_security_core_clr_method_level (MonoMethod
*method
, gboolean with_class_level
) MONO_INTERNAL
;
33 extern gboolean
mono_security_core_clr_is_platform_image (MonoImage
*image
) MONO_INTERNAL
;
35 #endif /* _MONO_METADATA_SECURITY_CORE_CLR_H_ */