components/openssl/openssl-1.0.0/engines/pkcs11/hw_pk11.h
changeset 419 a926b383669b
parent 363 9c0cad004039
--- a/components/openssl/openssl-1.0.0/engines/pkcs11/hw_pk11.h	Mon Jul 18 14:49:57 2011 -0700
+++ b/components/openssl/openssl-1.0.0/engines/pkcs11/hw_pk11.h	Mon Jul 18 15:50:16 2011 -0700
@@ -70,7 +70,11 @@
 
 #include "hw_pk11_err.h"
 
-/* max byte length of a symetric key we support */
+#ifdef	__cplusplus
+extern "C" {
+#endif
+
+/* max byte length of a symmetric key we support */
 #define	PK11_KEY_LEN_MAX			32
 
 /*
@@ -171,7 +175,7 @@
  * different groups may be initialized in different slots.
  *
  * To provide locking granularity in multithreaded environment, the groups are
- * further splitted into types with each type having a separate session cache.
+ * further split into types with each type having a separate session cache.
  */
 typedef enum PK11_OPTYPE_ENUM
 	{
@@ -247,4 +251,7 @@
 
 extern CK_FUNCTION_LIST_PTR pFuncList;
 
+#ifdef	__cplusplus
+}
+#endif
 #endif /* HW_PK11_H */