[rs-commit] r31 - /redwax-tool/trunk/redwax_p11kit.c
rs-commit at redwax.eu
rs-commit at redwax.eu
Tue Nov 16 23:44:49 CET 2021
Author: minfrin at redwax.eu
Date: Tue Nov 16 23:44:49 2021
New Revision: 31
Log:
Add missing defines for PKCS11.
Modified:
redwax-tool/trunk/redwax_p11kit.c
Modified: redwax-tool/trunk/redwax_p11kit.c
==============================================================================
--- redwax-tool/trunk/redwax_p11kit.c (original)
+++ redwax-tool/trunk/redwax_p11kit.c Tue Nov 16 23:44:49 2021
@@ -46,6 +46,10 @@
#include <p11-kit/p11-kit.h>
#include <p11-kit/uri.h>
#include <p11-kit/pkcs11.h>
+
+#ifndef CKA_PUBLIC_KEY_INFO
+#define CKA_PUBLIC_KEY_INFO 0x00000129UL
+#endif
#define MODULE_EXT ".so"
@@ -103,8 +107,13 @@
case 0x0000001AUL: /* 0x0000001AUL */
return "CKR_COPY_PROHIBITED";
#endif
+#ifdef CKR_ACTION_PROHIBITED
case CKR_ACTION_PROHIBITED: /* 0x0000001BUL */
return "CKR_ACTION_PROHIBITED";
+#else
+ case 0x0000001BUL: /* 0x0000001BUL */
+ return "CKR_ACTION_PROHIBITED";
+#endif
case CKR_DATA_INVALID: /* 0x00000020UL */
return "CKR_DATA_INVALID";
case CKR_DATA_LEN_RANGE: /* 0x00000021UL */
@@ -229,8 +238,13 @@
return "CKR_RANDOM_NO_RNG";
case CKR_DOMAIN_PARAMS_INVALID: /* 0x00000130UL */
return "CKR_DOMAIN_PARAMS_INVALID";
+#ifdef CKR_CURVE_NOT_SUPPORTED
case CKR_CURVE_NOT_SUPPORTED: /* 0x00000140UL */
return "CKR_CURVE_NOT_SUPPORTED";
+#else
+ case 0x00000140UL: /* 0x00000140UL */
+ return "CKR_CURVE_NOT_SUPPORTED";
+#endif
case CKR_BUFFER_TOO_SMALL: /* 0x00000150UL */
return "CKR_BUFFER_TOO_SMALL";
case CKR_SAVED_STATE_INVALID: /* 0x00000160UL */
More information about the rs-commit
mailing list