[Mono-dev] Re: FW: System.Web.Mail patches #2
    Robert Jordan 
    robertj at gmx.net
       
    Mon Apr 24 16:14:37 EDT 2006
    
    
  
Chris Toshok wrote:
> I'll defer to gonzalo (or someone who knows this code at all) on this
> one, but just at first sight this looks like a bad idea to me:
Security wise it should be
	Assembly.Load(Consts.AssemblyMono_Security)
which always loads the suitable Mono.Security from the GAC.
Robert
> 
>> +               // Load Mono.Security.dll
>> +               Assembly a;
>> +               try {
>> +                       a =
>> Assembly.LoadWithPartialName("Mono.Security");
>> +               }
>> +               catch(System.IO.FileNotFoundException) {
>> +                       throw new SmtpException( "Cannot load
>> Mono.Security.dll" );
>> +               } 
    
    
More information about the Mono-devel-list
mailing list