From e9b01fa0619df8aeed1ef3a8b16c6a8b2cc8abf0 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 23 Jun 2006 17:15:18 +0000 Subject: [PATCH] Make these weak as Matthias Drochner pointed out. --- lib/libc/hash/md5/hmac_md5.c | 4 +++- lib/libc/hash/sha1/hmac_sha1.c | 4 +++- lib/libc/include/namespace.h | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/libc/hash/md5/hmac_md5.c b/lib/libc/hash/md5/hmac_md5.c index d7588d76540f..ec2d56de8946 100644 --- a/lib/libc/hash/md5/hmac_md5.c +++ b/lib/libc/hash/md5/hmac_md5.c @@ -1,4 +1,4 @@ -/* $NetBSD: hmac_md5.c,v 1.1 2005/09/24 19:04:52 elad Exp $ */ +/* $NetBSD: hmac_md5.c,v 1.2 2006/06/23 17:15:18 christos Exp $ */ /* * hmac_md5 - using HMAC from RFC 2104 @@ -8,6 +8,8 @@ #include #include /* XXX */ +__weak_alias(hmac_md5,_hmac_md5) + #define HMAC_HASH MD5 #define HMAC_FUNC hmac_md5 #define HMAC_KAT hmac_kat_md5 diff --git a/lib/libc/hash/sha1/hmac_sha1.c b/lib/libc/hash/sha1/hmac_sha1.c index f118c99124b5..48b631408a61 100644 --- a/lib/libc/hash/sha1/hmac_sha1.c +++ b/lib/libc/hash/sha1/hmac_sha1.c @@ -1,4 +1,4 @@ -/* $NetBSD: hmac_sha1.c,v 1.1 2005/09/24 19:04:52 elad Exp $ */ +/* $NetBSD: hmac_sha1.c,v 1.2 2006/06/23 17:15:18 christos Exp $ */ /* * hmac_sha1 - using HMAC from RFC 2104 @@ -7,6 +7,8 @@ #include "namespace.h" #include /* XXX */ +__weak_alias(hmac_sha1,_hmac_sha1) + #define HMAC_HASH SHA1 #define HMAC_FUNC hmac_sha1 #define HMAC_KAT hmac_kat_sha1 diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h index 6e5611da7cbc..5a6204922f6a 100644 --- a/lib/libc/include/namespace.h +++ b/lib/libc/include/namespace.h @@ -1,4 +1,4 @@ -/* $NetBSD: namespace.h,v 1.116 2006/05/05 00:03:21 rpaulo Exp $ */ +/* $NetBSD: namespace.h,v 1.117 2006/06/23 17:15:18 christos Exp $ */ /*- * Copyright (c) 1997-2004 The NetBSD Foundation, Inc. @@ -346,6 +346,8 @@ #define hesiod_init _hesiod_init #define hesiod_resolve _hesiod_resolve #define hesiod_to_bind _hesiod_to_bind +#define hmac_md5 _hmac_md5 +#define hmac_sha1 _hmac_sha1 #define iconv _iconv #define iconv_open _iconv_open #define iconv_close _iconv_close