summaryrefslogtreecommitdiff
path: root/esc-1.1.2-fix9.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:37:18 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:37:18 +0000
commitbf4ff8e947ae27bee56bec9a22210deb123f519e (patch)
treee57446a6e5ca414b393fcf0fec4f61c0594f6d46 /esc-1.1.2-fix9.patch
parent3185e4a58ad6057d957d89bf89bc46f3064b5cdc (diff)
automatic import of escopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'esc-1.1.2-fix9.patch')
-rw-r--r--esc-1.1.2-fix9.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/esc-1.1.2-fix9.patch b/esc-1.1.2-fix9.patch
new file mode 100644
index 0000000..0ddf203
--- /dev/null
+++ b/esc-1.1.2-fix9.patch
@@ -0,0 +1,41 @@
+diff -up ./esc/src/app/esc.js.fix9 ./esc/src/app/esc.js
+--- ./esc/src/app/esc.js.fix9 2020-08-12 11:15:29.423093856 -0700
++++ ./esc/src/app/esc.js 2020-08-12 11:43:47.646556310 -0700
+@@ -271,7 +271,6 @@ class ESC {
+ if(!insertedToken && !doReset) {
+ return;
+ }
+-
+ if(doReset) {
+ this._operationsGrid.remove(this._phoneHomeButton);
+ this._operationsGrid.remove(this._enrollButton);
+@@ -297,6 +296,12 @@ class ESC {
+ }
+
+ this._operationsGrid.show_all();
++ } else {
++ if(insertedToken.status == 4) {
++ this._operationsGrid.add(this._certDetailButton);
++ this._operationsGrid.show_all();
++
++ }
+ }
+ }
+
+diff -up ./esc/src/lib/coolkey/CoolKeyHandler.cpp.fix9 ./esc/src/lib/coolkey/CoolKeyHandler.cpp
+--- ./esc/src/lib/coolkey/CoolKeyHandler.cpp.fix9 2020-08-12 10:59:24.844704399 -0700
++++ ./esc/src/lib/coolkey/CoolKeyHandler.cpp 2020-08-12 11:11:05.480713407 -0700
+@@ -2329,11 +2329,11 @@ CKHGetCoolKeyInfo(PK11SlotInfo *aSlot,Co
+ }
+
+ //Massage the tokenInfo so it adhered to when coolkey was doing it.
+- if(hasApplet) {
++ if(hasApplet == 1 || isACAC == 1 || isAPIV == 1) {
+ tokenInfo.firmwareVersion.major = 1;
+ }
+
+- if(isPersonalized) {
++ if(isPersonalized == 1 || isACAC == 1 || isAPIV == 1) {
+ tokenInfo.flags |= CKF_TOKEN_INITIALIZED;
+ }
+