X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=engines%2Fe_padlock.c;h=240b1f9b575972aa3a1697685f31d6633b110a7d;hb=13d75246984515a8ea8c737631d3b52cc6c92d29;hp=f051dd88bedbad3fbfc13ccef1564329f59caedf;hpb=127186bf574430546ef48bf3a82d5b3697c522c1;p=openssl.git diff --git a/engines/e_padlock.c b/engines/e_padlock.c index f051dd88be..240b1f9b57 100644 --- a/engines/e_padlock.c +++ b/engines/e_padlock.c @@ -126,16 +126,16 @@ void ENGINE_load_padlock (void) #ifdef COMPILE_HW_PADLOCK /* We do these includes here to avoid header problems on platforms that do not have the VIA padlock anyway... */ +#include #ifdef _WIN32 # include # ifndef alloca # define alloca _alloca # endif -#elif defined(NETWARE_CLIB) && defined(__GNUC__) - void *alloca(size_t); -# define alloca(s) __builtin_alloca(s) -#else -# include +#elif defined(__GNUC__) +# ifndef alloca +# define alloca(s) __builtin_alloca((s)) +# endif #endif /* Function for ENGINE detection and control */ @@ -1319,6 +1319,12 @@ static RAND_METHOD padlock_rand = { padlock_rand_status, /* rand status */ }; +#else /* !COMPILE_HW_PADLOCK */ +#ifndef OPENSSL_NO_DYNAMIC_ENGINE +OPENSSL_EXPORT +int bind_engine(ENGINE *e, const char *id, const dynamic_fns *fns) { return 0; } +IMPLEMENT_DYNAMIC_CHECK_FN() +#endif #endif /* COMPILE_HW_PADLOCK */ #endif /* !OPENSSL_NO_HW_PADLOCK */