]> andersk Git - moira.git/commitdiff
Initial revision
authormar <mar>
Wed, 24 Jun 1992 17:08:42 +0000 (17:08 +0000)
committermar <mar>
Wed, 24 Jun 1992 17:08:42 +0000 (17:08 +0000)
lib/gdss_convert.c [new file with mode: 0644]
lib/gdss_et.et [new file with mode: 0644]

diff --git a/lib/gdss_convert.c b/lib/gdss_convert.c
new file mode 100644 (file)
index 0000000..118d0f3
--- /dev/null
@@ -0,0 +1,14 @@
+/* $Header$
+ *
+ * Convert from GDSS error codes to com_err error codes
+ */
+
+#include <gdss_et.h>
+
+gdss2et(code)
+int code;
+{
+    if (code == 0)
+      return(code);
+    return(ERROR_TABLE_BASE_gdss - code - 1);
+}
diff --git a/lib/gdss_et.et b/lib/gdss_et.et
new file mode 100644 (file)
index 0000000..ce01862
--- /dev/null
@@ -0,0 +1,36 @@
+# $Header$
+# GDSS doesn't use com_err internally, have to convert codes with gdss2et()
+
+       error_table gdss
+
+ec     GDSS_ET_BADSIG,
+       "Signature failed to verify"
+
+ec     GDSS_ET_NOPUBKEY,
+       "Couldn't find public key file"
+
+ec     GDSS_ET_KRBFAIL,
+       "Generic Kerberos error during sign"
+
+ec     GDSS_ET_NOSOCKET,
+       "socket() call failed during sign"
+
+ec     GDSS_ET_NOCONNECT,
+       "connect() call failed during sign"
+
+ec     GDSS_ET_TIMEDOUT,
+       "timed out contacting gdss sign server"
+
+ec     GDSS_ET_PADTOOMANY,
+       "Padding required to much space"
+
+ec     GDSS_ET_ALLOC,
+       "malloc() failed to allocate memory"
+
+ec     GDSS_ET_BVERSION,
+       "Bad version ID in signature"
+
+ec     GDSS_ET_BADINPUT,
+       "Bad input value to Recompose"
+
+       end
This page took 0.071275 seconds and 5 git commands to generate.