/*
- * Copyright (C) 2001, 2002, 2004, 2007 by the Massachusetts Institute of Technology.
+ * Copyright (C) 2001, 2002, 2004, 2007, 2008 by the Massachusetts Institute of Technology.
* All rights reserved.
*
*
return 0;
}
- for (bp = &buf, left = sizeof (buf); left > 0;) {
+ for (bp = buf, left = sizeof (buf); left > 0;) {
ssize_t count;
count = read (fd, bp, (unsigned) left);
if (count <= 0) {
/*
- * Copyright 2007 by the Massachusetts Institute of Technology.
+ * Copyright 2007, 2008 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
/* Currently the enumeration template doesn't handle freeing
element storage when destroying the collection. */
-static int free_one(size_t i, struct mecherror value, void *p)
+static int free_one(OM_uint32 i, struct mecherror value, void *p)
{
if (value.mech.length && value.mech.elements)
free(value.mech.elements);
/*
* lib/gssapi/krb5/ser_sctx.c
*
- * Copyright 1995, 2004 by the Massachusetts Institute of Technology.
+ * Copyright 1995, 2004, 2008 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
return kret;
}
- if ((kret = kg_oid_internalize(kcontext, &ctx->mech_used, &bp,
- &remain))) {
- if (kret == EINVAL)
- kret = 0;
+ {
+ krb5_pointer tmp;
+ kret = kg_oid_internalize(kcontext, &tmp, &bp,
+ &remain);
+ if (kret == 0)
+ ctx->mech_used = tmp;
+ else if (kret == EINVAL)
+ kret = 0;
}
/* Now get substructure data */
if ((kret = krb5_internalize_opaque(kcontext,
CopyTicket(dest, src, numBytes, version, includeVersion)
char *dest;
KTEXT src;
- unsigned long *numBytes;
+ unsigned KRB4_32 *numBytes;
char *version;
int includeVersion;
{
- unsigned long tkt_len;
- unsigned long nbytes = 0;
+ unsigned KRB4_32 tkt_len;
+ unsigned KRB4_32 nbytes = 0;
/* first put version info into the buffer */
if (includeVersion) {
return (FALSE);
}
set_cloexec_fd(sock);
- if (getsockname(sock, &laddr, &llen) < 0)
+ if (getsockname(sock, (struct sockaddr *) &laddr, &llen) < 0)
return (FALSE);
/*