Blame SOURCES/esc-1.1.2-fix9.patch

1d0024
diff -up ./esc/src/app/esc.js.fix9 ./esc/src/app/esc.js
1d0024
--- ./esc/src/app/esc.js.fix9	2020-08-12 11:15:29.423093856 -0700
1d0024
+++ ./esc/src/app/esc.js	2020-08-12 11:43:47.646556310 -0700
1d0024
@@ -271,7 +271,6 @@ class ESC {
1d0024
          if(!insertedToken && !doReset) {
1d0024
              return;
1d0024
          }
1d0024
-     
1d0024
          if(doReset) {
1d0024
              this._operationsGrid.remove(this._phoneHomeButton);
1d0024
              this._operationsGrid.remove(this._enrollButton);
1d0024
@@ -297,6 +296,12 @@ class ESC {
1d0024
              }
1d0024
 
1d0024
              this._operationsGrid.show_all();
1d0024
+         } else {
1d0024
+             if(insertedToken.status == 4) {
1d0024
+                 this._operationsGrid.add(this._certDetailButton);
1d0024
+		 this._operationsGrid.show_all();
1d0024
+
1d0024
+	     }
1d0024
          }
1d0024
      }
1d0024
 
1d0024
diff -up ./esc/src/lib/coolkey/CoolKeyHandler.cpp.fix9 ./esc/src/lib/coolkey/CoolKeyHandler.cpp
1d0024
--- ./esc/src/lib/coolkey/CoolKeyHandler.cpp.fix9	2020-08-12 10:59:24.844704399 -0700
1d0024
+++ ./esc/src/lib/coolkey/CoolKeyHandler.cpp	2020-08-12 11:11:05.480713407 -0700
1d0024
@@ -2329,11 +2329,11 @@ CKHGetCoolKeyInfo(PK11SlotInfo *aSlot,Co
1d0024
     }
1d0024
 
1d0024
     //Massage the tokenInfo so it adhered to when coolkey was doing it.
1d0024
-    if(hasApplet) {
1d0024
+    if(hasApplet == 1 || isACAC == 1 || isAPIV == 1) {
1d0024
         tokenInfo.firmwareVersion.major = 1;    
1d0024
     }
1d0024
 
1d0024
-    if(isPersonalized) {
1d0024
+    if(isPersonalized == 1 || isACAC == 1 || isAPIV == 1) {
1d0024
         tokenInfo.flags |= CKF_TOKEN_INITIALIZED;
1d0024
     }
1d0024