From bc9eb764c28f903646a6895e1f873d7e522a0a32 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 7 Jul 1997 09:45:03 +0000 Subject: [PATCH] enctype in auth_context fix krb5_auth_getauthenticator, krb5_free_authenticator to use asn1-functions git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2011 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/auth_context.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/krb5/auth_context.c b/lib/krb5/auth_context.c index 5dfc6c13f..f079b362c 100644 --- a/lib/krb5/auth_context.c +++ b/lib/krb5/auth_context.c @@ -17,6 +17,7 @@ krb5_auth_con_init(krb5_context context, return ENOMEM; p->flags = KRB5_AUTH_CONTEXT_DO_TIME; p->cksumtype = CKSUMTYPE_RSA_MD4_DES; + p->enctype = ETYPE_DES_CBC_CRC; *auth_context = p; return 0; } @@ -229,6 +230,10 @@ krb5_auth_getauthenticator(krb5_context context, if (*authenticator == NULL) return ENOMEM; + copy_Authenticator(auth_context->authenticator, + *authenticator); + +#if 0 copy_PrincipalName(&auth_context->authenticator->cname, &(*authenticator)->cname); copy_Realm(&auth_context->authenticator->crealm, @@ -236,6 +241,7 @@ krb5_auth_getauthenticator(krb5_context context, (*authenticator)->cusec = auth_context->authenticator->cusec; (*authenticator)->ctime = auth_context->authenticator->ctime; (*authenticator)->seq_number = auth_context->authenticator->seq_number; /* XXX */ +#endif return 0; } @@ -244,8 +250,7 @@ void krb5_free_authenticator(krb5_context context, krb5_authenticator *authenticator) { - free_PrincipalName (&(*authenticator)->cname); - free_Realm (&(*authenticator)->crealm); + free_Authenticator (*authenticator); free (*authenticator); *authenticator = NULL; } @@ -255,6 +260,7 @@ krb5_error_code krb5_auth_initvector(krb5_context context, krb5_auth_context auth_context) { + abort (); } @@ -263,6 +269,7 @@ krb5_set_initvector(krb5_context context, krb5_auth_context auth_context, krb5_pointer ivector) { + abort (); } @@ -271,4 +278,5 @@ krb5_set_rcache(krb5_context context, krb5_auth_context auth_context, krb5_rcache rcache) { + abort (); }