Replace contents with keyvalue. Prepare for use of asn1-types.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1890 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -94,6 +94,11 @@ krb5_get_credentials (krb5_context context,
|
||||
*/
|
||||
/* a.kdc_options */
|
||||
|
||||
#ifdef USE_ASN1_PRINCIPAL
|
||||
copy_Realm(&in_creds->server->realm, &a.req_body.realm);
|
||||
a.req_body.sname = malloc(sizeof(*a.req_body.sname));
|
||||
copy_PrincipalName(&in_creds->server->name, a.req_body.sname);
|
||||
#else
|
||||
a.req_body.realm = malloc(in_creds->server->realm.length + 1);
|
||||
strncpy (a.req_body.realm, in_creds->server->realm.data,
|
||||
in_creds->server->realm.length);
|
||||
@@ -101,6 +106,7 @@ krb5_get_credentials (krb5_context context,
|
||||
|
||||
a.req_body.sname = malloc(sizeof(*a.req_body.sname));
|
||||
krb5_principal2principalname(a.req_body.sname, in_creds->server);
|
||||
#endif
|
||||
a.req_body.from = NULL;
|
||||
a.req_body.till = in_creds->times.endtime;
|
||||
a.req_body.rtime = NULL;
|
||||
|
Reference in New Issue
Block a user