From: Theodore Tso Date: Wed, 1 Sep 1993 20:20:14 +0000 (+0000) Subject: Changed krb5_generate_authenticator to accept a princiapl instead of X-Git-Tag: krb5-1.0-beta3~197 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f5bec95f2bd8e46892414917cc18f756115eb380;p=krb5.git Changed krb5_generate_authenticator to accept a princiapl instead of a credentials structure for the second argument. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2641 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/krb5/func-proto.h b/src/include/krb5/func-proto.h index a1f3bc211..4322854bf 100644 --- a/src/include/krb5/func-proto.h +++ b/src/include/krb5/func-proto.h @@ -443,8 +443,7 @@ krb5_error_code krb5_recvauth PROTOTYPE((krb5_pointer, krb5_error_code -krb5_generate_authenticator PROTOTYPE(( krb5_authenticator *, - const krb5_creds *, +krb5_generate_authenticator PROTOTYPE(( krb5_authenticator *, krb5_principal, const krb5_checksum *, krb5_keyblock *, krb5_int32, krb5_authdata ** )); diff --git a/src/lib/krb5/krb/mk_req_ext.c b/src/lib/krb5/krb/mk_req_ext.c index eed4df7d7..3fc5d0a12 100644 --- a/src/lib/krb5/krb/mk_req_ext.c +++ b/src/lib/krb5/krb/mk_req_ext.c @@ -125,7 +125,7 @@ krb5_data *outbuf; } } #define cleanup_key() {if (newkey) krb5_free_keyblock(*newkey);} - if (retval = krb5_generate_authenticator(&authent, creds, checksum, + if (retval = krb5_generate_authenticator(&authent, creds->client, checksum, newkey ? *newkey : 0, sequence, creds->authdata)) { cleanup_key(); @@ -226,15 +226,15 @@ request.authenticator.ciphertext.data = 0;} } static krb5_error_code -krb5_generate_authenticator(authent, creds, cksum, key, seq_number, authorization) +krb5_generate_authenticator(authent, client, cksum, key, seq_number, authorization) krb5_authenticator *authent; -const krb5_creds *creds; +krb5_principal client; const krb5_checksum *cksum; krb5_keyblock *key; krb5_int32 seq_number; krb5_authdata **authorization; { - authent->client = creds->client; + authent->client = client; authent->checksum = (krb5_checksum *)cksum; authent->subkey = key; authent->seq_number = seq_number;