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