Subject: Re: "Make build" failure in usr.sbin/bind
To: None <port-vax@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: port-vax
Date: 12/08/1999 23:56:32
In article <19991208060041.A36763@greycat.com>,
Dann Lunsford <dann@greycat.com> wrote:
>
>That's what I thought, also; take a closer look.  The routines that are missing
>are MD5_*, the libc routines are MD5*.  That "_" indicates the routines in 
>bind/lib/dst, not the ones in libc.  They are supposed to be included if you set
>CRYPTFLAGS=-DHMAC (see the README in the dst directory), but apparently, 
>they aren't.  I must be missing something that's hugely obvious to everyone else.
>Just wish I could figure out what!  

It is MD5 without an _ in my sources (only _ is in MD5_{CTX,LEN}):

% grep MD5_ */*.c
dst/bsafe_link.c:       &AM_MD5_RANDOM,
dst/hmac_link.c:# ifndef _MD5_H_
dst/hmac_link.c:#  define _MD5_H_ 1     /* make sure we do not include rsaref md5.h file */
dst/hmac_link.c:#define MD5_LEN         16
dst/hmac_link.c:        MD5_CTX *ctx = NULL;
dst/hmac_link.c:                ctx = (MD5_CTX *) malloc(sizeof(*ctx));
dst/hmac_link.c:                ctx = (MD5_CTX *) *context;
dst/hmac_link.c:                if (signature == NULL || sig_len < MD5_LEN)
dst/hmac_link.c:                MD5Update(ctx, signature, MD5_LEN);
dst/hmac_link.c:                sign_len = MD5_LEN;
dst/hmac_link.c:        MD5_CTX *ctx = NULL;
dst/hmac_link.c:                ctx = (MD5_CTX *) malloc(sizeof(*ctx));
dst/hmac_link.c:                ctx = (MD5_CTX *) *context;
dst/hmac_link.c:                u_char digest[MD5_LEN];
dst/hmac_link.c:                if (signature == NULL || key == NULL || sig_len != MD5_LEN)
dst/hmac_link.c:                MD5Update(ctx, digest, MD5_LEN);
dst/hmac_link.c:                if (memcmp(digest, signature, MD5_LEN) != 0)
dst/hmac_link.c:        MD5_CTX ctx;
dst/hmac_link.c:                u_char tk[MD5_LEN];
dst/hmac_link.c:                local_keylen = MD5_LEN;