[gs-bugs] [Bug 692615] Allow customers to specify a serial number

bugzilla-daemon at ghostscript.com bugzilla-daemon at ghostscript.com
Fri Oct 28 05:34:50 UTC 2011


http://bugs.ghostscript.com/show_bug.cgi?id=692615

Ray Johnston <ray.johnston at artifex.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Ray Johnston <ray.johnston at artifex.com> 2011-10-28 05:34:48 UTC ---
I had thought this was requested by a customer, but no customer ID is in
the bug. Ken, please notify the original submitter.

As of commit 7b2b1f7 I have added a gp_serialnumber as a platform specific
function. The default for most platforms returns the same "magic" serial
number as defined with GS_SERIALNUMBER as a C #define or the default "42"
(see base.gscdefs.c)

The Windows implementation returns a 32-bit value derived from the Registry
key "HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing\HardwareID\ClientHWID".
The algorithm used to derive the serialnumber value is secret (just kidding,
see the source -- really just arbitrary). I am NOT at all sure that this is
unique across Windows systems, or even supported. If there are any errors
from the registry query, we just return the GS_SERIALNUMBER (42).

Other ways of implementing this would be to write a key in the registry or
in a file that would be used for the DRM.

If anyone wants to tackle getting something working for Mac OS/X or linux or
other systems, please feel free. We'd welcome the contribution.

-- 
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the gs-bugs mailing list