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

@@ -15,13 +15,7 @@ krb5_get_krbhst (krb5_context context,
krb5_boolean done;
char **tmp;
#ifdef USE_ASN1_PRINCIPAL
r = *realm;
#else
r = malloc (realm->length + 1);
strncpy (r, realm->data, realm->length);
r[realm->length] = '\0';
#endif
count = 0;
max = 10;
@@ -62,9 +56,6 @@ krb5_get_krbhst (krb5_context context,
}
++count;
}
#ifndef USE_ASN1_PRINCIPAL
free (r);
#endif
/* There should always be room for the NULL here */
res[count++] = NULL;