* cnv_tkt_skey.c, getcred.c, k524init.c, krb524d.c, test.c :
authorChris Provenzano <proven@mit.edu>
Wed, 6 Sep 1995 03:28:12 +0000 (03:28 +0000)
committerChris Provenzano <proven@mit.edu>
Wed, 6 Sep 1995 03:28:12 +0000 (03:28 +0000)
Remove krb5_enctype references, and replace with
                krb5_keytype where appropriate.

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

src/krb524/ChangeLog
src/krb524/cnv_tkt_skey.c
src/krb524/getcred.c
src/krb524/k524init.c
src/krb524/krb524d.c
src/krb524/test.c

index 1ba34d7007c0c825fcba5ad604c0c1658d432b64..8b006ff4570be71c44ee5ecf2f154ba8d4092b93 100644 (file)
@@ -1,3 +1,10 @@
+
+Tue Sep 05 22:10:34 1995   Chris Provenzano (proven@mit.edu)
+
+        * cnv_tkt_skey.c, getcred.c, k524init.c, krb524d.c, test.c : 
+               Remove krb5_enctype references, and replace with
+                krb5_keytype where appropriate.
+
 Thu Aug 24 18:40:22 1995  Theodore Y. Ts'o  <tytso@dcl>
 
        * .Sanitize: Update file list
index 2849370d83864d8527adb7878be9ec48d4f48885..0b4bd0deb0248f70635b13edbf8bc8f3fee6adee 100644 (file)
@@ -60,7 +60,7 @@ int krb524_convert_tkt_skey(context, v5tkt, v4tkt, skey)
          return ret;
      }
      
-     if (v5etkt->session->keytype != KEYTYPE_DES ||
+     if (v5etkt->session->keytype != KEYTYPE_DES_CBC_CRC ||
         v5etkt->session->length != sizeof(C_Block)) {
          if (krb524_debug)
               fprintf(stderr, "v5 session keyblock type %d length %d != C_Block size %d\n",
index de591f5043237999beb74df8b8c6ffef801b600d..c5b396242a752efa35ab86f189a23aaa9c93b7a9 100644 (file)
@@ -55,7 +55,7 @@ main(argc, argv)
      v5creds.client = client;
      v5creds.server = server;
      v5creds.times.endtime = 0;
-     v5creds.keyblock.keytype = KEYTYPE_DES;
+     v5creds.keyblock.keytype = KEYTYPE_DES_CBC_MD5;
      if (ret = krb5_get_credentials(context, 0, cc, &v5creds)) {
          com_err("getcred", ret, "getting V5 credentials");
          exit(1);
index a4aa2101c80b0290e2771d49c34cae2b1b5a0671..048f530532c24589632200fca0fba70287ea5e83 100644 (file)
@@ -108,7 +108,7 @@ int main(argc, argv)
      increds.client = client;
      increds.server = server;
      increds.times.endtime = 0;
-     increds.keyblock.keytype = KEYTYPE_DES;
+     increds.keyblock.keytype = KEYTYPE_DES_CBC_MD5;
      if ((code = krb5_get_credentials(context, 0, cc, &increds, &v5creds))) {
          com_err("k524init", code, "getting V5 credentials");
          exit(1);
index 66f74c6d196c49ed9fe30d35c085e17978926b92..0e73f20876bb042ffd013b0298912b4893cf8e41 100644 (file)
@@ -217,10 +217,8 @@ void init_master(context)
          cleanup_and_exit(1, context);
      }
 
-     master_keyblock.keytype = KEYTYPE_DES;
-     krb5_use_cstype(context, &master_encblock,
-                    krb5_keytype_array[master_keyblock.keytype]->
-                       system->proto_enctype);
+     master_keyblock.keytype = KEYTYPE_DES_CBC_MD5;
+     krb5_use_keytype(context, &master_encblock, master_keyblock.keytype);
      if ((ret = krb5_db_fetch_mkey(context, master_princ, &master_encblock,
                                  FALSE, /* non-manual type-in */
                                  FALSE, /* irrelevant, given prev. arg */
@@ -271,9 +269,9 @@ krb5_error_code do_connection(s, context)
      if (debug)
          printf("V5 ticket decoded\n");
      
-     /* XXX KEYTYPE_DES shouldn't be hardcoded here.  Should be
+     /* XXX KEYTYPE_DES_CBC_MD5 shouldn't be hardcoded here.  Should be
         derived from the ticket. */
-     if ((ret = lookup_service_key(context, v5tkt->server, KEYTYPE_DES, 
+     if ((ret = lookup_service_key(context, v5tkt->server, KEYTYPE_DES_CBC_MD5
                                  &service_key)))
          goto error;
      if (debug)
index d16ec2db51ecfe0ec773897b6409912bf30c58f5..3f52fb120064bda3c9b2251fe982b07fbe14135b 100644 (file)
@@ -105,7 +105,6 @@ void krb5_print_ticket(context, ticket_data, key)
      krb5_unparse_name(context, tkt->server, &p);
      printf("Ticket: Server: %s\n", p);
      free(p);
-     printf("Ticket: EType: %d\n", tkt->enc_part.etype);
      printf("Ticket: kvno: %d\n", tkt->enc_part.kvno);
      printf("Ticket: Flags: 0x%08x\n", tkt->enc_part2->flags);
      krb5_print_keyblock("Ticket: Session Keyblock",
@@ -254,7 +253,7 @@ int main(argc, argv)
      increds.client = client;
      increds.server = server;
      increds.times.endtime = 0;
-     increds.keyblock.keytype = KEYTYPE_DES;
+     increds.keyblock.keytype = KEYTYPE_DES_CBC_MD5;
      if ((ret = krb5_get_credentials(context, 0, cc, &increds, &v5creds))) {
          com_err("test", ret, "getting V5 credentials");
          exit(1);
@@ -281,7 +280,7 @@ int main(argc, argv)
          keybuf[i] += c;
      }
      
-     key.keytype = KEYTYPE_DES;
+     key.keytype = KEYTYPE_DES_CBC_MD5;
      key.length = KEYSIZE; /* presumably */
      key.contents = (krb5_octet *) keybuf;