From: Ken Raeburn Date: Sat, 24 Jun 2006 03:07:29 +0000 (+0000) Subject: * k5-int.h (krb5_copy_error_state): New macro X-Git-Tag: krb5-1.6-alpha1~265 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=05352b990d5caeed4c6afe3140ab946842bd743d;p=krb5.git * k5-int.h (krb5_copy_error_state): New macro git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18210 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/k5-int.h b/src/include/k5-int.h index 1bc3ed2d7..a8b9e5d99 100644 --- a/src/include/k5-int.h +++ b/src/include/k5-int.h @@ -1885,4 +1885,7 @@ krb5int_c_mandatory_cksumtype (krb5_context, krb5_enctype, krb5_cksumtype *); extern int krb5int_crypto_init (void); extern int krb5int_prng_init(void); +#define krb5_copy_error_state(CTX, OCTX) \ + krb5int_set_error(&(CTX)->errinfo, (OCTX)->errinfo.code, "%s", (OCTX)->errinfo.msg) + #endif /* _KRB5_INT_H */