Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/routed/rtquery Pull in <md5.h> rather than defining our...



details:   https://anonhg.NetBSD.org/src/rev/1ae04db292aa
branches:  trunk
changeset: 495414:1ae04db292aa
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 27 16:34:31 2000 +0000

description:
Pull in <md5.h> rather than defining our own MD5 structures (!).

diffstat:

 sbin/routed/rtquery/rtquery.c |  17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diffs (42 lines):

diff -r 95f43b7030d7 -r 1ae04db292aa sbin/routed/rtquery/rtquery.c
--- a/sbin/routed/rtquery/rtquery.c     Thu Jul 27 15:53:51 2000 +0000
+++ b/sbin/routed/rtquery/rtquery.c     Thu Jul 27 16:34:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtquery.c,v 1.12 2000/03/02 21:02:25 christos Exp $    */
+/*     $NetBSD: rtquery.c,v 1.13 2000/07/27 16:34:31 thorpej Exp $     */
 
 /*-
  * Copyright (c) 1982, 1986, 1993
@@ -41,7 +41,7 @@
 static char sccsid[] __attribute__((unused))= "@(#)query.c     8.1 (Berkeley) 6/5/93";
 #elif defined(__NetBSD__)
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: rtquery.c,v 1.12 2000/03/02 21:02:25 christos Exp $");
+__RCSID("$NetBSD: rtquery.c,v 1.13 2000/07/27 16:34:31 thorpej Exp $");
 #endif
 
 #include <sys/param.h>
@@ -64,21 +64,12 @@
 #include <bstring.h>
 #endif
 
+#include <md5.h>
+
 #ifndef sgi
 #define _HAVE_SIN_LEN
 #endif
 
-#define MD5_DIGEST_LEN 16
-typedef struct {
-       u_int32_t state[4];             /* state (ABCD) */
-       u_int32_t count[2];             /* # of bits, modulo 2^64 (LSB 1st) */
-       unsigned char buffer[64];       /* input buffer */
-} MD5_CTX;
-extern void MD5Init(MD5_CTX*);
-extern void MD5Update(MD5_CTX*, u_char*, u_int);
-extern void MD5Final(u_char[MD5_DIGEST_LEN], MD5_CTX*);
-
-
 #define        WTIME   15              /* Time to wait for all responses */
 #define        STIME   (250*1000)      /* usec to wait for another response */
 



Home | Main Index | Thread Index | Old Index