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.
This commit is contained in:
Dr. Stephen Henson 2008-11-13 15:08:33 +00:00
parent a43337e8c4
commit a581439bb1
3 changed files with 19 additions and 2 deletions

View File

@ -11,6 +11,8 @@
#include <openssl/opensslconf.h>
#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

View File

@ -1,4 +1,3 @@
#include <openssl/jpake.h>
#include <openssl/err.h>
#ifndef OPENSSL_EXPERIMENTAL_JPAKE
@ -8,6 +7,7 @@ int main(int argc, char *argv[])
return(0);
}
#else
#include <openssl/jpake.h>
static void showbn(const char *name, const BIGNUM *bn)
{

View File

@ -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