Use `krb5_init_etype'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2335 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-07-16 01:13:14 +00:00
parent e75d34a68e
commit 73c0d5222a

View File

@@ -64,15 +64,11 @@ krb5_get_credentials (krb5_context context,
*/ */
memset(&a, 0, sizeof(a)); memset(&a, 0, sizeof(a));
krb5_init_etype (context,
ret = krb5_get_default_in_tkt_etypes (context, &a.req_body.etype.len,
(krb5_enctype**)&a.req_body.etype.val); &a.req_body.etype.val,
if (ret) NULL);
return ret;
a.req_body.etype.len = 1;
a.req_body.addresses = malloc(sizeof(*a.req_body.addresses)); a.req_body.addresses = malloc(sizeof(*a.req_body.addresses));
ret = krb5_get_all_client_addrs (a.req_body.addresses); ret = krb5_get_all_client_addrs (a.req_body.addresses);
if (ret) if (ret)
return ret; return ret;