summaryrefslogtreecommitdiff
path: root/usr.bin/tcfs/tcfserrors.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tcfs/tcfserrors.h')
-rw-r--r--usr.bin/tcfs/tcfserrors.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/usr.bin/tcfs/tcfserrors.h b/usr.bin/tcfs/tcfserrors.h
new file mode 100644
index 00000000000..71118933006
--- /dev/null
+++ b/usr.bin/tcfs/tcfserrors.h
@@ -0,0 +1,62 @@
+/*
+ * Transparent Cryptographic File System (TCFS) for NetBSD
+ * Author and mantainer: Luigi Catuogno [luicat@tcfs.unisa.it]
+ *
+ * references: http://tcfs.dia.unisa.it
+ * tcfs-bsd@tcfs.unisa.it
+ */
+
+/*
+ * Base utility set v0.1
+ *
+ * $Source: /cvs/OpenBSD/src/usr.bin/tcfs/Attic/tcfserrors.h,v $
+ * $State: Exp $
+ * $Revision: 1.1 $
+ * $Author: provos $
+ * $Date: 2000/06/18 22:07:24 $
+ *
+ */
+
+/* RCS_HEADER_ENDS_HERE */
+
+
+
+
+#ifndef _ERRORS_H
+#define _ERRORS_H
+
+enum
+{
+ OK=0, /* Ok, no error */
+ ER_CUSTOM, /* Custom error message */
+ ER_UNKOPT, /* Unknown command line option */
+ ER_AUTH, /* User authentication error */
+ ER_MEM, /* Out of memory error */
+ ER_TCFS, /* User is not allowed to use TCFS */
+ ER_USER, /* User error */
+ ER_PERM, /* Error calling TCFS_IOC_PERMANENT ioctl */
+ ER_ENABLE, /* Error calling TCFS_IOC_LOGIN ioctl */
+ ER_DISABLE, /* Error calling TCFS_IOC_DISABLE ioctl */
+ ER_COUNT /* Error calling TCFS_IOC_COUNT ioctl */
+};
+
+static char *tcfs_errors_strings[]=
+{
+ "Ok",
+ NULL,
+ "unknow option.",
+ "authentication error.",
+ "out of memory.",
+ "you do not have a TCFS key.",
+ "Who are you?!",
+ "ioctl error while setting permanent flag.",
+ "ioctl error while sending.",
+ "ioctl error while removing key.",
+ "ioctl error while getting key counter."
+};
+
+void tcfs_error (int error_type, char *arg);
+
+#endif
+
+/* End of errors.h */