+++ /dev/null
-# Copyright 1994 by OpenVision Technologies, Inc.
-#
-# Permission to use, copy, modify, distribute, and sell this software
-# and its documentation for any purpose is hereby granted without fee,
-# provided that the above copyright notice appears in all copies and
-# that both that copyright notice and this permission notice appear in
-# supporting documentation, and that the name of OpenVision not be used
-# in advertising or publicity pertaining to distribution of the software
-# without specific, written prior permission. OpenVision makes no
-# representations about the suitability of this software for any
-# purpose. It is provided "as is" without express or implied warranty.
-#
-# OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
-# EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
-# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-# PERFORMANCE OF THIS SOFTWARE.
-#
-# $Id$
-
-KRB5TOP = /ua/software/build/sun4/krb5.src.B2/src
-
-# Library sources
-SRCS = conv_creds.c conv_princ.c conv_tkt.c cnv_tkt_skey.c \
- encode.c misc.c globals.c sendmsg.c krb524_err.et
-OBJS = conv_creds.o conv_princ.o conv_tkt.o cnv_tkt_skey.o \
- encode.o misc.o globals.o sendmsg.o krb524_err.o
-
-GENS = krb524_err.c krb524_err.h
-
-# Server stuff.
-LDFLAGS= -L. -L/usr/local/lib
-LIBS = -lkrb524 -lkdb5 -lkrb5 -lkrb -lcrypto /usr/local/lib/libdes.a \
- -lisode -lcom_err
-
-CL_LIBS = -lkrb524 -lkrb5 -lcrypto -lisode -lkrb -lcom_err
-
-CC = gcc
-CFLAGS = -g -DUSE_MASTER -I. -I/usr/local/include
-
-all: libkrb524.a krb524d test k524init
-
-libkrb524.a: $(OBJS)
- ar cru libkrb524.a $(OBJS)
- ranlib libkrb524.a
-
-test: libkrb524.a test.o
- $(CC) -o test $(LDFLAGS) test.o $(LIBS)
-
-krb524d: libkrb524.a krb524d.o
- $(CC) -o krb524d krb524d.o $(LDFLAGS) $(LIBS)
-
-k524init: libkrb524.a k524init.o
- $(CC) -o k524init $(LDFLAGS) k524init.o $(CL_LIBS)
-
-krb524d.o: krb524d.c
- $(CC) -c $(CFLAGS) -I$(KRB5TOP)/include $*.c
-
-test.o: test.c
- $(CC) -c $(CFLAGS) -I$(KRB5TOP)/include $*.c
-
-depend: $(GENS)
- makedepend -- $(CFLAGS) -I$(KRB5TOP)/include -- $(SRCS) \
- test.c krb524d.c
-
-clean:
- -rm -f libkrb524.a $(OBJS) $(GENS) core *~ *.bak #*
- -rm -f test krb524d k524init test.o krb524d.o k524init.o
-
-krb524_err.c krb524_err.h: krb524_err.et
- compile_et krb524_err.et
-
-.SUFFIXES: .et
-
-# DO NOT DELETE THIS LINE -- make depend depends on it.
* the wheel is hidden.
*/
-int encode_v4tkt(KTEXT_ST *, char *, int *),
- encode_ktext(char **, int *, KTEXT_ST *),
- encode_bytes(char **, int *, char *, int),
- encode_int32(char **, int *, krb5_int32 *);
-
-int decode_v4tkt(KTEXT_ST *, char *, int *),
- decode_ktext(char **, int *, KTEXT_ST *),
- decode_bytes(char **, int *, char *, int),
- decode_int32(char **, int *, krb5_int32 *);
-
-int encode_bytes(char **out, int *outlen, char *in, int len)
+int encode_v4tkt KRB5_PROTOTYPE((KTEXT_ST *, char *, int *)),
+ encode_ktext KRB5_PROTOTYPE((char **, int *, KTEXT_ST *)),
+ encode_bytes KRB5_PROTOTYPE((char **, int *, char *, int)),
+ encode_int32 KRB5_PROTOTYPE((char **, int *, krb5_int32 *));
+
+int decode_v4tkt KRB5_PROTOTYPE((KTEXT_ST *, char *, int *)),
+ decode_ktext KRB5_PROTOTYPE((char **, int *, KTEXT_ST *)),
+ decode_bytes KRB5_PROTOTYPE((char **, int *, char *, int)),
+ decode_int32 KRB5_PROTOTYPE((char **, int *, krb5_int32 *));
+
+int encode_bytes(out, outlen, in, len)
+ char **out;
+ int *outlen;
+ char *in;
+ int len;
{
if (len > *outlen)
return KRB524_ENCFULL;
return 0;
}
-int encode_int32(char **out, int *outlen, krb5_int32 *v)
+int encode_int32(out, outlen, v)
+ char **out;
+ int *outlen;
+ krb5_int32 *v;
{
int nv;
return encode_bytes(out, outlen, (char *) &nv, sizeof(nv));
}
-int encode_v4tkt(KTEXT_ST *v4tkt, char *buf, int *encoded_len)
+int encode_v4tkt(v4tkt, buf, encoded_len)
+ KTEXT_ST *v4tkt;
+ char *buf;
+ int *encoded_len;
{
int buflen, ret;
/* decode functions */
-int decode_bytes(char **out, int *outlen, char *in, int len)
+int decode_bytes(out, outlen, in, len)
+ char **out;
+ int *outlen;
+ char *in;
+ int len;
{
if (len > *outlen)
return KRB524_DECEMPTY;
return 0;
}
-int decode_int32(char **out, int *outlen, krb5_int32 *v)
+int decode_int32(out, outlen, v)
+ char **out;
+ int *outlen;
+ krb5_int32 *v;
{
int ret;
int nv;
return 0;
}
-int decode_v4tkt(KTEXT_ST *v4tkt, char *buf, int *encoded_len)
+int decode_v4tkt(v4tkt, buf, encoded_len)
+ KTEXT_ST *v4tkt;
+ char *buf;
+ int *encoded_len;
{
int buflen, ret;