Remove non ASN.1 principal code.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2354 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -18,15 +18,8 @@ krb5_build_authenticator (krb5_context context,
|
||||
unsigned seq_number;
|
||||
|
||||
auth->authenticator_vno = 5;
|
||||
#ifdef USE_ASN1_PRINCIPAL
|
||||
copy_Realm(&cred->client->realm, &auth->crealm);
|
||||
copy_PrincipalName(&cred->client->name, &auth->cname);
|
||||
#else
|
||||
auth->crealm = malloc(cred->client->realm.length + 1);
|
||||
strncpy(auth->crealm, cred->client->realm.data, cred->client->realm.length);
|
||||
auth->crealm[cred->client->realm.length] = '\0';
|
||||
krb5_principal2principalname(&auth->cname, cred->client);
|
||||
#endif
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
auth->cusec = tv.tv_usec;
|
||||
|
Reference in New Issue
Block a user