/* -*- 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>.
*
*/
/*
* Base "glue" functions for the replay cache.
*/
#include "rc_base.h"
#include "rc-int.h"
#include "k5-thread.h"
/* Solaris Kerberos */
#include "rc_mem.h"
#include "rc_common.h"
struct krb5_rc_typelist {
};
/* Solaris Kerberos */
int
krb5int_rc_finish_init(void)
{
/* Solaris Kerberos */
int retval;
if (retval)
return (retval);
return k5_mutex_finish_init(&rc_typelist_lock);
}
void
krb5int_rc_terminate(void)
{
/* Solaris Kerberos */
int i;
free(q);
}
if (tgr->h)
}
free(t);
}
}
{
struct krb5_rc_typelist *t;
if (err)
return err;
;
if (t) {
return KRB5_RC_TYPE_EXISTS;
}
if (t == NULL) {
return KRB5_RC_MALLOC;
}
typehead = t;
return 0;
}
{
struct krb5_rc_typelist *t;
/* Find the named type in the list. */
if (err)
return err;
;
if (!t)
return KRB5_RC_TYPE_NOTFOUND;
/* Create and return the rcache structure. */
if (!id)
return KRB5_RC_MALLOC;
if (err) {
return err;
}
return 0;
}
{
}
char *
{
/*
* Solaris Kerberos
* MIT's is "dfl" but we now have FILE and MEMORY instead.
* And we only support the KRB5RCNAME env var.
*/
return ("FILE");
}
char *
{
char *s;
if ((s = getenv("KRB5RCNAME")))
return s;
else
return (char *) 0;
}
{
if (retval)
return retval;
if (retval) {
return retval;
}
return retval;
}
char *string_name)
{
char *type;
char *residual;
unsigned int diff;
return KRB5_RC_PARSE;
return KRB5_RC_MALLOC;
if (retval)
return retval;
return retval;
}
return retval;
}