Adapt to krb5_principal adaption to PrincipalName

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1932 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-06-29 08:38:42 +00:00
parent 38646af787
commit 4402e3466e

View File

@@ -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;
}