diff options
author | John Kohl <jtkohl@mit.edu> | 1990-02-01 15:05:10 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1990-02-01 15:05:10 +0000 |
commit | 995f694f1eb76068fc658a20003a4293fcf64038 (patch) | |
tree | 09f2fe3e6071e9cb412e8b86df68349ac10b51a2 | |
parent | f4d4826e4c932dcb1f11ed96d759b4e0b0b58a42 (diff) | |
download | krb5-995f694f1eb76068fc658a20003a4293fcf64038.zip krb5-995f694f1eb76068fc658a20003a4293fcf64038.tar.gz krb5-995f694f1eb76068fc658a20003a4293fcf64038.tar.bz2 |
*** empty log message ***
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@222 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/lib/krb5/krb/mk_error.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/mk_error.c b/src/lib/krb5/krb/mk_error.c new file mode 100644 index 0000000..d5b1a24 --- /dev/null +++ b/src/lib/krb5/krb/mk_error.c @@ -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)); +} |