From a581439bb1a5587fadbb7d7837bf9aa1b460d4da Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 13 Nov 2008 15:08:33 +0000 Subject: [PATCH] Fixes for "make depend". Features which need a #define to be set to enable them, like FIPS and JPAKE need to have these set when building dependencies. --- crypto/jpake/jpake.h | 3 ++- crypto/jpake/jpaketest.c | 2 +- crypto/opensslconf.h.in | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/crypto/jpake/jpake.h b/crypto/jpake/jpake.h index f5f95e89a0..0457a5c9a6 100644 --- a/crypto/jpake/jpake.h +++ b/crypto/jpake/jpake.h @@ -11,6 +11,8 @@ #include #ifndef OPENSSL_EXPERIMENTAL_JPAKE +#error JPAKE is disabled +#endif #ifdef __cplusplus extern "C" { @@ -125,4 +127,3 @@ void ERR_load_JPAKE_strings(void); } #endif #endif -#endif diff --git a/crypto/jpake/jpaketest.c b/crypto/jpake/jpaketest.c index 1c77f6cda4..5f26b12289 100644 --- a/crypto/jpake/jpaketest.c +++ b/crypto/jpake/jpaketest.c @@ -1,4 +1,3 @@ -#include #include #ifndef OPENSSL_EXPERIMENTAL_JPAKE @@ -8,6 +7,7 @@ int main(int argc, char *argv[]) return(0); } #else +#include static void showbn(const char *name, const BIGNUM *bn) { diff --git a/crypto/opensslconf.h.in b/crypto/opensslconf.h.in index cee83acf98..8db94782b9 100644 --- a/crypto/opensslconf.h.in +++ b/crypto/opensslconf.h.in @@ -1,5 +1,21 @@ /* crypto/opensslconf.h.in */ +#ifdef OPENSSL_DOING_MAKEDEPEND + +/* Include any symbols here which have to be explicitly set to enable a + * feature. For example OPENSSL_EXPERIMENTAL_FOO + */ + +#ifndef OPENSSL_FIPS +#define OPENSSL_FIPS +#endif + +#ifndef OPENSSL_EXPERIMENTAL_JPAKE +#define OPENSSL_EXPERIMENTAL_JPAKE +#endif + +#endif + /* Generate 80386 code? */ #undef I386_ONLY -- 2.25.1