Blame SOURCES/esc-1.1.2-fix9.patch

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