From bce061d9d5b175b2e329f0f0e8e51e6c554ba37c Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Fri, 27 Feb 1998 04:04:01 +0000 Subject: [PATCH] make `krb5_keytab_key_proc' global git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4471 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/get_in_tkt_with_keytab.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/krb5/get_in_tkt_with_keytab.c b/lib/krb5/get_in_tkt_with_keytab.c index 7297e2abc..5c153290b 100644 --- a/lib/krb5/get_in_tkt_with_keytab.c +++ b/lib/krb5/get_in_tkt_with_keytab.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997 Kungliga Tekniska Högskolan + * Copyright (c) 1997, 1998 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -40,19 +40,14 @@ RCSID("$Id$"); -struct args { - krb5_keytab keytab; - krb5_principal principal; -}; - -static krb5_error_code +krb5_error_code krb5_keytab_key_proc (krb5_context context, krb5_keytype type, krb5_data *salt, krb5_const_pointer keyseed, krb5_keyblock **key) { - struct args *args = (struct args *)keyseed; + krb5_keytab_key_proc_args *args = (krb5_keytab_key_proc_args *)keyseed; krb5_keytab keytab = args->keytab; krb5_principal principal = args->principal; krb5_error_code ret; @@ -91,7 +86,7 @@ krb5_get_in_tkt_with_keytab (krb5_context context, krb5_creds *creds, krb5_kdc_rep *ret_as_reply) { - struct args *a; + krb5_keytab_key_proc_args *a; a = malloc(sizeof(*a)); if (a == NULL)