#include <rx/xdr.h>
#include <rx/rx.h>
#include <rx/rxkad.h>
+#include <rx/rxkad_convert.h>
#include <lock.h>
#define UBIK_LEGACY_CALLITER 1
#include <ubik.h>
#include <afs/pthread_glock.h>
#include <rx/rxkad.h>
+#include <rx/rxkad_convert.h>
#include <afs/cellconfig.h>
#include <ubik.h>
#include <afs/auth.h>
#include <hcrypto/des.h>
#include <hcrypto/ui.h>
+#include <rx/rxkad_convert.h>
+
#include <afs/pthread_glock.h>
#include <afs/cellconfig.h>
#include <afs/auth.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <rx/rxkad.h>
+#include <rx/rxkad_convert.h>
#include <afs/cellconfig.h>
#include <afs/auth.h>
#include <afs/com_err.h>
#include <afs/afsutil.h>
#include <rx/xdr.h>
#include <rx/rx.h>
+#include <rx/rxkad_convert.h>
#include "kauth.h"
#include "kautils.h"
#include <hcrypto/ui.h>
#include <rx/xdr.h>
+#include <rx/rxkad_convert.h>
#include <lock.h>
#include <ubik.h>
#include <afs/com_err.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <rx/rxkad.h>
+#include <rx/rxkad_convert.h>
#include <afs/auth.h>
#include <ubik.h>
#include <ubik.h>
#include <afs/cmd.h>
#include <rx/rxkad.h>
+#include <rx/rxkad_convert.h>
#include <afs/com_err.h>
#include "kauth.h"
#include <rx/rx.h>
#include <rx/rx_globals.h>
#include <rx/rxkad.h> /* max ticket lifetime */
-
+#include <rx/rxkad_convert.h>
#include "kauth.h"
#include "kautils.h"
INCLS=${TOP_INCDIR}/rx/rx.h ${TOP_INCDIR}/rx/xdr.h \
- ${TOP_INCDIR}/rx/fcrypt.h \
+ ${TOP_INCDIR}/rx/fcrypt.h rxkad_convert.h \
rxkad.h rxkad_prototypes.h fcrypt.h v5gen.h
OBJS=rxkad_client.o rxkad_server.o rxkad_common.o rxkad_errs.o \
depinstall: \
${TOP_INCDIR}/rx/rxkad.h \
${TOP_INCDIR}/rx/rxkad_prototypes.h \
+ ${TOP_INCDIR}/rx/rxkad_convert.h \
${TOP_INCDIR}/rx/fcrypt.h \
${TOP_INCDIR}/rx/rxkad_stats.h
${TOP_INCDIR}/rx/rxkad_stats.h: stats.h
${INSTALL_DATA} $? $@
+${TOP_INCDIR}/rx/rxkad_convert.h: rxkad_convert.h
+ ${INSTALL_DATA} $? $@
+
#
# Build targets
#
$(INCFILEDIR)\rxkad_prototypes.h \
$(INCFILEDIR)\asn1_err.h \
$(INCFILEDIR)\v5gen.h \
- $(INCFILEDIR)\rxkad.h
+ $(INCFILEDIR)\rxkad.h \
+ $(INCFILEDIR)\rxkad_convert.h
# build afsrxkad.lib
LIBOBJS =\
--- /dev/null
+
+/* Conversion functions to go between the various different key types used
+ * by rxkad and supporting libraries
+ */
+
+#ifndef OPENAFS_RXKAD_CONVERT_H
+#define OPENAFS_RXKAD_CONVERT_H 1
+
+#include <hcrypto/des.h>
+
+struct ktc_encryptionKey;
+
+static_inline DES_cblock *
+ktc_to_cblock(struct ktc_encryptionKey *key) {
+ return (DES_cblock *)key;
+}
+
+static_inline char *
+ktc_to_charptr(struct ktc_encryptionKey *key) {
+ return (char *)key;
+}
+
+
+static_inline DES_cblock *
+ktc_to_cblockptr(struct ktc_encryptionKey *key) {
+ return (DES_cblock *)key;
+}
+
+#if 0
+static_inline unsigned char *
+cblockptr_to_cblock(DES_cblock *key) {
+ return (unsigned char *)key;
+}
+#endif
+
+static_inline DES_cblock *
+charptr_to_cblock(char *key) {
+ return (DES_cblock *)key;
+}
+
+static_inline DES_cblock *
+charptr_to_cblockptr(char *key) {
+ return (DES_cblock *)key;
+}
+
+#endif
afs_int32 * host, afs_uint32 * start,
afs_uint32 * end, afs_int32 disableDotCheck);
-static_inline DES_cblock *
-ktc_to_cblock(struct ktc_encryptionKey *key) {
- return (DES_cblock *)key;
-}
-
-static_inline char *
-ktc_to_charptr(struct ktc_encryptionKey *key) {
- return (char *)key;
-}
-
-
-static_inline DES_cblock *
-ktc_to_cblockptr(struct ktc_encryptionKey *key) {
- return (DES_cblock *)key;
-}
-
-#if 0
-static_inline unsigned char *
-cblockptr_to_cblock(DES_cblock *key) {
- return (unsigned char *)key;
-}
-#endif
-
-static_inline DES_cblock *
-charptr_to_cblock(char *key) {
- return (DES_cblock *)key;
-}
-
-static_inline DES_cblock *
-charptr_to_cblockptr(char *key) {
- return (DES_cblock *)key;
-}
-
#endif
#include "lifetimes.h"
#include "rxkad.h"
+#include "rxkad_convert.h"
/* This union is used to insure we allocate enough space for a key
* schedule even if we are linked against a library that uses OpenSSL's
#include "lifetimes.h"
#include "rxkad.h"
+#include "rxkad_convert.h"
#include "v5gen-rewrite.h"
#include "v5gen.h"