fcc_write.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
* Copyright 1990,1991,1992,1993,1994 by the Massachusetts Institute
* of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtain such a license before exporting.
*
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
* notice appear in all copies and that both that copyright notice and
* this permission notice appear in supporting documentation, and that
* the name of M.I.T. not be used in advertising or publicity pertaining
* to distribution of the software without specific, written prior
* permission. M.I.T. makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
*
*
* This file contains the source code for krb5_fcc_write_<type>.
*/
#include <errno.h>
#include "fcc.h"
/*
* Requires:
* id is open
*
* Effects:
* Writes len bytes from buf into the file cred cache id.
*
* Errors:
* system errors
*/
int len;
{
int ret;
if (ret < 0)
return KRB5_CC_WRITE;
return KRB5_OK;
}
/*
* FOR ALL OF THE FOLLOWING FUNCTIONS:
*
* Requires:
* ((krb5_fcc_data *) id->data)->fd is open and at the right position.
*
* Effects:
* Stores an encoded version of the second argument in the
* cache file.
*
* Errors:
* system errors
*/
{
/*
* DCE-compatible format means that the length count
* includes the realm. (It also doesn't include the
* principal type information.)
*/
tmp++;
} else {
}
for (i=0; i < length; i++) {
}
return KRB5_OK;
}
krb5_address ** addrs;
{
krb5_address **temp;
krb5_int32 i, length = 0;
/* Count the number of components */
if (addrs) {
while (*temp++)
length += 1;
}
for (i=0; i < length; i++) {
}
return KRB5_OK;
}
{
}
}
{
}
{
}
krb5_int32 i;
{
unsigned char buf[4];
else {
i >>= 8;
i >>= 8;
i >>= 8;
buf[0] = (unsigned char) (i & 0xFF);
}
}
krb5_int32 i;
{
unsigned char buf[2];
} else {
i >>= 8;
buf[0] = (unsigned char) (i & 0xFF);
}
}
krb5_int32 i;
{
ibuf = (krb5_octet) i;
}
{
else {
return 0;
}
}
krb5_authdata **a;
{
krb5_int32 i, length=0;
if (a != NULL) {
length++;
}
for (i=0; i<length; i++) {
}
return KRB5_OK;
}
krb5_authdata *a;
{
}