diff options
author | wollman <wollman@FreeBSD.org> | 1994-02-03 22:09:07 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-02-03 22:09:07 +0000 |
commit | 394ee3bae890775188c4812249fc996cb7cc0abe (patch) | |
tree | 6264e1a9edb32ef88fffee8f460175549f1b556f /usr.sbin/xntpd/lib/authdes.c | |
parent | 8e51e9f1429efc498f923bce8b25b20f47d7c075 (diff) | |
download | FreeBSD-src-394ee3bae890775188c4812249fc996cb7cc0abe.zip FreeBSD-src-394ee3bae890775188c4812249fc996cb7cc0abe.tar.gz |
xntpd version 3.3z from UDel
Diffstat (limited to 'usr.sbin/xntpd/lib/authdes.c')
-rw-r--r-- | usr.sbin/xntpd/lib/authdes.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/usr.sbin/xntpd/lib/authdes.c b/usr.sbin/xntpd/lib/authdes.c index 36077fc..9f64c40 100644 --- a/usr.sbin/xntpd/lib/authdes.c +++ b/usr.sbin/xntpd/lib/authdes.c @@ -3,30 +3,6 @@ */ #include "ntp_stdlib.h" -#if !defined(XNTP_BIG_ENDIAN) && !defined(XNTP_LITTLE_ENDIAN) - -#if defined(XNTP_AUTO_ENDIAN) -#include <netinet/in.h> - -#if BYTE_ORDER == BIG_ENDIAN -#define XNTP_BIG_ENDIAN -#endif -#if BYTE_ORDER == LITTLE_ENDIAN -#define XNTP_LITTLE_ENDIAN -#endif - -#else /* AUTO */ - -#ifdef WORDS_BIGENDIAN -#define XNTP_BIG_ENDIAN 1 -#else -#define XNTP_LITTLE_ENDIAN 1 -#endif - -#endif /* AUTO */ - -#endif /* !BIG && !LITTLE */ - /* * There are two entries in here. auth_subkeys() called to * compute the encryption and decryption key schedules, while @@ -34,28 +10,6 @@ */ /* - * Byte order woes. The DES code is sensitive to byte order. This - * used to be resolved by calling ntohl() and htonl() to swap things - * around, but this turned out to be quite costly on Vaxes where those - * things are actual functions. The code now straightens out byte - * order troubles on its own, with no performance penalty for little - * end first machines, but at great expense to cleanliness. - */ -#if !defined(XNTP_BIG_ENDIAN) && !defined(XNTP_LITTLE_ENDIAN) - /* - * Pick one or the other. - */ - BYTE_ORDER_NOT_DEFINED_FOR_AUTHENTICATION -#endif - -#if defined(XNTP_BIG_ENDIAN) && defined(XNTP_LITTLE_ENDIAN) - /* - * Pick one or the other. - */ - BYTE_ORDER_NOT_DEFINED_FOR_AUTHENTICATION -#endif - -/* * Key setup. Here we entirely permute a key, saving the results * for both the encryption and decryption. Note that while the * decryption subkeys are simply the encryption keys reordered, |