From f8bcb2008e1092162fb556170252288ca4aa018a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 14 Oct 2008 02:55:05 +0000 Subject: [PATCH] dummy implementation of krb5_copy_context git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23908 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/context.c | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/lib/krb5/context.c b/lib/krb5/context.c index 8044a38ec..1e8aedcf2 100644 --- a/lib/krb5/context.c +++ b/lib/krb5/context.c @@ -285,13 +285,33 @@ out: return ret; } +/** + * Make a copy for the Kerberos 5 context, allocated krb5_contex shoud + * be freed with krb5_free_context(). + * + * @param in the Kerberos context to copy + * @param out the copy of the Kerberos, set to NULL error. + * + * @return Returns 0 to indicate success. Otherwise an kerberos et + * error code is returned, see krb5_get_error_message(). + * + * @ingroup krb5 + */ + +krb5_error_code KRB5_LIB_FUNCTION +krb5_copy_context(krb5_context in, krb5_context **out) +{ + krb5_clear_error_message(in); + return EINVAL; +} + /** * Frees the krb5_context allocated by krb5_init_context(). * * @param context context to be freed. * - * @ingroup krb5 -*/ + * @ingroup krb5 + */ void KRB5_LIB_FUNCTION krb5_free_context(krb5_context context)