Changed krb5_generate_authenticator to accept a princiapl instead of
authorTheodore Tso <tytso@mit.edu>
Wed, 1 Sep 1993 20:20:14 +0000 (20:20 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 1 Sep 1993 20:20:14 +0000 (20:20 +0000)
a credentials structure for the second argument.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2641 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/func-proto.h
src/lib/krb5/krb/mk_req_ext.c

index a1f3bc211859ca6e870d2d65146374efbdec65b6..4322854bf39749c3b545af1e4ca2e596e2ea8dba 100644 (file)
@@ -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 ** ));
 
index eed4df7d7c9cc6b5294dc56bada6b2f66b981dba..3fc5d0a12af74903e23fd61ac3db278d9fbc04ca 100644 (file)
@@ -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;