2009-03-27 Sebastien Pouliot <sebastien@ximian.com>
commit5545f01f97b27f3845643f463a357068854cbfa3
authorSebastien Pouliot <sebastien@ximian.com>
Fri, 27 Mar 2009 14:00:09 +0000 (27 14:00 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Fri, 27 Mar 2009 14:00:09 +0000 (27 14:00 -0000)
tree2c8c04ff81a29d234a330df9fcfb782e3fbb9726
parent407d6d81e8815c12bd49641f0034ed336f73136b
2009-03-27  Sebastien Pouliot  <sebastien@ximian.com>

* appdomain.h: Export a new callback type and a new function to
set this callback. This allow a mono host to provide it's own
definition for "platform code".
* metadata-internals.h: Add a core_clr_platform_code flag on
_MonoImage to (cache and) know if it is representing platform
code.
* image.c (do_mono_image_open): Set core_clr_platform_code flag
on platform code images.
* security-core-clr.c|h
(mono_security_set_core_clr_platform_callback): Allow the host
to provide it's own platform check definition.
(mono_security_core_clr_determine_platform_image): Detect if an
image is platform code (using the specified callback).
(mono_security_core_clr_is_platform_image): Return cached value
for platform code.

svn path=/trunk/mono/; revision=130389
mono/metadata/ChangeLog
mono/metadata/appdomain.h
mono/metadata/image.c
mono/metadata/metadata-internals.h
mono/metadata/security-core-clr.c
mono/metadata/security-core-clr.h