*** empty log message ***
authorJohn Kohl <jtkohl@mit.edu>
Thu, 1 Feb 1990 15:05:10 +0000 (15:05 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 1 Feb 1990 15:05:10 +0000 (15:05 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@222 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/mk_error.c [new file with mode: 0644]

diff --git a/src/lib/krb5/krb/mk_error.c b/src/lib/krb5/krb/mk_error.c
new file mode 100644 (file)
index 0000000..d5b1a24
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * $Source$
+ * $Author$
+ *
+ * Copyright 1990 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <krb5/mit-copyright.h>.
+ *
+ * krb5_mk_error() routine.
+ */
+
+#if !defined(lint) && !defined(SABER)
+static char rcsid_mk_error_c [] =
+"$Id$";
+#endif /* !lint & !SABER */
+
+#include <krb5/copyright.h>
+
+#include <krb5/krb5.h>
+#include <krb5/asn1.h>
+
+/*
+ formats the error structure *dec_err into an error buffer *enc_err.
+
+ The error buffer storage is allocated, and should be freed by the
+ caller when finished.
+
+ returns system errors
+ */
+krb5_error_code
+krb5_mk_error(dec_err, enc_err)
+krb5_error *dec_err;
+krb5_data **enc_err;
+{
+    return (encode_krb5_error(dec_err, enc_err));
+}