summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/back-ldbm/attrcrypt.h
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers/slapd/back-ldbm/attrcrypt.h')
-rw-r--r--ldap/servers/slapd/back-ldbm/attrcrypt.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/ldap/servers/slapd/back-ldbm/attrcrypt.h b/ldap/servers/slapd/back-ldbm/attrcrypt.h
new file mode 100644
index 00000000..b6ba50fb
--- /dev/null
+++ b/ldap/servers/slapd/back-ldbm/attrcrypt.h
@@ -0,0 +1,33 @@
+/** BEGIN COPYRIGHT BLOCK
+ * Portions copyright 2004 Netscape Communications Corporation.
+ * All rights reserved.
+ * END COPYRIGHT BLOCK **/
+/* Private tructures and #defines used in the attribute encryption code. */
+
+#ifndef _ATTRCRYPT_H_
+#define _ATTRCRYPT_H_
+
+/* structure which holds our stuff in the attrinfo objects */
+struct attrcrypt_private
+{
+ int attrcrypt_cipher;
+};
+
+typedef struct _attrcrypt_cipher_entry
+{
+ int cipher_number;
+ char *cipher_display_name;
+ CK_MECHANISM_TYPE cipher_mechanism;
+ CK_MECHANISM_TYPE wrap_mechanism;
+ CK_MECHANISM_TYPE key_gen_mechanism;
+ int key_size;
+ int iv_length;
+} attrcrypt_cipher_entry;
+
+extern attrcrypt_cipher_entry attrcrypt_cipher_list[];
+
+/* The ciphers we support (used in attrcrypt_cipher above) */
+#define ATTRCRYPT_CIPHER_AES 1
+#define ATTRCRYPT_CIPHER_DES3 2
+
+#endif /* _ATTRCRYPT_H_ */