From 4e2ff88a470fe71036917670aebb5643b3d8b55b Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 16 Jul 1997 01:12:07 +0000 Subject: [PATCH] Change default encryption type to `DES_CBC_MD5' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2333 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/auth_context.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/krb5/auth_context.c b/lib/krb5/auth_context.c index 7b8d0388e..098600787 100644 --- a/lib/krb5/auth_context.c +++ b/lib/krb5/auth_context.c @@ -16,8 +16,14 @@ krb5_auth_con_init(krb5_context context, if (!p->authenticator) return ENOMEM; p->flags = KRB5_AUTH_CONTEXT_DO_TIME; + + /* + * These choices use checksum and encryption methods from the + * spec. Hopefully they are supported by all implementations. + */ + p->cksumtype = CKSUMTYPE_RSA_MD5_DES; - p->enctype = ETYPE_DES_CBC_CRC; + p->enctype = ETYPE_DES_CBC_MD5; p->local_address = NULL; p->remote_address = NULL; *auth_context = p;