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:
Johan Danielsson
1997-07-16 01:37:19 +00:00
parent 7fbd8baf8d
commit 884b9012ab
15 changed files with 0 additions and 328 deletions

View File

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