[Mono-devel-list] Patch for faster creation of default evidences

Paolo Molaro lupus at ximian.com
Mon Nov 15 04:08:49 EST 2004

On 11/12/04 Sebastien Pouliot wrote:
> +MonoBoolean
> +ves_icall_System_Security_Policy_Evidence_IsAuthenticodePresent (MonoReflectionAssembly *refass)
> +{
> +	if (refass && refass->assembly && refass->assembly->image) {
> +		MonoCLIImageInfo *iinfo = refass->assembly->image->image_info;
> +		if (iinfo && &iinfo) {

&iinfo can never be false: it's the address of the info var on the stack.
MonoCLIImageInfo usage should be kept inside image.c: please add a helper there
to retrieve the certificate info you need and don't add the cil-coff.h include.
Please commit after the two changes.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list