summaryrefslogtreecommitdiff
path: root/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h
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-common-host_defs.h
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-common-host_defs.h')
-rw-r--r--security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h b/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h
index d111bf5e002f..ff265b810d7e 100644
--- a/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h
+++ b/security/opencryptoki/files/patch-usr-lib-pkcs11-common-host_defs.h
@@ -1,6 +1,6 @@
---- usr/lib/pkcs11/common/host_defs.h.orig 2010-07-29 21:28:41.000000000 +0900
-+++ usr/lib/pkcs11/common/host_defs.h 2010-10-20 00:10:01.398983092 +0900
-@@ -294,13 +294,24 @@
+--- usr/lib/pkcs11/common/host_defs.h.orig 2016-04-29 17:26:45 UTC
++++ usr/lib/pkcs11/common/host_defs.h
+@@ -294,12 +294,23 @@
/* (C) COPYRIGHT International Business Machines Corp. 2001,2002 */
@@ -9,19 +9,18 @@
#ifndef _HOST_DEFS_H
#define _HOST_DEFS_H
- #include <semaphore.h>
#include <pthread.h>
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
+#include <sys/endian.h>
-+#ifdef _BYTE_ORDER
-+#define __BYTE_ORDER _BYTE_ORDER
++#ifdef _BYTE_ORDER
++#define __BYTE_ORDER _BYTE_ORDER
+#endif
-+#ifdef _LITTLE_ENDIAN
-+#define __LITTLE_ENDIAN _LITTLE_ENDIAN
++#ifdef _LITTLE_ENDIAN
++#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#endif
+#else
#include <endian.h>
+#endif
#include "pkcs32.h"
- // Both of the strings below have a length of 32 chars and must be
+