(kerberos5_send): always ask for a session key of type DES

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4017 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-11-16 06:27:19 +00:00
parent 40fe0f4135
commit db405ec922

View File

@@ -191,7 +191,16 @@ kerberos5_send(char *name, Authenticator *ap)
else
ap_opts = 0;
auth_context = NULL;
ret = krb5_auth_con_init (context, &auth_context);
if (ret) {
if (auth_debug_mode) {
printf("Kerberos V5: krb5_auth_con_init failed (%s)\r\n",
krb5_get_err_text(context, ret));
}
return(0);
}
krb5_auth_setenctype (context, auth_context, ETYPE_DES_CBC_MD5);
foo[0] = ap->type;
foo[1] = ap->way;