[Top][All Lists]

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

[bug-gnulib] Re: Problem with the md5 module

From: Simon Josefsson
Subject: [bug-gnulib] Re: Problem with the md5 module
Date: Fri, 28 Jan 2005 10:32:16 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Martin Lambers <address@hidden> writes:

> Hi!
> I use the md5 module of gnulib.
> On systems with MD5Init(), MD5Update(), MD5Final() (for example *BSD or
> dietlibc), I would like to use these functions instead. 

Paul's suggestion seem to answer this, but I'd like to offer another
solution: always use the gnulib interface.  Scattering #if over your
code decreases the readability and quality of the code.  If you really
need to use the native functions, do it through a layered API that
allow users to select which implementation to use.  I use something
similar in GnuTLS, Shishi, GSASL etc to switch between Nettle and
libgcrypt; adding the BSD interfaces as well would be simple.  Then
your code would use the new layer everywhere, and the code will be

reply via email to

[Prev in Thread] Current Thread [Next in Thread]