Changeset 845
- Timestamp:
- 1/2/2009 10:46:23 AM (4 years ago)
- Location:
- branches/eraser6
- Files:
-
- 1 added
- 3 edited
-
Manager/Manager.csproj (modified) (1 diff)
-
Manager/Plugins.cs (modified) (1 diff)
-
Util/Util.csproj (modified) (1 diff)
-
Util/WintrustAPI.cs (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/eraser6/Manager/Manager.csproj
r633 r845 40 40 </Reference> 41 41 <Reference Include="System.Data" /> 42 <Reference Include="System.Security" /> 42 43 <Reference Include="System.Windows.Forms" /> 43 44 <Reference Include="System.Xml" /> -
branches/eraser6/Manager/Plugins.cs
r672 r845 270 270 IsCore = false; 271 271 272 try 273 { 274 //Try to load the certificate to see if it exists; exceptions will be 275 //thrown if the assembly is not signed. 272 //Verify the certificate in the assembly. 273 if (WintrustAPI.VerifyAuthenticode(assembly.Location)) 274 { 276 275 X509Certificate2 cert = new X509Certificate2( 277 276 X509Certificate.CreateFromSignedFile(assembly.Location)); 278 279 //Verify the validity of the certificate 280 if (cert.Verify()) 281 AssemblyAuthenticode = cert; 282 } 283 catch (CryptographicException) 284 { 277 AssemblyAuthenticode = cert; 285 278 } 286 279 } -
branches/eraser6/Util/Util.csproj
r795 r845 60 60 <Compile Include="Properties\AssemblyInfo.cs" /> 61 61 <Compile Include="UserAPI.cs" /> 62 <Compile Include="WintrustAPI.cs" /> 62 63 </ItemGroup> 63 64 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Note: See TracChangeset
for help on using the changeset viewer.
