/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
*
* This file of the Kerberos V5 software is derived from public-domain code
* contributed by Daniel J. Bernstein, <brnstnd@acf10.nyu.edu>.
*
*/
/*
* An implementation for the default replay cache type.
*/
#include "rc_base.h"
/*
Local stuff:
krb5_auth_to_replay(context, krb5_tkt_authent *auth,krb5_donot_replay *rep)
given auth, take important information and make rep; return -1 if failed
*/
{
return retval; /* shouldn't happen */
return retval; /* shouldn't happen. */
}
return 0;
}
/*
* Generate a printable hash value for a message for use in a replay
* record. It is not necessary for this hash function to be
* collision-proof (the only thing you can do with a second preimage
* is produce a false replay error) but it is necessary for the
* function to be consistent across implementations. We do an unkeyed
* MD5 hash of the message and convert it into uppercase hex
* representation.
*/
char **out)
{
unsigned int i;
/* Calculate the binary checksum. */
if (retval)
return retval;
/* Convert the checksum into printable form. */
if (!hash) {
return KRB5_RC_MALLOC;
}
*ptr = '\0';
return 0;
}