summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/int-proto.h
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-10-21 00:49:05 -0400
committerGreg Hudson <ghudson@mit.edu>2012-12-19 12:45:11 -0500
commit26245eed626245255c980efdfe69ca1f65186338 (patch)
tree101ed996617e3a8e890759b3a8edaeb24ad5afd6 /src/lib/krb5/krb/int-proto.h
parentdbbc38c38150d76ebd6ff0b9d971ff48de3fbe38 (diff)
downloadkrb5-26245eed626245255c980efdfe69ca1f65186338.tar.gz
krb5-26245eed626245255c980efdfe69ca1f65186338.tar.xz
krb5-26245eed626245255c980efdfe69ca1f65186338.zip
Add functions to save and restore error state
Diffstat (limited to 'src/lib/krb5/krb/int-proto.h')
-rw-r--r--src/lib/krb5/krb/int-proto.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/int-proto.h b/src/lib/krb5/krb/int-proto.h
index 6f3de8f345..a452915517 100644
--- a/src/lib/krb5/krb/int-proto.h
+++ b/src/lib/krb5/krb/int-proto.h
@@ -234,4 +234,12 @@ const char *
k5_response_items_get_answer(const k5_response_items *ri,
const char *question);
+/* Save code and its extended message (if any) in out. */
+void
+k5_save_ctx_error(krb5_context ctx, krb5_error_code code, struct errinfo *out);
+
+/* Return the code from in and restore its extended message (if any). */
+krb5_error_code
+k5_restore_ctx_error(krb5_context ctx, struct errinfo *in);
+
#endif /* KRB5_INT_FUNC_PROTO__ */