1/* 2 * Copyright (c) 1997 - 2002 Kungliga Tekniska H�gskolan 3 * (Royal Institute of Technology, Stockholm, Sweden). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 34#include "kf_locl.h" |
35RCSID("$Id: kfd.c,v 1.11 2003/04/16 15:40:24 lha Exp $"); |
36 37krb5_context context; 38char krb5_tkfile[MAXPATHLEN]; 39 40static int help_flag; 41static int version_flag; 42static char *port_str; 43char *service = KF_SERVICE; --- 211 unchanged lines hidden (view full) --- 255 256 } 257 strlcpy(krb5_tkfile,ccname,sizeof(krb5_tkfile)); 258 krb5_warnx(context, "%s forwarded ticket to %s,%s", 259 name, 260 (char *)(remotename.data),ccname); 261 out: 262 if (status) { |
263 strlcpy(ret_string, "no", sizeof(ret_string)); |
264 krb5_warnx(context, "failed"); 265 } else { |
266 strlcpy(ret_string, "ok", sizeof(ret_string)); |
267 } 268 269 krb5_data_free (&tk_file); 270 krb5_data_free (&remotename); 271 krb5_data_free (&data); 272 free(name); 273 274 data.data = ret_string; --- 33 unchanged lines hidden --- |