+Thu Apr 27 17:57:36 1995 Keith Vetter (keithv@fusion.com)
+
+ * krb5.h: krb5_mk_req somehow got INTERFACE added to it--removed it.
Tue Apr 25 21:58:23 1995 Chris Provenzano (proven@mit.edu)
krb5_address * const *,
krb5_creds *,
krb5_creds **));
-krb5_error_code INTERFACE krb5_mk_req
+krb5_error_code krb5_mk_req
PROTOTYPE((krb5_context,
krb5_auth_context **,
const krb5_flags,
+Thu Apr 27 17:39:04 1995 Keith Vetter (keithv@fusion.com)
+
+ * k5-config.h: Added MAXPATHLEN constant.
+ * adm_prot.h: updated prototype.
+
Thu Apr 27 11:24:24 1995 Keith Vetter (keithv@fusion.com)
* k5-config.h: Changed over to the new single config file on the PC.
/* adm_proto.c */
void INTERFACE krb5_free_adm_data
PROTOTYPE((krb5_context,
- int,
+ krb5_int32,
krb5_data *));
krb5_error_code INTERFACE krb5_send_adm_cmd
#define SIZEOF_SHORT 2
#define SIZEOF_LONG 4
#define MAXHOSTNAMELEN 512
+#define MAXPATHLEN 128
#define KRB5_USE_INET
#define MSDOS_FILESYSTEM
+Thu Apr 27 17:40:20 1995 Keith Vetter (keithv@fusion.com)
+
+ * adm_rw.c, mk_cred.c, rd_cred.c:
+ malloc on the PC must be size SIZE_T not int32.
+ * adm_rw.c: krb5_free_adm_data second argument now a krb5_int32.
Thu Apr 27 16:33:17 EDT 1995 Paul Park (pjpark@mit.edu)
/*
* Routines to engage in the administrative (password changing) protocol.
*/
+#define NEED_SOCKETS
#include "k5-int.h"
#include "auth_con.h"
#include "adm_proto.h"
void INTERFACE
krb5_free_adm_data(kcontext, ncomp, datap)
krb5_context kcontext;
- int ncomp;
+ krb5_int32 ncomp;
krb5_data *datap;
{
int i;
/* Get the memory for the list */
if (*arglist = (krb5_data *)
- malloc((*nargs) * sizeof(krb5_data))) {
+ malloc((size_t) (*nargs) * sizeof(krb5_data))) {
krb5_data *xarglist;
xarglist = *arglist;
- memset((char *) (xarglist), 0,
- (*nargs) * sizeof(krb5_data));
+ memset((char *) (xarglist), 0,
+ (size_t) (*nargs) * sizeof(krb5_data));
replyok = 1;
/* Copy out each list entry */
/* Get the memory for the list */
if (*complist = (krb5_data *)
- malloc((*ncomps) * sizeof(krb5_data))) {
+ malloc((size_t) ((*ncomps) * sizeof(krb5_data)))) {
krb5_data *xcomplist;
xcomplist = *complist;
memset((char *) (xcomplist), 0,
- (*ncomps) * sizeof(krb5_data));
+ (size_t) ((*ncomps) * sizeof(krb5_data)));
replyok = 1;
/* Copy out each list entry */
*
* MODIFIED
* $Log$
+ * Revision 5.9 1995/04/28 01:18:18 keithv
+ * Fixes so that the Unix changes no longer breaks on the PC.
+ *
* Revision 5.8 1995/04/26 03:03:11 proven
* * Makefile.in : Added gc_via_tkt.c and removed get_fcreds.c
* * auth_con.c (krb5_auth_con_setaddrs()) : Fixed so it allocates
/* Get memory for creds and initialize it */
if ((credenc.ticket_info = (krb5_cred_info **)
- malloc(sizeof(krb5_cred_info *) * (nppcreds + 1))) == NULL) {
+ malloc((size_t) (sizeof(krb5_cred_info *) * (nppcreds + 1)))) == NULL) {
return ENOMEM;
}
- if ((tmp = (char *)malloc(sizeof(krb5_cred_info) * nppcreds)) == NULL) {
+ if ((tmp = (char *)malloc((size_t) (sizeof(krb5_cred_info) * nppcreds))) == NULL) {
retval = ENOMEM;
goto cleanup_info;
}
- memset(tmp, 0, sizeof(krb5_cred_info) * nppcreds);
+ memset(tmp, 0, (size_t) (sizeof(krb5_cred_info) * nppcreds));
/*
* For each credential in the list, initialize a cred info
* krb5_free_tgt_creds can be used to free the list.
*/
for (ncreds = 0; pcred->tickets[ncreds]; ncreds++);
+
if ((*pppcreds =
- (krb5_creds **)malloc(sizeof(krb5_creds *) * ncreds + 1)) == NULL) {
+ (krb5_creds **)malloc((size_t)(sizeof(krb5_creds *) * ncreds + 1))) == NULL) {
retval = ENOMEM;
goto cleanup_cred;
}
+Thu Apr 27 17:50:14 1995 Keith Vetter (keithv@fusion.com)
+
+ * adm_conn.c: added constant to pull in needed PC code, and
+ removed two unused variables.
+ * genaddrs.c: needed casts on getsockname and getpeername calls.
+ * mk_faddr.c: the int->byte code needed explicit casts.
+ * os-proto.h: added missing prototype for krb5_make_fulladdr.
+
Wed Apr 26 16:00:52 EDT 1995 Paul Park (pjpark@mit.edu)
* Add adm_conn.c - module to provide a connection to an administrative
* Routines to contact an administrative protocol server.
*/
#define NEED_SOCKETS
+#define NEED_LOWLEVEL_IO
#include "k5-int.h"
#include "adm.h"
#include "adm_proto.h"
struct hostent *remote_host;
struct servent *service;
char **hostlist;
- int host_count;
- int namelen;
int i, count;
krb5_error_code kret;
ssize = sizeof(struct sockaddr);
if ((flags & KRB5_AUTH_CONTEXT_GENERATE_LOCAL_FULL_ADDR) ||
(flags & KRB5_AUTH_CONTEXT_GENERATE_LOCAL_ADDR)) {
- if (retval = getsockname(fd, &saddr, &ssize))
+ if (retval = getsockname(fd, (struct sockaddr *) &saddr, &ssize))
return retval;
if (flags & KRB5_AUTH_CONTEXT_GENERATE_LOCAL_FULL_ADDR) {
if ((flags & KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR) ||
(flags & KRB5_AUTH_CONTEXT_GENERATE_REMOTE_ADDR)) {
- if (retval = getpeername(fd, &saddr, &ssize))
+ if (retval = getpeername(fd, (struct sockaddr *) &saddr, &ssize))
return retval;
if (flags & KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR) {
#include "k5-int.h"
#ifdef KRB5_USE_INET
-
+
#include "os-proto.h"
#ifndef _WINSOCKAPI_
#include <netinet/in.h>
#endif
-krb5_error_code INTERFACE
+krb5_error_code
krb5_make_fulladdr(context, saddr, kaddr)
krb5_context context;
struct sockaddr_in * saddr;
tmp16 = ADDRTYPE_INET;
*marshal++ = 0x00;
*marshal++ = 0x00;
- *marshal++ = tmp16 & 0xff;
- *marshal++ = (tmp16 >> 8) & 0xff;
+ *marshal++ = (krb5_octet) (tmp16 & 0xff);
+ *marshal++ = (krb5_octet) ((tmp16 >> 8) & 0xff);
tmp32 = sizeof(smushaddr);
- *marshal++ = tmp32 & 0xff;
- *marshal++ = (tmp32 >> 8) & 0xff;
- *marshal++ = (tmp32 >> 16) & 0xff;
- *marshal++ = (tmp32 >> 24) & 0xff;
+ *marshal++ = (krb5_octet) (tmp32 & 0xff);
+ *marshal++ = (krb5_octet) ((tmp32 >> 8) & 0xff);
+ *marshal++ = (krb5_octet) ((tmp32 >> 16) & 0xff);
+ *marshal++ = (krb5_octet) ((tmp32 >> 24) & 0xff);
(void) memcpy((char *)marshal, (char *)&smushaddr, sizeof(smushaddr));
marshal += sizeof(smushaddr);
tmp16 = ADDRTYPE_IPPORT;
*marshal++ = 0x00;
*marshal++ = 0x00;
- *marshal++ = tmp16 & 0xff;
- *marshal++ = (tmp16 >> 8) & 0xff;
+ *marshal++ = (krb5_octet) (tmp16 & 0xff);
+ *marshal++ = (krb5_octet) ((tmp16 >> 8) & 0xff);
tmp32 = sizeof(smushport);
- *marshal++ = tmp32 & 0xff;
- *marshal++ = (tmp32 >> 8) & 0xff;
- *marshal++ = (tmp32 >> 16) & 0xff;
- *marshal++ = (tmp32 >> 24) & 0xff;
+ *marshal++ = (krb5_octet) (tmp32 & 0xff);
+ *marshal++ = (krb5_octet) ((tmp32 >> 8) & 0xff);
+ *marshal++ = (krb5_octet) ((tmp32 >> 16) & 0xff);
+ *marshal++ = (krb5_octet) ((tmp32 >> 24) & 0xff);
(void) memcpy((char *)marshal, (char *)&smushport, sizeof(smushport));
marshal += sizeof(smushport);
int, /* unsigned short promotes to signed
int */
krb5_address **));
+
+krb5_error_code krb5_make_fulladdr
+ PROTOTYPE((krb5_context,
+ struct sockaddr_in *,
+ krb5_address *));
+
#endif /* KRB5_USE_INET */
#endif /* KRB5_LIBOS_INT_PROTO__ */