the configuration parameter 'no-hw'.
# see INSTALL for instructions.
-my $usage="Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx] [rsaref] [no-threads] [no-asm] [no-dso] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] os/compiler[:flags]\n";
+my $usage="Usage: Configure [no-<cipher> ...] [-Dxxx] [-lxxx] [-Lxxx] [-fxxx] [-Kxxx] [no-hw-xxx|no-hw] [rsaref] [no-threads] [no-asm] [no-dso] [386] [--prefix=DIR] [--openssldir=OPENSSLDIR] os/compiler[:flags]\n";
# Options:
#
# Generic OpenSSL-style methods relating to this support
# are always compiled but return NULL if the hardware
# support isn't compiled.
+# no-hw do not compile support for any crypto hardware.
# rsaref use RSAref
# [no-]threads [don't] try to create a library that is suitable for
# multithreaded applications (default is "threads" if we
$flags .= "-DNO_HW_$hw ";
$openssl_other_defines .= "#define NO_HW_$hw\n";
}
+ elsif (/^no-hw$/)
+ {
+ $flags .= "-DNO_HW ";
+ $openssl_other_defines .= "#define NO_HW\n";
+ }
elsif (/^386$/)
{ $processor=386; }
elsif (/^rsaref$/)
/* Returns a structure of software only methods (the default). */
ENGINE *ENGINE_openssl();
+#ifndef NO_HW
+
#ifndef NO_HW_CSWIFT
/* Returns a structure of cswift methods ... NB: This can exist and be
* "used" even on non-cswift systems because the "init" will fail if the
ENGINE *ENGINE_atalla();
#endif /* !NO_HW_ATALLA */
+#endif /* !NO_HW */
+
#ifdef __cplusplus
}
#endif
* with our statically compiled-in engines. */
if(!engine_list_add(ENGINE_openssl()))
return 0;
+#ifndef NO_HW
#ifndef NO_HW_CSWIFT
if(!engine_list_add(ENGINE_cswift()))
return 0;
if(!engine_list_add(ENGINE_atalla()))
return 0;
#endif /* !NO_HW_ATALLA */
+#endif /* !NO_HW */
engine_list_flag = 1;
return 1;
}
#include "engine_int.h"
#include <openssl/engine.h>
+#ifndef NO_HW
#ifndef NO_HW_ATALLA
#include "vendor_defns/atalla.h"
}
#endif /* !NO_HW_ATALLA */
+#endif /* !NO_HW */
#include "engine_int.h"
#include <openssl/engine.h>
+#ifndef NO_HW
#ifndef NO_HW_CSWIFT
/* Attribution notice: Rainbow have generously allowed me to reproduce
}
#endif /* !NO_HW_CSWIFT */
+#endif /* !NO_HW */
#include "engine_int.h"
#include <openssl/engine.h>
+#ifndef NO_HW
#ifndef NO_HW_NCIPHER
/* Attribution notice: nCipher har said several times that it's OK for
}
#endif /* !NO_HW_NCIPHER */
+#endif /* !NO_HW */