From 4402e3466e443d766f9301581eb6b83f83d4d6e7 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 29 Jun 1997 08:38:42 +0000 Subject: [PATCH] Adapt to krb5_principal adaption to PrincipalName git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1932 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/auth_context.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/krb5/auth_context.c b/lib/krb5/auth_context.c index 545b78db1..5dfc6c13f 100644 --- a/lib/krb5/auth_context.c +++ b/lib/krb5/auth_context.c @@ -228,10 +228,11 @@ krb5_auth_getauthenticator(krb5_context context, *authenticator = malloc(sizeof(**authenticator)); if (*authenticator == NULL) return ENOMEM; - (*authenticator)->vno = auth_context->authenticator->vno; - krb5_copy_principal (context, - auth_context->authenticator->cname, - &(*authenticator)->cname); + + copy_PrincipalName(&auth_context->authenticator->cname, + &(*authenticator)->cname); + copy_Realm(&auth_context->authenticator->crealm, + &(*authenticator)->crealm); (*authenticator)->cusec = auth_context->authenticator->cusec; (*authenticator)->ctime = auth_context->authenticator->ctime; (*authenticator)->seq_number = auth_context->authenticator->seq_number; /* XXX */ @@ -243,7 +244,8 @@ void krb5_free_authenticator(krb5_context context, krb5_authenticator *authenticator) { - krb5_free_principal (context, (*authenticator)->cname); + free_PrincipalName (&(*authenticator)->cname); + free_Realm (&(*authenticator)->crealm); free (*authenticator); *authenticator = NULL; }