X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fsecurity.h;h=4497e168141a51d3fbe2d84cce5de4ad7f044ce1;hb=138adfc043af2d4bf8a28fc5ec8fc4dd4970d6d1;hp=2d145cf7b7275d7f50544cfc3c006ee758f59cab;hpb=f21ca20e9b085779c25a0f32f91bc14280797d99;p=mono.git diff --git a/mono/metadata/security.h b/mono/metadata/security.h index 2d145cf7b72..4497e168141 100644 --- a/mono/metadata/security.h +++ b/mono/metadata/security.h @@ -11,48 +11,51 @@ #ifndef _MONO_METADATA_SECURITY_H_ #define _MONO_METADATA_SECURITY_H_ +#include #include +#include +#include G_BEGIN_DECLS /* System.Environment */ -extern MonoString* ves_icall_System_Environment_get_UserName (void) MONO_INTERNAL; +extern MonoString* ves_icall_System_Environment_get_UserName (void); /* System.Security.Principal.WindowsIdentity */ -extern MonoArray* ves_icall_System_Security_Principal_WindowsIdentity_GetRoles (gpointer token) MONO_INTERNAL; -extern gpointer ves_icall_System_Security_Principal_WindowsIdentity_GetCurrentToken (void) MONO_INTERNAL; -extern MonoString* ves_icall_System_Security_Principal_WindowsIdentity_GetTokenName (gpointer token) MONO_INTERNAL; -extern gpointer ves_icall_System_Security_Principal_WindowsIdentity_GetUserToken (MonoString *username) MONO_INTERNAL; +extern MonoArray* ves_icall_System_Security_Principal_WindowsIdentity_GetRoles (gpointer token); +extern gpointer ves_icall_System_Security_Principal_WindowsIdentity_GetCurrentToken (void); +extern MonoString* ves_icall_System_Security_Principal_WindowsIdentity_GetTokenName (gpointer token); +extern gpointer ves_icall_System_Security_Principal_WindowsIdentity_GetUserToken (MonoString *username); /* System.Security.Principal.WindowsImpersonationContext */ -extern gboolean ves_icall_System_Security_Principal_WindowsImpersonationContext_CloseToken (gpointer token) MONO_INTERNAL; -extern gpointer ves_icall_System_Security_Principal_WindowsImpersonationContext_DuplicateToken (gpointer token) MONO_INTERNAL; -extern gboolean ves_icall_System_Security_Principal_WindowsImpersonationContext_SetCurrentToken (gpointer token) MONO_INTERNAL; -extern gboolean ves_icall_System_Security_Principal_WindowsImpersonationContext_RevertToSelf (void) MONO_INTERNAL; +extern gboolean ves_icall_System_Security_Principal_WindowsImpersonationContext_CloseToken (gpointer token); +extern gpointer ves_icall_System_Security_Principal_WindowsImpersonationContext_DuplicateToken (gpointer token); +extern gboolean ves_icall_System_Security_Principal_WindowsImpersonationContext_SetCurrentToken (gpointer token); +extern gboolean ves_icall_System_Security_Principal_WindowsImpersonationContext_RevertToSelf (void); /* System.Security.Principal.WindowsPrincipal */ -extern gboolean ves_icall_System_Security_Principal_WindowsPrincipal_IsMemberOfGroupId (gpointer user, gpointer group) MONO_INTERNAL; -extern gboolean ves_icall_System_Security_Principal_WindowsPrincipal_IsMemberOfGroupName (gpointer user, MonoString *group) MONO_INTERNAL; +extern gboolean ves_icall_System_Security_Principal_WindowsPrincipal_IsMemberOfGroupId (gpointer user, gpointer group); +extern gboolean ves_icall_System_Security_Principal_WindowsPrincipal_IsMemberOfGroupName (gpointer user, MonoString *group); /* Mono.Security.Cryptography.KeyPairPersistance */ -extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_CanSecure (MonoString *root) MONO_INTERNAL; -extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_IsMachineProtected (MonoString *path) MONO_INTERNAL; -extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_IsUserProtected (MonoString *path) MONO_INTERNAL; -extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_ProtectMachine (MonoString *path) MONO_INTERNAL; -extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_ProtectUser (MonoString *path) MONO_INTERNAL; +extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_CanSecure (MonoString *root); +extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_IsMachineProtected (MonoString *path); +extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_IsUserProtected (MonoString *path); +extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_ProtectMachine (MonoString *path); +extern MonoBoolean ves_icall_Mono_Security_Cryptography_KeyPairPersistence_ProtectUser (MonoString *path); /* System.Security.Policy.Evidence */ -MonoBoolean ves_icall_System_Security_Policy_Evidence_IsAuthenticodePresent (MonoReflectionAssembly *refass) MONO_INTERNAL; +MonoBoolean ves_icall_System_Security_Policy_Evidence_IsAuthenticodePresent (MonoReflectionAssembly *refass); /* System.Security.SecureString */ -extern void ves_icall_System_Security_SecureString_DecryptInternal (MonoArray *data, MonoObject *scope) MONO_INTERNAL; -extern void ves_icall_System_Security_SecureString_EncryptInternal (MonoArray *data, MonoObject *scope) MONO_INTERNAL; -void invoke_protected_memory_method (MonoArray *data, MonoObject *scope, gboolean encrypt); +extern void ves_icall_System_Security_SecureString_DecryptInternal (MonoArray *data, MonoObject *scope); +extern void ves_icall_System_Security_SecureString_EncryptInternal (MonoArray *data, MonoObject *scope); +void invoke_protected_memory_method (MonoArray *data, MonoObject *scope, gboolean encrypt, MonoError *error); G_END_DECLS