* ktf_g_ent.c, ktf_remove.c, ktf_util.c, ktfile.h :
authorChris Provenzano <proven@mit.edu>
Wed, 6 Sep 1995 19:15:36 +0000 (19:15 +0000)
committerChris Provenzano <proven@mit.edu>
Wed, 6 Sep 1995 19:15:36 +0000 (19:15 +0000)
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g

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

src/lib/krb5/keytab/file/ChangeLog
src/lib/krb5/keytab/file/ktf_g_ent.c
src/lib/krb5/keytab/file/ktf_remove.c
src/lib/krb5/keytab/file/ktf_util.c
src/lib/krb5/keytab/file/ktfile.h

index a0a2ae63fe088c27552cf481507cfcec9302a53f..7cdd98683ca64c2c7d51769d64513454f87309ad 100644 (file)
@@ -1,3 +1,8 @@
+Wed Sep 06 14:20:57 1995   Chris Provenzano (proven@mit.edu)
+
+        * ktf_g_ent.c, ktf_remove.c, ktf_util.c, ktfile.h : 
+               s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
+
 Tue Sep 05 22:10:34 1995   Chris Provenzano (proven@mit.edu)
 
         * ktf_util.c : Remove krb5_enctype references, and replace with
index 7f6120bbd7c4086581f6e832c14998fa346fc808..f6c72fe98b96f36ebbdbb0a21dab9943948995d1 100644 (file)
 #include "ktfile.h"
 
 krb5_error_code
-krb5_ktfile_get_entry(context, id, principal, kvno, keytype, entry)
+krb5_ktfile_get_entry(context, id, principal, kvno, enctype, entry)
    krb5_context context;
    krb5_keytab id;
    krb5_principal principal;
    krb5_kvno kvno;
-   krb5_keytype keytype;
+   krb5_enctype enctype;
    krb5_keytab_entry * entry;
 {
     krb5_keytab_entry cur_entry, new_entry;
index a58cc1056226fc2c943f1c067fae1d696849101e..644209f7ad36be26540611bbbdfe1f36854a5208 100644 (file)
@@ -52,7 +52,7 @@ krb5_keytab_entry *entry;
            break;
 
        if ((entry->vno == cur_entry.vno) &&
-            (entry->key.keytype == cur_entry.key.keytype) &&
+            (entry->key.enctype == cur_entry.key.enctype) &&
            krb5_principal_compare(context, entry->principal, cur_entry.principal)) {
            /* found a match */
             krb5_kt_free_entry(context, &cur_entry);
index 6c17a1a28d14bc0d51fa4a0d44051d911d71096f..3713c62d680657cc6ee3775252ac0473330c90d2 100644 (file)
@@ -63,7 +63,7 @@
  * sizeof(krb5_int32) for the principal type (for KEYTAB V2 and higher)
  * sizeof(krb5_int32) bytes for the timestamp
  * sizeof(krb5_octet) bytes for the key version number
- * sizeof(krb5_int16) bytes for the keytype
+ * sizeof(krb5_int16) bytes for the enctype
  * sizeof(krb5_int32) bytes for the key length, followed by the key
  */
 
@@ -252,7 +252,7 @@ krb5_int32 *delete_point;
 {
     krb5_octet vno;
     krb5_int16 count;
-    krb5_int16 keytype;
+    krb5_int16 enctype;
     krb5_int16 princ_size;
     register int i;
     krb5_int32 size;
@@ -396,14 +396,14 @@ krb5_int32 *delete_point;
     ret_entry->vno = (krb5_kvno)vno;
     
     /* key type */
-    if (!xfread(&keytype, sizeof(keytype), 1, KTFILEP(id))) {
+    if (!xfread(&enctype, sizeof(enctype), 1, KTFILEP(id))) {
        error = KRB5_KT_END;
        goto fail;
     }
-    ret_entry->key.keytype = (krb5_keytype)keytype;
+    ret_entry->key.enctype = (krb5_enctype)enctype;
 
     if (KTVERSION(id) != KRB5_KT_VNO_1)
-       ret_entry->key.keytype = ntohs(ret_entry->key.keytype);
+       ret_entry->key.enctype = ntohs(ret_entry->key.enctype);
     
     /* key contents */
     ret_entry->key.magic = KV5M_KEYBLOCK;
@@ -469,7 +469,7 @@ krb5_keytab_entry *entry;
 {
     krb5_octet vno;
     krb5_data *princ;
-    krb5_int16 count, size, keytype;
+    krb5_int16 count, size, enctype;
     krb5_error_code retval = 0;
     krb5_timestamp timestamp;
     krb5_int32 princ_type;
@@ -561,10 +561,10 @@ krb5_keytab_entry *entry;
     }
     /* key type */
     if (KTVERSION(id) == KRB5_KT_VNO_1)
-           keytype = entry->key.keytype;
+           enctype = entry->key.enctype;
     else
-           keytype = htons(entry->key.keytype);
-    if (!xfwrite(&keytype, sizeof(keytype), 1, KTFILEP(id))) {
+           enctype = htons(entry->key.enctype);
+    if (!xfwrite(&enctype, sizeof(enctype), 1, KTFILEP(id))) {
        goto abend;
     }
     /* key length */
index c1c55dc88f7b279eaeec94fe56c9f4456705b45b..846596608794d961186a18aa864d6b00d846a26e 100644 (file)
@@ -86,7 +86,7 @@ krb5_error_code krb5_ktfile_get_entry
                   krb5_keytab,
                   krb5_principal,
                   krb5_kvno,
-                  krb5_keytype,
+                  krb5_enctype,
                   krb5_keytab_entry *));
 
 krb5_error_code krb5_ktfile_start_seq_get