On Mon, 2011-09-26 at 08:23 +0200, Bart Van Assche wrote:
> On Sun, Sep 25, 2011 at 2:59 AM, Magnus Fromreide
> <[email protected]> wrote:
>         
>         On Sat, 2011-09-24 at 09:52 +0200, Bart Van Assche wrote:
>         > diff --git a/configure.d/config_os_libs2
>         b/configure.d/config_os_libs2
>         > index 22ab764..74aba29 100644
>         > --- a/configure.d/config_os_libs2
>         > +++ b/configure.d/config_os_libs2
>         > @@ -277,6 +277,14 @@ if test "x$tryopenssl" != "xno" -a "x
>         $tryopenssl"
>         > != "xinternal"; then
>         >              AC_CHECK_LIB(${CRYPTO}, AES_cfb128_encrypt,
>         >                  AC_DEFINE(HAVE_AES_CFB128_ENCRYPT, 1,
>         >                      [Define to 1 if you have the
>         `AES_cfb128_encrypt'
>         > function.]))
>         > +
>         > +            AC_CHECK_LIB(${CRYPTO}, EVP_MD_CTX_create,
>         > +                AC_DEFINE([HAVE_EVP_MD_CTX_CREATE], [],
>         > +                 [Define to 1 if you have the
>         `EVP_MD_CTX_create' function.]))
>         > +
>         > +            AC_CHECK_LIB(${CRYPTO}, EVP_MD_CTX_destroy,
>         > +                AC_DEFINE([HAVE_EVP_MD_CTX_DESTROY], [],
>         > +                 [Define to 1 if you have the
>         `EVP_MD_CTX_destroy' function.]))
>         
>         Is there any version of OpenSSL that provides only one of
>         create and destroy?
> 
> Not that I know of. Is your concern to minimize the number of
> configure tests?

It is always nice if the configure run is quicker :-)

> How about defining both HAVE_EVP_MD_CTX_CREATE and
> HAVE_EVP_MD_CTX_DESTROY if EVP_MD_CTX_create() has been detected ?

It's either that or change the #ifdef's so that all of them check for
HAVE_EVP_MD_CTX_CREATE. The advantage adding the symbol is that the
change gets smaller. The advantage of changing the users is that it is
more like how it is used in other places.

> Bart.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to