#include <krb5/copyright.h>
+#include "fcc.h"
+
/*
* Modifies:
* id
* permission errors
*/
krb5_error
-krb5_fcc_close(krb5_ccache id)
+krb5_fcc_close(id)
+ krb5_ccache id;
{
int ret;
*/
char *
-krb5_fcc_default_name (void)
+krb5_fcc_default_name ()
{
char *krb5ccache;
int len;
* system errors
*/
krb5_error
-krb5_fcc_destroy(krb5_ccache id)
+krb5_fcc_destroy(id)
+ krb5_ccache id;
{
struct stat buf;
unsigned long size;
* and invalidates the cursor (it must never be used after this call).
*/
krb5_error
-krb5_fcc_end_seq_get(krb5_ccache id, krb5_cc_cursor *cursor)
+krb5_fcc_end_seq_get(id, cursor)
+ krb5_ccache id;
+ krb5_cc_cursor *cursor;
{
#ifdef OPENCLOSE
#else
* krb5_ccache. id is undefined.
*/
krb5_err
-krb5_fcc_generate_new (krb5_ccache id)
+krb5_fcc_generate_new (id)
+ krb5_ccache id;
{
char scratch[100]; /* XXX Is this large enough */
* The name of the file cred cache id.
*/
char *
-krb5_fcc_get_name (krb5_ccache id)
+krb5_fcc_get_name (id)
+ krb5_ccache id;
{
return (char *) id->data->filename;
}
* KRB5_NOMEM
*/
krb5_error
-krb5_fcc_get_principal(krb5_ccache id, krb5_principal *princ)
+krb5_fcc_get_principal(id, princ)
+ krb5_ccache id;
+ krb5_principal *princ;
{
#ifdef OPENCLOSE
id->data->fd = open(id->data->filename, O_RDONLY, 0);
* permission errors
*/
krb5_error
-krb5_fcc_initialize(krb5_ccache id, krb5_principal princ)
+krb5_fcc_initialize(id, princ)
+ krb5_ccache id;
+ krb5_principal princ;
{
int ret;
* system errors
*/
krb5_error
-krb5_fcc_next_cred(krb5_ccache id, krb5_creds *creds, krb5_cc_cursor *cursor)
+krb5_fcc_next_cred(id, creds, cursor)
+ krb5_ccache id;
+ krb5_creds *creds;
+ krb5_cc_cursor *cursor;
{
int ret;
krb5_error kret;
*/
krb5_error
-krb5_fcc_read_principal(krb5_ccache id, krb5_principal princ)
+krb5_fcc_read_principal(id, princ)
+ krb5_ccache id;
+ krb5_principal princ;
{
krb5_error kret;
krb5_int32 length;
}
krb5_error
-krb5_fcc_read_keyblock(krb5_ccache id, krb5_keyblock *keyblock)
+krb5_fcc_read_keyblock(id, keyblock)
+ krb5_ccache id;
+ krb5_keyblock *keyblock;
{
krb5_error kret;
int ret;
}
krb5_error
-krb5_fcc_read_data(krb5_ccache id, krb5_data *data)
+krb5_fcc_read_data(id, data)
+ krb5_ccache id;
+ krb5_data *data;
{
krb5_error kret;
int ret;
}
krb5_error
-krb5_fcc_read_int32(krb5_ccache id, krb5_int32 *i)
+krb5_fcc_read_int32(id, i)
+ krb5_ccache id;
+ krb5_int32 *i;
{
return krb5_fcc_read(id, i, sizeof(krb5_int32));
}
krb5_error
-krb5_fcc_read_keytype(krb5_ccache id, krb5_keytype *k)
+krb5_fcc_read_keytype(id, k)
+ krb5_ccache id;
+ krb5_keytype *k;
{
return krb5_fcc_read(id, k, sizeof(krb5_keytype));
}
krb5_error
-krb5_fcc_read_int(krb5_ccache id, int *i)
+krb5_fcc_read_int(id, i)
+ krb5_ccache id;
+ int *i;
{
return krb5_fcc_read(id, i, sizeof(int));
}
krb5_error
-krb5_fcc_read_bool(krb5_ccache id, krb5_boolean *b)
+krb5_fcc_read_bool(id, b)
+ krb5_ccache id;
+ krb5_boolean *b;
{
return krb5_fcc_read(id, b, sizeof(krb5_boolean));
}
krb5_error
-krb5_fcc_read_times(krb5_ccache id, krb5_ticket_times *t)
+krb5_fcc_read_times(id, t)
+ krb5_ccache id;
+ krb5_ticket_times *t;
{
return krb5_fcc_read(id, t, sizeof(krb5_ticket_times));
}
* permission errors
*/
krb5_error
-krb5_fcc_resolve (krb5_ccache id, char *residual)
+krb5_fcc_resolve (id, residual)
+ krb5_ccache id;
+ char *residual;
{
int ret;
* system errors
*/
krb5_error
-krb5_fcc_start_seq_get(krb5_ccache id, krb5_cc_cursor *cursor)
+krb5_fcc_start_seq_get(id, cursor)
+ krb5_ccache id;
+ krb5_cc_cursor *cursor;
{
krb5_fcc_cursor *fcursor;
* storage failure errors
*/
krb5_error
-krb5_fcc_store(krb5_ccache id, krb5_creds *creds)
+krb5_fcc_store(id, creds)
+ krb5_ccache id;
+ krb5_creds *creds;
{
#define TCHECK(ret) if (ret != KRB5_OK) goto lose;
krb5_error ret;
*/
static krb5_error
-krb5_fcc_store_principal(krb5_ccache id, krb5_principal princ)
+krb5_fcc_store_principal(id, princ)
+ krb5_ccache id;
+ krb5_principal princ;
{
krb5_error ret;
krb5_principal temp;
}
static krb5_error
-krb5_store_keyblock(krb5_ccache id, krb5_keyblock *keyblock)
+krb5_store_keyblock(id, keyblock)
+ krb5_ccache id;
+ krb5_keyblock *keyblock;
{
krb5_error ret;
static krb5_error
-krb5_fcc_store_data(krb5_ccache id, krb5_data *data)
+krb5_fcc_store_data(id, data)
+ krb5_ccache id;
+ krb5_data *data;
{
krb5_error ret;