Added krb5_keytype arg to krb5_kt_read_service_key()
authorChris Provenzano <proven@mit.edu>
Sat, 28 Jan 1995 20:07:26 +0000 (20:07 +0000)
committerChris Provenzano <proven@mit.edu>
Sat, 28 Jan 1995 20:07:26 +0000 (20:07 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4866 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/keytab/ChangeLog
src/lib/krb5/keytab/read_servi.c

index 0cc1852f750429d8c07b947d369707e05c2ffce0..ab3d872c24896083ecb50bfd9a9f458da2fc37b7 100644 (file)
@@ -1,6 +1,10 @@
 Fri Jan 13 15:23:47 1995  Chris Provenzano (proven@mit.edu)
 
-    * Added krb5_context to all krb5_routines
+       * read_servi.c (krb5_kt_read_service_key) Add krb5_keytype arg.
+
+Fri Jan 13 15:23:47 1995  Chris Provenzano (proven@mit.edu)
+
+       * Added krb5_context to all krb5_routines
 
 Fri Oct 14 23:09:02 1994  Theodore Y. Ts'o  (tytso@dcl)
 
index ff4890b127cbf0f8725adc82fc0bcacc3f405792..5ed735b168728d0d3661e84a6ea4967c8b04991c 100644 (file)
 
 #define KSUCCESS 0
 
+/*
+ * effects: If keyprocarg is not NULL, it is taken to be the name of a 
+ *     keytab.  Otherwise, the default keytab will be used.  This 
+ *     routine opens the keytab and finds the principal associated with
+ *     principal, vno, and keytype and returns the resulting key in *key 
+ *     or returning an error code if it is not found. 
+ * returns: Either KSUCCESS or error code.
+ * errors: error code if not found or keyprocarg is invalid.
+ */
 krb5_error_code 
-krb5_kt_read_service_key(context, keyprocarg, principal, vno, key)
+krb5_kt_read_service_key(context, keyprocarg, principal, vno, keytype, key)
     krb5_context context;
     krb5_pointer keyprocarg;
     krb5_principal principal;
     krb5_kvno vno;
+    krb5_keytype keytype;
     krb5_keyblock ** key;
-/*
-       effects: If keyprocarg is not NULL, it is taken to be 
-               the name of a keytab.  Otherwise, the default
-               keytab will be used.  This routine opens the
-               keytab and finds the principal associated with
-               principal and vno, returning the resulting key
-               in *key or returning an error code if it is not
-               found. 
-       returns: nothing
-       errors: error code if not found
-*/
 {
     krb5_error_code kerror = KSUCCESS;
     char keytabname[MAX_KEYTAB_NAME_LEN + 1]; /* + 1 for NULL termination */
@@ -74,7 +73,7 @@ krb5_kt_read_service_key(context, keyprocarg, principal, vno, key)
     if (kerror = krb5_kt_resolve(context, (char *)keytabname, &id))
        return (kerror);
 
-    kerror = krb5_kt_get_entry(context, id, principal, vno, &entry);
+    kerror = krb5_kt_get_entry(context, id, principal, vno, keytype, &entry);
     krb5_kt_close(context, id);
 
     if (kerror)