2/* 3 * lib/krb5/rcache/rc_conv.c 4 * 5 * This file of the Kerberos V5 software is derived from public-domain code 6 * contributed by Daniel J. Bernstein, <brnstnd@acf10.nyu.edu>. 7 * 8 */ 9 10 11/* 12 * An implementation for the default replay cache type. 13 */ 14
| 1/* 2 * lib/krb5/rcache/rc_conv.c 3 * 4 * This file of the Kerberos V5 software is derived from public-domain code 5 * contributed by Daniel J. Bernstein, <brnstnd@acf10.nyu.edu>. 6 * 7 */ 8 9 10/* 11 * An implementation for the default replay cache type. 12 */ 13
|
15 16#include "rc_base.h" 17 18/* 19Local stuff: 20 krb5_auth_to_replay(context, krb5_tkt_authent *auth,krb5_donot_replay *rep) 21 given auth, take important information and make rep; return -1 if failed 22*/ 23 24krb5_error_code 25krb5_auth_to_rep(krb5_context context, krb5_tkt_authent *auth, krb5_donot_replay *rep) 26{ 27 krb5_error_code retval; 28 rep->cusec = auth->authenticator->cusec; 29 rep->ctime = auth->authenticator->ctime; 30 if ((retval = krb5_unparse_name(context, auth->ticket->server, &rep->server))) 31 return retval; /* shouldn't happen */ 32 if ((retval = krb5_unparse_name(context, auth->authenticator->client, 33 &rep->client))) {
| 16 17#include "rc_base.h" 18 19/* 20Local stuff: 21 krb5_auth_to_replay(context, krb5_tkt_authent *auth,krb5_donot_replay *rep) 22 given auth, take important information and make rep; return -1 if failed 23*/ 24 25krb5_error_code 26krb5_auth_to_rep(krb5_context context, krb5_tkt_authent *auth, krb5_donot_replay *rep) 27{ 28 krb5_error_code retval; 29 rep->cusec = auth->authenticator->cusec; 30 rep->ctime = auth->authenticator->ctime; 31 if ((retval = krb5_unparse_name(context, auth->ticket->server, &rep->server))) 32 return retval; /* shouldn't happen */ 33 if ((retval = krb5_unparse_name(context, auth->authenticator->client, 34 &rep->client))) {
|