History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-888
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Marcus Griep
Reporter: Marcus Griep
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Delay Sign parameter is ignored

Created: 06/Oct/07 07:09 PM   Updated: 09/Oct/07 01:11 PM
Component/s: Command line tools, Compiler
Affects Version/s: 0.7.9
Fix Version/s: 0.8

Time Tracking:
Not Specified

File Attachments: 1. Text File delaysign.patch (0.6 kb)


Patch Submitted: Yes


 Description  « Hide
The delay sign parameter is ignored by the compiler, instead fully signing all assemblies if a keyfile/keycontainer is specified. Uploaded patch respects the delay sign parameter.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Marcus Griep - 06/Oct/07 07:13 PM
To verify, compile with the delaysign flag then try to run the assembly; you should get a runtime security error for a bad signature. Then use sn.exe to resign the assembly and run it again. It should run without any problems.

Example:

G:\>Boo\build\booc.exe -t:exe -o:tester.exe -p:verify -keyfile:tester.snk -delaysign tester.boo
Boo Compiler version 0.7.9.2697 (CLR v2.0.50727.1378)

G:\>tester.exe

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'tester, Version=0.0.0.0, Culture=neutral, PublicKeyToken=de01317dc0e5915c' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
File name: 'tester, Version=0.0.0.0, Culture=neutral, PublicKeyToken=de01317dc0e5915c' ---> System.Security.SecurityException: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
The Zone of the assembly that failed was:
MyComputer



G:\>sn -TS tester.exe tester.snk

Microsoft (R) .NET Framework Strong Name Utility  Version 2.0.50727.312
Copyright (c) Microsoft Corporation.  All rights reserved.

Assembly 'tester.exe' successfully re-signed

G:\>tester.exe
Ran Correctly

G:\>

Rodrigo B. de Oliveira - 09/Oct/07 01:11 PM
Patch applied. Thanks!