aboutsummaryrefslogtreecommitdiff
path: root/crypto/engine
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-01-30 17:39:26 +0000
committerRichard Levitte <levitte@openssl.org>2003-01-30 17:39:26 +0000
commit0b13e9f055d3f7be066dc2e89fc9f9822b12eca7 (patch)
tree633b5d3e4c9356eaf9816541aaa079a0c3be9194 /crypto/engine
parent96f7065f6392e19f1449578aaeabb8dc39294fa7 (diff)
downloadopenssl-0b13e9f055d3f7be066dc2e89fc9f9822b12eca7.zip
openssl-0b13e9f055d3f7be066dc2e89fc9f9822b12eca7.tar.gz
openssl-0b13e9f055d3f7be066dc2e89fc9f9822b12eca7.tar.bz2
Add the possibility to build without the ENGINE framework.
PR: 287
Diffstat (limited to 'crypto/engine')
-rw-r--r--crypto/engine/engine.h5
-rw-r--r--crypto/engine/enginetest.c11
2 files changed, 15 insertions, 1 deletions
diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h
index 44b3849..43500a8 100644
--- a/crypto/engine/engine.h
+++ b/crypto/engine/engine.h
@@ -65,6 +65,11 @@
#define HEADER_ENGINE_H
#include <openssl/opensslconf.h>
+
+#ifdef OPENSSL_NO_ENGINE
+#error ENGINE is disabled.
+#endif
+
#include <openssl/ossl_typ.h>
#include <openssl/bn.h>
#ifndef OPENSSL_NO_RSA
diff --git a/crypto/engine/enginetest.c b/crypto/engine/enginetest.c
index 87fa8c5..c2d0297 100644
--- a/crypto/engine/enginetest.c
+++ b/crypto/engine/enginetest.c
@@ -56,9 +56,17 @@
*
*/
-#include <openssl/e_os2.h>
#include <stdio.h>
#include <string.h>
+
+#ifdef OPENSSL_NO_ENGINE
+int main(int argc, char *argv[])
+{
+ printf("No ENGINE support\n");
+ return(0);
+}
+#else
+#include <openssl/e_os2.h>
#include <openssl/buffer.h>
#include <openssl/crypto.h>
#include <openssl/engine.h>
@@ -272,3 +280,4 @@ end:
CRYPTO_mem_leaks_fp(stderr);
return to_return;
}
+#endif