From: Richard Basch Date: Tue, 5 Dec 1995 03:34:22 +0000 (+0000) Subject: The BSD application suite only understands using 1-DES as a session key type X-Git-Tag: krb5-1.0-beta6~744 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ef63f5369eb7dcc1f606575ebc7b27c2f7eb6f60;p=krb5.git The BSD application suite only understands using 1-DES as a session key type git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7163 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/kcmd.c b/src/appl/bsd/kcmd.c index 9d0ebceba..ef6b9190e 100644 --- a/src/appl/bsd/kcmd.c +++ b/src/appl/bsd/kcmd.c @@ -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;