* system errors (read)
*/
static krb5_error_code
-krb5_fcc_read(context, id, buf, len)
- krb5_context context;
- krb5_ccache id;
- krb5_pointer buf;
- unsigned int len;
+krb5_fcc_read(krb5_context context, krb5_ccache id, krb5_pointer buf, unsigned int len)
{
int ret;
: (errno = ENOMEM,(TYPE *) 0))
static krb5_error_code
-krb5_fcc_read_principal(context, id, princ)
- krb5_context context;
- krb5_ccache id;
- krb5_principal *princ;
+krb5_fcc_read_principal(krb5_context context, krb5_ccache id, krb5_principal *princ)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code kret;
}
static krb5_error_code
-krb5_fcc_read_addrs(context, id, addrs)
- krb5_context context;
- krb5_ccache id;
- krb5_address ***addrs;
+krb5_fcc_read_addrs(krb5_context context, krb5_ccache id, krb5_address ***addrs)
{
krb5_error_code kret;
krb5_int32 length;
}
static krb5_error_code
-krb5_fcc_read_keyblock(context, id, keyblock)
- krb5_context context;
- krb5_ccache id;
- krb5_keyblock *keyblock;
+krb5_fcc_read_keyblock(krb5_context context, krb5_ccache id, krb5_keyblock *keyblock)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code kret;
}
static krb5_error_code
-krb5_fcc_read_data(context, id, data)
- krb5_context context;
- krb5_ccache id;
- krb5_data *data;
+krb5_fcc_read_data(krb5_context context, krb5_ccache id, krb5_data *data)
{
krb5_error_code kret;
krb5_int32 len;
}
static krb5_error_code
-krb5_fcc_read_addr(context, id, addr)
- krb5_context context;
- krb5_ccache id;
- krb5_address *addr;
+krb5_fcc_read_addr(krb5_context context, krb5_ccache id, krb5_address *addr)
{
krb5_error_code kret;
krb5_ui_2 ui2;
}
static krb5_error_code
-krb5_fcc_read_int32(context, id, i)
- krb5_context context;
- krb5_ccache id;
- krb5_int32 *i;
+krb5_fcc_read_int32(krb5_context context, krb5_ccache id, krb5_int32 *i)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code retval;
}
static krb5_error_code
-krb5_fcc_read_ui_2(context, id, i)
- krb5_context context;
- krb5_ccache id;
- krb5_ui_2 *i;
+krb5_fcc_read_ui_2(krb5_context context, krb5_ccache id, krb5_ui_2 *i)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code retval;
}
static krb5_error_code
-krb5_fcc_read_octet(context, id, i)
- krb5_context context;
- krb5_ccache id;
- krb5_octet *i;
+krb5_fcc_read_octet(krb5_context context, krb5_ccache id, krb5_octet *i)
{
return krb5_fcc_read(context, id, (krb5_pointer) i, 1);
}
static krb5_error_code
-krb5_fcc_read_times(context, id, t)
- krb5_context context;
- krb5_ccache id;
- krb5_ticket_times *t;
+krb5_fcc_read_times(krb5_context context, krb5_ccache id, krb5_ticket_times *t)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code retval;
}
static krb5_error_code
-krb5_fcc_read_authdata(context, id, a)
- krb5_context context;
- krb5_ccache id;
- krb5_authdata ***a;
+krb5_fcc_read_authdata(krb5_context context, krb5_ccache id, krb5_authdata ***a)
{
krb5_error_code kret;
krb5_int32 length;
}
static krb5_error_code
-krb5_fcc_read_authdatum(context, id, a)
- krb5_context context;
- krb5_ccache id;
- krb5_authdata *a;
+krb5_fcc_read_authdatum(krb5_context context, krb5_ccache id, krb5_authdata *a)
{
krb5_error_code kret;
krb5_int32 int32;
* system errors
*/
static krb5_error_code
-krb5_fcc_write(context, id, buf, len)
- krb5_context context;
- krb5_ccache id;
- krb5_pointer buf;
- unsigned int len;
+krb5_fcc_write(krb5_context context, krb5_ccache id, krb5_pointer buf, unsigned int len)
{
int ret;
#ifndef USE_STDIO
*/
static krb5_error_code
-krb5_fcc_store_principal(context, id, princ)
- krb5_context context;
- krb5_ccache id;
- krb5_principal princ;
+krb5_fcc_store_principal(krb5_context context, krb5_ccache id, krb5_principal princ)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code ret;
}
static krb5_error_code
-krb5_fcc_store_addrs(context, id, addrs)
- krb5_context context;
- krb5_ccache id;
- krb5_address ** addrs;
+krb5_fcc_store_addrs(krb5_context context, krb5_ccache id, krb5_address **addrs)
{
krb5_error_code ret;
krb5_address **temp;
}
static krb5_error_code
-krb5_fcc_store_keyblock(context, id, keyblock)
- krb5_context context;
- krb5_ccache id;
- krb5_keyblock *keyblock;
+krb5_fcc_store_keyblock(krb5_context context, krb5_ccache id, krb5_keyblock *keyblock)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code ret;
}
static krb5_error_code
-krb5_fcc_store_addr(context, id, addr)
- krb5_context context;
- krb5_ccache id;
- krb5_address *addr;
+krb5_fcc_store_addr(krb5_context context, krb5_ccache id, krb5_address *addr)
{
krb5_error_code ret;
static krb5_error_code
-krb5_fcc_store_data(context, id, data)
- krb5_context context;
- krb5_ccache id;
- krb5_data *data;
+krb5_fcc_store_data(krb5_context context, krb5_ccache id, krb5_data *data)
{
krb5_error_code ret;
}
static krb5_error_code
-krb5_fcc_store_int32(context, id, i)
- krb5_context context;
- krb5_ccache id;
- krb5_int32 i;
+krb5_fcc_store_int32(krb5_context context, krb5_ccache id, krb5_int32 i)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
unsigned char buf[4];
}
static krb5_error_code
-krb5_fcc_store_ui_4(context, id, i)
- krb5_context context;
- krb5_ccache id;
- krb5_ui_4 i;
+krb5_fcc_store_ui_4(krb5_context context, krb5_ccache id, krb5_ui_4 i)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
unsigned char buf[4];
}
static krb5_error_code
-krb5_fcc_store_ui_2(context, id, i)
- krb5_context context;
- krb5_ccache id;
- krb5_int32 i;
+krb5_fcc_store_ui_2(krb5_context context, krb5_ccache id, krb5_int32 i)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_ui_2 ibuf;
}
static krb5_error_code
-krb5_fcc_store_octet(context, id, i)
- krb5_context context;
- krb5_ccache id;
- krb5_int32 i;
+krb5_fcc_store_octet(krb5_context context, krb5_ccache id, krb5_int32 i)
{
krb5_octet ibuf;
}
static krb5_error_code
-krb5_fcc_store_times(context, id, t)
- krb5_context context;
- krb5_ccache id;
- krb5_ticket_times *t;
+krb5_fcc_store_times(krb5_context context, krb5_ccache id, krb5_ticket_times *t)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code retval;
}
static krb5_error_code
-krb5_fcc_store_authdata(context, id, a)
- krb5_context context;
- krb5_ccache id;
- krb5_authdata **a;
+krb5_fcc_store_authdata(krb5_context context, krb5_ccache id, krb5_authdata **a)
{
krb5_error_code ret;
krb5_authdata **temp;
}
static krb5_error_code
-krb5_fcc_store_authdatum (context, id, a)
- krb5_context context;
- krb5_ccache id;
- krb5_authdata *a;
+krb5_fcc_store_authdatum (krb5_context context, krb5_ccache id, krb5_authdata *a)
{
krb5_error_code ret;
ret = krb5_fcc_store_ui_2(context, id, a->ad_type);
#endif
static krb5_error_code
-krb5_fcc_close_file (context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_fcc_close_file (krb5_context context, krb5_ccache id)
{
int ret;
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
#endif
static krb5_error_code
-krb5_fcc_open_file (context, id, mode)
- krb5_context context;
- krb5_ccache id;
- int mode;
+krb5_fcc_open_file (krb5_context context, krb5_ccache id, int mode)
{
krb5_os_context os_ctx = (krb5_os_context)context->os_context;
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
}
static krb5_error_code
-krb5_fcc_skip_header(context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_fcc_skip_header(krb5_context context, krb5_ccache id)
{
krb5_fcc_data *data = (krb5_fcc_data *)id->data;
krb5_error_code kret;
}
static krb5_error_code
-krb5_fcc_skip_principal(context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_fcc_skip_principal(krb5_context context, krb5_ccache id)
{
krb5_error_code kret;
krb5_principal princ;
* permission errors
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_initialize(context, id, princ)
- krb5_context context;
- krb5_ccache id;
- krb5_principal princ;
+krb5_fcc_initialize(krb5_context context, krb5_ccache id, krb5_principal princ)
{
krb5_error_code kret = 0;
#ifndef USE_STDIO
* associated with the cache.
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_close(context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_fcc_close(krb5_context context, krb5_ccache id)
{
register int closeval = KRB5_OK;
register krb5_fcc_data *data = (krb5_fcc_data *) id->data;
* system errors
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_destroy(context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_fcc_destroy(krb5_context context, krb5_ccache id)
{
#ifndef USE_STDIO
struct stat buf;
* permission errors
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_resolve (context, id, residual)
- krb5_context context;
- krb5_ccache *id;
- const char *residual;
+krb5_fcc_resolve (krb5_context context, krb5_ccache *id, const char *residual)
{
krb5_ccache lid;
* system errors
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_start_seq_get(context, id, cursor)
- krb5_context context;
- krb5_ccache id;
- krb5_cc_cursor *cursor;
+krb5_fcc_start_seq_get(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor)
{
krb5_fcc_cursor *fcursor;
krb5_error_code kret = KRB5_OK;
* system errors
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_next_cred(context, id, cursor, creds)
- krb5_context context;
- krb5_ccache id;
- krb5_cc_cursor *cursor;
- krb5_creds *creds;
+krb5_fcc_next_cred(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor, krb5_creds *creds)
{
#define TCHECK(ret) if (ret != KRB5_OK) goto lose;
#ifdef USE_STDIO
*/
/* ARGSUSED */
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_end_seq_get(context, id, cursor)
- krb5_context context;
- krb5_ccache id;
- krb5_cc_cursor *cursor;
+krb5_fcc_end_seq_get(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor)
{
/* don't close; it may be left open by the caller,
and if not, fcc_start_seq_get and/or fcc_next_cred will do the
* system errors (from open)
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_generate_new (context, id)
- krb5_context context;
- krb5_ccache *id;
+krb5_fcc_generate_new (krb5_context context, krb5_ccache *id)
{
krb5_ccache lid;
#ifndef USE_STDIO
* The name of the file cred cache id.
*/
static const char * KRB5_CALLCONV
-krb5_fcc_get_name (context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_fcc_get_name (krb5_context context, krb5_ccache id)
{
return (char *) ((krb5_fcc_data *) id->data)->filename;
}
* KRB5_CC_NOMEM
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_get_principal(context, id, princ)
- krb5_context context;
- krb5_ccache id;
- krb5_principal *princ;
+krb5_fcc_get_principal(krb5_context context, krb5_ccache id, krb5_principal *princ)
{
krb5_error_code kret = KRB5_OK;
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_retrieve(context, id, whichfields, mcreds, creds)
- krb5_context context;
- krb5_ccache id;
- krb5_flags whichfields;
- krb5_creds *mcreds;
- krb5_creds *creds;
+krb5_fcc_retrieve(krb5_context context, krb5_ccache id, krb5_flags whichfields, krb5_creds *mcreds, krb5_creds *creds)
{
return krb5_cc_retrieve_cred_default (context, id, whichfields,
mcreds, creds);
* storage failure errors
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_store(context, id, creds)
- krb5_context context;
- krb5_ccache id;
- krb5_creds *creds;
+krb5_fcc_store(krb5_context context, krb5_ccache id, krb5_creds *creds)
{
#define TCHECK(ret) if (ret != KRB5_OK) goto lose;
krb5_error_code ret;
* Sets the operational flags of id to flags.
*/
static krb5_error_code KRB5_CALLCONV
-krb5_fcc_set_flags(context, id, flags)
- krb5_context context;
- krb5_ccache id;
- krb5_flags flags;
+krb5_fcc_set_flags(krb5_context context, krb5_ccache id, krb5_flags flags)
{
krb5_error_code ret = KRB5_OK;
static krb5_error_code
-krb5_fcc_interpret(context, errnum)
- krb5_context context;
- int errnum;
+krb5_fcc_interpret(krb5_context context, int errnum)
{
register krb5_error_code retval;
switch (errnum) {
#else /* _WIN32 */
krb5_error_code
-krb5_change_cache ()
+krb5_change_cache (void)
{
return 0;
}
unsigned int
-krb5_get_notification_message ()
+krb5_get_notification_message (void)
{
return 0;
}
(krb5_context, krb5_ccache id , krb5_flags flags );
extern krb5_cc_ops krb5_mcc_ops;
-krb5_error_code krb5_change_cache ();
+krb5_error_code krb5_change_cache (void);
#define KRB5_OK 0
void krb5_mcc_free (krb5_context context, krb5_ccache id);
krb5_error_code KRB5_CALLCONV
-krb5_mcc_initialize(context, id, princ)
- krb5_context context;
- krb5_ccache id;
- krb5_principal princ;
+krb5_mcc_initialize(krb5_context context, krb5_ccache id, krb5_principal princ)
{
krb5_error_code ret;
* associated with the cache.
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_close(context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_mcc_close(krb5_context context, krb5_ccache id)
{
krb5_xfree(id);
}
void
-krb5_mcc_free(context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_mcc_free(krb5_context context, krb5_ccache id)
{
krb5_mcc_cursor curr,next;
* none
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_destroy(context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_mcc_destroy(krb5_context context, krb5_ccache id)
{
krb5_mcc_data *curr;
* permission errors
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_resolve (context, id, residual)
- krb5_context context;
- krb5_ccache *id;
- const char *residual;
+krb5_mcc_resolve (krb5_context context, krb5_ccache *id, const char *residual)
{
krb5_ccache lid;
krb5_mcc_data *ptr;
* system errors
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_start_seq_get(context, id, cursor)
- krb5_context context;
- krb5_ccache id;
- krb5_cc_cursor *cursor;
+krb5_mcc_start_seq_get(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor)
{
krb5_mcc_cursor mcursor;
* system errors
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_next_cred(context, id, cursor, creds)
- krb5_context context;
- krb5_ccache id;
- krb5_cc_cursor *cursor;
- krb5_creds *creds;
+krb5_mcc_next_cred(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor, krb5_creds *creds)
{
krb5_mcc_cursor mcursor;
krb5_error_code retval;
*/
/* ARGSUSED */
krb5_error_code KRB5_CALLCONV
-krb5_mcc_end_seq_get(context, id, cursor)
- krb5_context context;
- krb5_ccache id;
- krb5_cc_cursor *cursor;
+krb5_mcc_end_seq_get(krb5_context context, krb5_ccache id, krb5_cc_cursor *cursor)
{
*cursor = 0L;
return KRB5_OK;
* system errors (from open)
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_generate_new (context, id)
- krb5_context context;
- krb5_ccache *id;
+krb5_mcc_generate_new (krb5_context context, krb5_ccache *id)
{
krb5_ccache lid;
char scratch[6+1]; /* 6 for the scratch part, +1 for NUL */
* The name of the file cred cache id.
*/
const char * KRB5_CALLCONV
-krb5_mcc_get_name (context, id)
- krb5_context context;
- krb5_ccache id;
+krb5_mcc_get_name (krb5_context context, krb5_ccache id)
{
return (char *) ((krb5_mcc_data *) id->data)->name;
}
* KRB5_CC_NOMEM
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_get_principal(context, id, princ)
- krb5_context context;
- krb5_ccache id;
- krb5_principal *princ;
+krb5_mcc_get_principal(krb5_context context, krb5_ccache id, krb5_principal *princ)
{
krb5_mcc_data *ptr = (krb5_mcc_data *)id->data;
if (!ptr->prin)
}
krb5_error_code KRB5_CALLCONV
-krb5_mcc_retrieve(context, id, whichfields, mcreds, creds)
- krb5_context context;
- krb5_ccache id;
- krb5_flags whichfields;
- krb5_creds *mcreds;
- krb5_creds *creds;
+krb5_mcc_retrieve(krb5_context context, krb5_ccache id, krb5_flags whichfields, krb5_creds *mcreds, krb5_creds *creds)
{
return krb5_cc_retrieve_cred_default (context, id, whichfields,
mcreds, creds);
* storage failure errors
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_store(context, id, creds)
- krb5_context context;
- krb5_ccache id;
- krb5_creds *creds;
+krb5_mcc_store(krb5_context context, krb5_ccache id, krb5_creds *creds)
{
krb5_error_code ret;
krb5_mcc_cursor mcursor;
* Sets the operational flags of id to flags.
*/
krb5_error_code KRB5_CALLCONV
-krb5_mcc_set_flags(context, id, flags)
- krb5_context context;
- krb5_ccache id;
- krb5_flags flags;
+krb5_mcc_set_flags(krb5_context context, krb5_ccache id, krb5_flags flags)
{
return KRB5_OK;
}
#define times_match_exact(t1,t2) (memcmp((char *)(t1), (char *)(t2), sizeof(*(t1))) == 0)
static krb5_boolean
-times_match(t1, t2)
- const krb5_ticket_times *t1;
- const krb5_ticket_times *t2;
+times_match(const krb5_ticket_times *t1, const krb5_ticket_times *t2)
{
if (t1->renew_till) {
if (t1->renew_till > t2->renew_till)
}
static krb5_boolean
-standard_fields_match(context, mcreds, creds)
-krb5_context context;
-const krb5_creds *mcreds;
-const krb5_creds *creds;
+standard_fields_match(krb5_context context, const krb5_creds *mcreds, const krb5_creds *creds)
{
return (krb5_principal_compare(context, mcreds->client,creds->client)
&& krb5_principal_compare(context, mcreds->server,creds->server));
/* only match the server name portion, not the server realm portion */
static krb5_boolean
-srvname_match(context, mcreds, creds)
- krb5_context context;
- const krb5_creds *mcreds, *creds;
+srvname_match(krb5_context context, const krb5_creds *mcreds, const krb5_creds *creds)
{
krb5_boolean retval;
krb5_principal_data p1, p2;
}
static krb5_boolean
-authdata_match(mdata, data)
- krb5_authdata * const *mdata, * const *data;
+authdata_match(krb5_authdata *const *mdata, krb5_authdata *const *data)
{
const krb5_authdata *mdatap, *datap;
}
static krb5_boolean
-data_match(data1, data2)
- const krb5_data *data1, *data2;
+data_match(const krb5_data *data1, const krb5_data *data2)
{
if (!data1) {
if (!data2)
*/
static krb5_error_code
-krb5_cc_retrieve_cred_seq (context, id, whichfields,
- mcreds, creds, nktypes, ktypes)
- krb5_context context;
- krb5_ccache id;
- krb5_flags whichfields;
- krb5_creds *mcreds;
- krb5_creds *creds;
- int nktypes;
- krb5_enctype *ktypes;
+krb5_cc_retrieve_cred_seq (krb5_context context, krb5_ccache id, krb5_flags whichfields, krb5_creds *mcreds, krb5_creds *creds, int nktypes, krb5_enctype *ktypes)
{
/* This function could be considerably faster if it kept indexing */
/* information.. sounds like a "next version" idea to me. :-) */
}
krb5_error_code KRB5_CALLCONV
-krb5_cc_retrieve_cred_default (context, id, flags, mcreds, creds)
- krb5_context context;
- krb5_ccache id;
- krb5_flags flags;
- krb5_creds *mcreds;
- krb5_creds *creds;
+krb5_cc_retrieve_cred_default (krb5_context context, krb5_ccache id, krb5_flags flags, krb5_creds *mcreds, krb5_creds *creds)
{
krb5_enctype *ktypes;
int nktypes;