forked from pool/openCryptoki
Marcus Meissner
9a3dd47c2b
Latest fix from IBM developers. OBS-URL: https://build.opensuse.org/request/show/424303 OBS-URL: https://build.opensuse.org/package/show/security/openCryptoki?expand=0&rev=42
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 814e5861701798b4f5872fcc20f7292f79987104 Mon Sep 17 00:00:00 2001
|
|
From: Eduardo Barretto <ebarreto@linux.vnet.ibm.com>
|
|
Date: Tue, 30 Aug 2016 16:46:40 -0300
|
|
Subject: [PATCH] PKCSCCA: Fix symbol name to get the correct address
|
|
|
|
The csulincl.h file was changed to substitute the xxx_32 bit API
|
|
declarations with the latest CCA v5. In order to pkcscca work and avoid
|
|
"Illegal Instruction" we had to fix the symbol name that should be called
|
|
based on the csulincl.h change.
|
|
|
|
Signed-off-by: Eduardo Barretto <ebarretto@linux.vnet.ibm.com>
|
|
---
|
|
usr/sbin/pkcscca/pkcscca.c | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/usr/sbin/pkcscca/pkcscca.c b/usr/sbin/pkcscca/pkcscca.c
|
|
index 6d9f8dd..05caea3 100644
|
|
--- a/usr/sbin/pkcscca/pkcscca.c
|
|
+++ b/usr/sbin/pkcscca/pkcscca.c
|
|
@@ -1387,9 +1387,9 @@ int main(int argc, char **argv)
|
|
return -1;
|
|
}
|
|
|
|
- CSNDKTC = dlsym(lib_csulcca, "CSNDKTC_32");
|
|
- CSNBKTC = dlsym(lib_csulcca, "CSNBKTC_32");
|
|
- CSNBKTC2 = dlsym(lib_csulcca, "CSNBKTC2_32");
|
|
+ CSNDKTC = dlsym(lib_csulcca, "CSNDKTC");
|
|
+ CSNBKTC = dlsym(lib_csulcca, "CSNBKTC");
|
|
+ CSNBKTC2 = dlsym(lib_csulcca, "CSNBKTC2");
|
|
ret = migrate_wrapped_keys(slot_id, userpin, masterkey);
|
|
}
|
|
done:
|
|
--
|
|
1.9.1
|
|
|