asn1-types

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1898 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-06-10 15:18:19 +00:00
parent 44826fcb13
commit c103d934bf

View File

@@ -9,7 +9,11 @@ hdb_principal2key(krb5_context context, krb5_principal p, krb5_data *key)
krb5_principal new;
krb5_copy_principal(context, p, &new);
#ifdef USE_ASN1_PRINCIPAL
new->name.name_type = 0;
#else
new->type = 0;
#endif
sp = krb5_storage_emem();
krb5_store_principal(sp, new);
krb5_storage_to_data(sp, key);