The BSD application suite only understands using 1-DES as a session key type
authorRichard Basch <probe@mit.edu>
Tue, 5 Dec 1995 03:34:22 +0000 (03:34 +0000)
committerRichard Basch <probe@mit.edu>
Tue, 5 Dec 1995 03:34:22 +0000 (03:34 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7163 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/kcmd.c

index 9d0ebceba1243a2be003fcf9b355ee3bdbbd97b9..ef6b9190e286806ed2405e727ab863d8ba369f50 100644 (file)
@@ -64,6 +64,7 @@ char *default_service = "host";
 extern krb5_cksumtype krb5_kdc_req_sumtype;
 extern krb5_context bsd_context;
 
+krb5_enctype bsd_ktypes[] = { ENCTYPE_DES_CBC_CRC , 0 };
 
 
 kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm,
@@ -267,6 +268,9 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm,
     if (status = krb5_cc_default(bsd_context, &cc))
        goto bad2;
 
+    if (krb5_set_default_tgs_ktypes(bsd_context, bsd_ktypes))
+       goto bad2;
+    
     if (status = krb5_cc_get_principal(bsd_context, cc, &get_cred->client)) {
        (void) krb5_cc_close(bsd_context, cc);
        goto bad2;