summaryrefslogtreecommitdiff
path: root/cesar/cp2/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp2/defs.h')
-rw-r--r--cesar/cp2/defs.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/cesar/cp2/defs.h b/cesar/cp2/defs.h
new file mode 100644
index 0000000000..48ed1193fa
--- /dev/null
+++ b/cesar/cp2/defs.h
@@ -0,0 +1,31 @@
+#ifndef cp2_defs_h
+#define cp2_defs_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cp2/defs.h
+ * \brief Definition for the Contol Plane.
+ * \ingroup cp2
+ *
+ */
+
+/** min size of NPW password. */
+#define MIN_NPW_SIZE 8 // bytes
+#define MAX_NPW_SIZE 64 // bytes
+
+/** max size of hfid (human-friendly identifier). */
+#define HFID_SIZE 64 // bytes
+
+/** NMK size. */
+#define NMK_SIZE 16 // 16 bytes
+
+/** Devince password length. */
+#define MIN_DPW_SIZE 16 // bytes
+#define MAX_DPW_SIZE 64 // bytes
+
+#endif /* cp2_defs_h */