summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd/lib/authkeys.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/xntpd/lib/authkeys.c')
-rw-r--r--usr.sbin/xntpd/lib/authkeys.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/usr.sbin/xntpd/lib/authkeys.c b/usr.sbin/xntpd/lib/authkeys.c
index 743af83..8e590ce 100644
--- a/usr.sbin/xntpd/lib/authkeys.c
+++ b/usr.sbin/xntpd/lib/authkeys.c
@@ -1,4 +1,4 @@
-/* authkeys.c,v 3.1 1993/07/06 01:07:51 jbj Exp
+/*
* authkeys.c - routines to manage the storage of authentication keys
*/
#include <stdio.h>
@@ -21,7 +21,7 @@ struct savekey {
char MD5_key[32];
#endif
} k;
- U_LONG keyid;
+ u_long keyid;
u_short flags;
#ifdef MD5
int keylen;
@@ -57,7 +57,6 @@ U_LONG authkeyuncached;
U_LONG authnokey; /* calls to encrypt with no key */
U_LONG authencryptions;
U_LONG authdecryptions;
-U_LONG authdecryptok;
/*
* Storage for free key structures. We malloc() such things but
@@ -90,7 +89,7 @@ u_char DEScache_dkeys[KEY_SCHED_SIZE];
/*
* The key cache. We cache the last key we looked at here.
*/
-U_LONG cache_keyid;
+u_long cache_keyid;
u_short cache_flags;
#ifdef MD5
@@ -114,7 +113,7 @@ init_auth()
authnumfreekeys = authkeynotfound = authkeylookups = 0;
authnumkeys = authuncached = authkeyuncached = authnokey = 0;
- authencryptions = authdecryptions = authdecryptok = 0;
+ authencryptions = authdecryptions = 0;
#ifdef DES
/*
@@ -133,7 +132,7 @@ init_auth()
*/
struct savekey *
auth_findkey(keyno)
- U_LONG keyno;
+ u_long keyno;
{
register struct savekey *sk;
@@ -152,7 +151,7 @@ auth_findkey(keyno)
*/
int
auth_havekey(keyno)
- U_LONG keyno;
+ u_long keyno;
{
register struct savekey *sk;
@@ -182,7 +181,7 @@ auth_havekey(keyno)
*/
int
authhavekey(keyno)
- U_LONG keyno;
+ u_long keyno;
{
register struct savekey *sk;
@@ -249,7 +248,7 @@ auth_moremem()
*/
void
authtrust(keyno, trust)
- U_LONG keyno;
+ u_long keyno;
int trust;
{
register struct savekey *sk;
@@ -316,7 +315,7 @@ authtrust(keyno, trust)
*/
int
authistrusted(keyno)
- U_LONG keyno;
+ u_long keyno;
{
register struct savekey *sk;
@@ -345,7 +344,7 @@ authistrusted(keyno)
*/
void
DESauth_setkey(keyno, key)
- U_LONG keyno;
+ u_long keyno;
const U_LONG *key;
{
register struct savekey *sk;
@@ -393,7 +392,7 @@ DESauth_setkey(keyno, key)
#ifdef MD5
void
MD5auth_setkey(keyno, key)
- U_LONG keyno;
+ u_long keyno;
const U_LONG *key;
{
register struct savekey *sk;
@@ -487,7 +486,7 @@ auth_delkeys()
*/
void
auth1crypt(keyno, pkt, length)
- U_LONG keyno;
+ u_long keyno;
U_LONG *pkt;
int length; /* length of all encrypted data */
{
@@ -520,7 +519,7 @@ auth1crypt(keyno, pkt, length)
*/
int
auth2crypt(keyno, pkt, length)
- U_LONG keyno;
+ u_long keyno;
U_LONG *pkt;
int length; /* total length of encrypted area */
{
@@ -547,7 +546,7 @@ auth2crypt(keyno, pkt, length)
int
authencrypt(keyno, pkt, length)
- U_LONG keyno;
+ u_long keyno;
U_LONG *pkt;
int length; /* length of encrypted portion of packet */
{
@@ -576,7 +575,7 @@ authencrypt(keyno, pkt, length)
int
authdecrypt(keyno, pkt, length)
- U_LONG keyno;
+ u_long keyno;
U_LONG *pkt;
int length; /* length of variable data in octets */
{
OpenPOWER on IntegriCloud