f35d1b
--- ./esc/src/lib/coolkey/SmartCardMonitoringThread.cpp.fix5	2009-06-08 14:14:44.000000000 -0700
f35d1b
+++ ./esc/src/lib/coolkey/SmartCardMonitoringThread.cpp	2009-06-08 14:15:03.000000000 -0700
f35d1b
@@ -159,7 +159,7 @@
f35d1b
 
f35d1b
     /* if we think we have a token, but it's not the right one, or it's 
f35d1b
      * not there, then send a removal event */
f35d1b
-        if (info && (!isPresent || (info->mSeries != PK11_GetSlotSeries(slot))) ) {
f35d1b
+        if (info && !isPresent) {
f35d1b
 
f35d1b
             PR_LOG( coolKeyLogSC, PR_LOG_DEBUG, 
f35d1b
              ("%s SmartCardMonitoringThread::Execute Token Removed : \n",GetTStamp(tBuff,56)));
f35d1b
--- ./esc/src/app/xul/esc/chrome/content/esc/certManager.xul.fix5	2009-06-08 13:46:19.000000000 -0700
f35d1b
+++ ./esc/src/app/xul/esc/chrome/content/esc/certManager.xul	2009-06-08 13:46:33.000000000 -0700
f35d1b
@@ -59,7 +59,6 @@
f35d1b
   <script type="application/x-javascript" src="chrome://global/content/strres.js"/>
f35d1b
   <script type="application/x-javascript" src="chrome://pippki/content/pippki.js"/>
f35d1b
   <script type="application/x-javascript" src="chrome://pippki/content/certManager.js"/>
f35d1b
-  <script type="application/x-javascript" src="escCertManager.js"/>
f35d1b
 
f35d1b
   <vbox flex="1">
f35d1b
     <tabbox id="certmanagertabs" flex="1" style="margin:5px">
f35d1b
--- ./esc/src/app/xul/esc/chrome/content/esc/password.xul.fix5	2009-06-08 14:04:16.000000000 -0700
f35d1b
+++ ./esc/src/app/xul/esc/chrome/content/esc/password.xul	2009-06-08 14:04:29.000000000 -0700
f35d1b
@@ -23,7 +23,6 @@
f35d1b
     id="esc-window"
f35d1b
     title="&getESCPassword;"
f35d1b
     onload="PasswordLoad();"
f35d1b
-    onunload="cleanup();"
f35d1b
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
f35d1b
 
f35d1b
 <stringbundle id="esc_strings" src="chrome://esc/locale/esc.properties"/>
f35d1b
--- ./esc/src/app/xul/esc/chrome/content/esc/ESC.js.fix5	2009-06-08 14:02:26.000000000 -0700
f35d1b
+++ ./esc/src/app/xul/esc/chrome/content/esc/ESC.js	2009-06-08 14:03:46.000000000 -0700
f35d1b
@@ -522,7 +522,10 @@
f35d1b
     if(!string_id || !gStringBundle)
f35d1b
        return null;
f35d1b
 
f35d1b
-    str = gStringBundle.getString(string_id);
f35d1b
+    try {
f35d1b
+        str = gStringBundle.getString(string_id);
f35d1b
+    } catch(e) {
f35d1b
+    }
f35d1b
 
f35d1b
     return str;
f35d1b
 }
f35d1b
--- ./esc/src/app/xul/esc/application.ini.fix5	2009-06-08 13:44:59.000000000 -0700
f35d1b
+++ ./esc/src/app/xul/esc/application.ini	2009-06-08 13:45:15.000000000 -0700
f35d1b
@@ -25,7 +25,7 @@
f35d1b
 Name=ESC
f35d1b
 ;
f35d1b
 ; This field specifies your application's version.  This field is optional.
f35d1b
-Version=1.1.0-6
f35d1b
+Version=1.1.0-7
f35d1b
 ;
f35d1b
 ; This field specifies your application's build ID (timestamp).  This field is
f35d1b
 ; required.
f35d1b
--- ./esc/win32/setup.iss.fix5	2009-06-08 14:16:04.000000000 -0700
f35d1b
+++ ./esc/win32/setup.iss	2009-06-08 14:16:26.000000000 -0700
f35d1b
@@ -4,43 +4,31 @@
f35d1b
 [Setup]
f35d1b
 AppName=Smart Card Manager
f35d1b
 AppMutex=ESCMutex
f35d1b
-AppVerName=Smart Card Manager 1.1.0-3
f35d1b
-AppPublisher=Red Hat, Inc.
f35d1b
+AppVerName=Smart Card Manager 1.1.0-6
f35d1b
+AppPublisher=Fedora
f35d1b
 CreateAppDir=true
f35d1b
 Compression=lzma
f35d1b
 SolidCompression=true
f35d1b
 MinVersion=0,5.0.2195
f35d1b
 ShowLanguageDialog=yes
f35d1b
-OutputBaseFilename=SmartCardManagerSetup-1.1.0-3.win32.i386
f35d1b
-DefaultDirName={pf}\Red Hat\ESC
f35d1b
+OutputBaseFilename=SmartCardManagerSetup-1.1.0-6.win32.i386
f35d1b
+DefaultDirName={pf}\Fedora\ESC
f35d1b
 DisableProgramGroupPage=false
f35d1b
-DefaultGroupName=Red Hat
f35d1b
+DefaultGroupName=Fedora
f35d1b
 SetupIconFile=BUILD\ESC\components\esc.ico
f35d1b
 UninstallDisplayIcon={app}\components\esc.ico
f35d1b
-WizardImageFile=BUILD\ESC\chrome\content\esc\esc-image-large.bmp
f35d1b
+;WizardImageFile=BUILD\ESC\chrome\content\esc\esc-image-large.bmp
f35d1b
+WizardImageFile=esc-image-large.bmp
f35d1b
 WizardSmallImageFile=BUILD\ESC\components\esc.bmp
f35d1b
 AllowNoIcons=yes
f35d1b
 LicenseFile=esc-license.txt
f35d1b
 InfoBeforeFile=info-before.txt
f35d1b
 InfoAfterFile=info-after.txt
f35d1b
 PrivilegesRequired=admin
f35d1b
-VersionInfoVersion=1.1.0.3
f35d1b
+VersionInfoVersion=1.1.0.6
f35d1b
 
f35d1b
 
f35d1b
 [Files]
f35d1b
-Source: BUILD\egate\slbmgpg.dll; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egate.cat; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egate.inf; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egate.sys; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egate_License.txt; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egatebus.cat; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egatebus.inf; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egatebus.sys; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egaterdr.cat; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egaterdr.inf; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egaterdr.sys; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\egdrvins1.dll; DestDir: {win}\egate2.4; Flags: uninsneveruninstall
f35d1b
-Source: BUILD\egate\eginstall.exe; DestDir: {win}\egate2.4; Flags: ignoreversion
f35d1b
 Source: BUILD\clkcsp.dll; DestDir: {sys}; Flags: regserver restartreplace
f35d1b
 Source: BUILD\cspres.dll; DestDir: {sys}; Flags: restartreplace
f35d1b
 Source: BUILD\pk11install.exe; DestDir: {app}\PKCS11
f35d1b
@@ -73,7 +61,6 @@
f35d1b
 Source: BUILD\ESC\application.ini; DestDir: {app}
f35d1b
 Source: BUILD\ESC\chrome\chrome.manifest; DestDir: {app}\chrome
f35d1b
 Source: BUILD\ESC\chrome\content\esc\TRAY.js; DestDir: {app}\chrome\content\esc
f35d1b
-Source: BUILD\ESC\chrome\content\esc\CertInfo.js; DestDir: {app}\chrome\content\esc
f35d1b
 ;Source: BUILD\ESC\chrome\content\esc\certinfo.xul; DestDir: {app}\chrome\content\esc
f35d1b
 Source: BUILD\ESC\chrome\content\esc\config.xul; DestDir: {app}\chrome\content\esc
f35d1b
 Source: BUILD\ESC\chrome\content\esc\contents.rdf; DestDir: {app}\chrome\content\esc
f35d1b
@@ -110,19 +97,18 @@
f35d1b
 Source: BUILD\ESC\xulrunner\mozctl.dll; DestDir: {app}\xulrunner
f35d1b
 Source: BUILD\ESC\xulrunner\mozctlx.dll; DestDir: {app}\xulrunner
f35d1b
 Source: BUILD\ESC\xulrunner\nspr4.dll; DestDir: {app}\xulrunner
f35d1b
-Source: BUILD\ESC\xulrunner\nspr4.dll; DestDir: {app}\PKCS11
f35d1b
+Source: BUILD\libnspr4.dll; DestDir: {app}\PKCS11
f35d1b
 Source: BUILD\ESC\xulrunner\nss3.dll; DestDir: {app}\xulrunner
f35d1b
-Source: BUILD\ESC\xulrunner\nss3.dll; DestDir: {app}\PKCS11
f35d1b
 Source: BUILD\ESC\xulrunner\nssckbi.dll; DestDir: {app}\xulrunner
f35d1b
 Source: BUILD\ESC\xulrunner\plc4.dll; DestDir: {app}\xulrunner
f35d1b
-Source: BUILD\ESC\xulrunner\plc4.dll; DestDir: {app}\PKCS11
f35d1b
+Source: BUILD\libplc4.dll; DestDir: {app}\PKCS11
f35d1b
 Source: BUILD\ESC\xulrunner\plds4.dll; DestDir: {app}\xulrunner
f35d1b
-Source: BUILD\ESC\xulrunner\plds4.dll; DestDir: {app}\PKCS11
f35d1b
+Source: BUILD\libplds4.dll; DestDir: {app}\PKCS11
f35d1b
 Source: BUILD\ESC\xulrunner\README.txt; DestDir: {app}\xulrunner
f35d1b
 Source: BUILD\ESC\xulrunner\smime3.dll; DestDir: {app}\xulrunner
f35d1b
 Source: BUILD\ESC\xulrunner\softokn3.chk; DestDir: {app}\xulrunner
f35d1b
 Source: BUILD\ESC\xulrunner\softokn3.dll; DestDir: {app}\xulrunner
f35d1b
-Source: BUILD\ESC\xulrunner\softokn3.dll; DestDir: {app}\PKCS11
f35d1b
+Source: BUILD\softokn3.dll; DestDir: {app}\PKCS11
f35d1b
 Source: BUILD\ESC\xulrunner\ssl3.dll; DestDir: {app}\xulrunner
f35d1b
 Source: BUILD\ESC\xulrunner\updater.exe; DestDir: {app}\xulrunner
f35d1b
 Source: BUILD\ESC\xulrunner\xpcom.dll; DestDir: {app}\xulrunner
f35d1b
@@ -413,9 +399,6 @@
f35d1b
 Source: BUILD\ESC\xulrunner\res\fonts\mathfontSTIXSize1.properties; DestDir: {app}\xulrunner\res\fonts
f35d1b
 Source: BUILD\ESC\xulrunner\res\html\folder.png; DestDir: {app}\xulrunner\res\html
f35d1b
 Source: BUILD\ESC\xulrunner\defaults\profile\localstore.rdf; DestDir: {app}\xulrunner\defaults\profile
f35d1b
-Source: BUILD\ESC\xulrunner\sqlite3.dll; DestDir: {app}\PKCS11
f35d1b
-Source: BUILD\ESC\xulrunner\mozcrt19.dll; DestDir: {app}\PKCS11
f35d1b
-Source: BUILD\ESC\xulrunner\nssutil3.dll; DestDir: {app}\PKCS11
f35d1b
 Source: BUILD\ESC\xulrunner\dictionaries\en-US.aff; DestDir: {app}\dictionaries
f35d1b
 Source: BUILD\ESC\xulrunner\dictionaries\en-US.dic; DestDir: {app}\dictionaries
f35d1b
 Source: BUILD\ESC\xulrunner\modules\XPCOMUtils.jsm; DestDir: {app}\modules
f35d1b
@@ -429,7 +412,6 @@
f35d1b
 
f35d1b
 [Run]
f35d1b
 
f35d1b
-Filename: {win}\egate2.4\eginstall.exe; Parameters: -f -l eginstall.txt; WorkingDir: {win}\egate2.4; Flags: waituntilterminated; StatusMsg: Installing smart card drivers....
f35d1b
 Filename: {app}\PKCS11\pk11install.exe; Parameters: "-v ""name='CoolKey Module' library=coolkeypk11.dll NSS=""slotParams={{0x1=[slotFlags=PublicCerts]}"""""; WorkingDir: {sys}; StatusMsg: Configuring System for smart cards...
f35d1b
 Filename: {app}\xulrunner\xulrunner.exe; Parameters: """--register-global"""
f35d1b
 Filename: {app}\esc.exe; WorkingDir: {app}; StatusMsg: {code:GetEscStatusMsg}; Flags: nowait
f35d1b
@@ -450,12 +432,18 @@
f35d1b
 Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Axalto Developer; ValueType: binary; ValueName: ATR; ValueData: 3b 75 94 00 00 62 02 02 00 00
f35d1b
 
f35d1b
 ; Now register the Gemalto 64K V2
f35d1b
-Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Gemalto 64K V2; ValueType: binary; ValueName: ATRMask: ValueData: ff ff ff ff ff ff ff ff ff ff; Flags: uninsdeletekey
f35d1b
+Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Gemalto 64K V2; ValueType: binary; ValueName: ATRMask; ValueData: ff ff 00 ff 00 ff ff ff 00 00; Flags: uninsdeletekey
f35d1b
 
f35d1b
-Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Gemalto 64 V2: ValueType: string; ValueName: Crypto Provider; ValueData: CoolKey PKCS #11 CSP
f35d1b
+Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Gemalto 64K V2; ValueType: string; ValueName: Crypto Provider; ValueData: CoolKey PKCS #11 CSP
f35d1b
 
f35d1b
-Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Gemalto 64 V2: ValueType: binary; ValueName: ATR; ValueData: 3b 95 95 40 ff ae 01 03 00 00
f35d1b
+Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Gemalto 64K V2; ValueType: binary; ValueName: ATR; ValueData: 3b 95 00 40 00 ae 01 03 00 00
f35d1b
 
f35d1b
+; Now register the Safenet 330J
f35d1b
+Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Safenet 330J; ValueType: binary; ValueName: ATRMask; ValueData: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 00 00; Flags: uninsdeletekey
f35d1b
+
f35d1b
+Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Safenet 330J; ValueType: string; ValueName: Crypto Provider; ValueData: CoolKey PKCS #11 CSP
f35d1b
+
f35d1b
+Root: HKLM; Subkey: Software\Microsoft\Cryptography\Calais\SmartCards\Safenet 330J; ValueType: binary; ValueName: ATR; ValueData: 3b ec 00 ff 81 31 fe 45 a0 00 00 00 56 33 33 30 4a 33 06 00 00
f35d1b
 
f35d1b
 Root: HKLM; Subkey: Software\
f35d1b
 ; Turn off the "pick a cert" dialog box
f35d1b
--- ./esc/win32/build.sh.fix5	2009-06-08 14:15:58.000000000 -0700
f35d1b
+++ ./esc/win32/build.sh	2009-06-08 14:16:33.000000000 -0700
f35d1b
@@ -37,6 +37,8 @@
f35d1b
 NSS_ARCHIVE=$NSS_NAME-with-nspr-4.6.4
f35d1b
 NSS_SOURCE_URL=https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_11_4_RTM/src/$NSS_ARCHIVE.tar.gz
f35d1b
 
f35d1b
+NSS_LIB_PATH=$NSS_NAME/mozilla/dist/WIN*/lib
f35d1b
+
f35d1b
 #Inno installer values
f35d1b
 
f35d1b
 #INNO_PATH="C:/Program Files/Inno Setup 5/ISCC.exe"
f35d1b
@@ -76,7 +78,7 @@
f35d1b
 #ESC values
f35d1b
 
f35d1b
 ESC_NAME=esc
f35d1b
-ESC_VERSION_NO=1.1.0-3
f35d1b
+ESC_VERSION_NO=1.1.0-6
f35d1b
 
f35d1b
 
f35d1b
 #Cygwin values
f35d1b
@@ -462,6 +464,15 @@
f35d1b
 
f35d1b
     cp esc-image-large.bmp BUILD/ESC/chrome/content/esc
f35d1b
 
f35d1b
+
f35d1b
+     #Transport the nss files needed for pk11install.exe
f35d1b
+
f35d1b
+    cp $NSS_LIB_PATH/softokn3.dll BUILD
f35d1b
+    cp $NSS_LIB_PATH/libplc4.dll BUILD
f35d1b
+    cp $NSS_LIB_PATH/libnspr4.dll BUILD
f35d1b
+    cp $NSS_LIB_PATH/libplds4.dll BUILD
f35d1b
+
f35d1b
+
f35d1b
     # Build the INNO executable installer
f35d1b
 
f35d1b
     "$INNO_PATH" setup.iss