summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2016-05-18 17:22:59 +0000
committerHiroki Sato <hrs@FreeBSD.org>2016-05-18 17:22:59 +0000
commit8c8d2c3d81fac5c01075447b436c4fe1cb4c8d22 (patch)
treef93cc66ba1590fe367a4281fcf04cf8541a60583 /security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in
parentUpdate to 1.3.8. (diff)
Update to 3.5. Notable changes are as follows:
- No longer required to run pkcs11_startup. pkcs11_startup and pkcs_slotd were shell scripts that created the config file, pk_config_data, which was read by pkcsslotd to get available slot information. The pk_config_data configuration file has been replaced with /etc/opencryptoki/opencryptoki.conf. In version 3, the pkcsslotd daemon reads opencryptoki.conf to get slot information. The opencryptoki.conf by default contains slot information for each token currently supported by opencryptoki with the exception of the ICSF token, which requires some initial setup. Please see man page for opencryptoki.conf for further information. Since pk_config_data is no longer required, pkcs11_startup and pkcs_slotd have been removed.
Notes
Notes: svn path=/head/; revision=415459
Diffstat (limited to 'security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in')
-rw-r--r--security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in22
1 files changed, 11 insertions, 11 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in b/security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in
index f615f1f34a35..cda7f3706529 100644
--- a/security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in
+++ b/security/opencryptoki/files/patch-usr-lib-pkcs11-api-shrd_mem.c.in
@@ -1,11 +1,11 @@
---- usr/lib/pkcs11/api/shrd_mem.c.in.orig 2010-07-29 21:28:41.000000000 +0900
-+++ usr/lib/pkcs11/api/shrd_mem.c.in 2010-10-19 23:56:22.728981736 +0900
-@@ -353,7 +353,7 @@
-
-
- // SAB check for the group id here and membership here as well
-- grp = getgrnam("pkcs11");
-+ grp = getgrnam(PKCS11GROUP);
- if ( grp ) {
- int i=0;
- char member=0;
+--- usr/lib/pkcs11/api/shrd_mem.c.in.orig 2016-04-29 17:26:45 UTC
++++ usr/lib/pkcs11/api/shrd_mem.c.in
+@@ -357,7 +357,7 @@ attach_shared_memory() {
+ // only check group membership if not root user
+ if (uid != 0 && euid != 0) {
+ int i, member=0;
+- grp = getgrnam("pkcs11");
++ grp = getgrnam(PKCS11GROUP);
+ if (!grp) {
+ // group pkcs11 not known to the system
+ return NULL;