From 05352b990d5caeed4c6afe3140ab946842bd743d Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sat, 24 Jun 2006 03:07:29 +0000 Subject: [PATCH] * k5-int.h (krb5_copy_error_state): New macro git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18210 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-int.h | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.26.2