aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-01-30 18:52:46 +0000
committerRichard Levitte <levitte@openssl.org>2003-01-30 18:52:46 +0000
commit5fe11c7533f43fd49bcf20992c8eb7c6f773770d (patch)
treef7e6d3a7b5ae4d88990045071c5d039c720f25e8 /crypto
parenta1d57849b3b0248d7b159849675e3a695ee1765c (diff)
downloadopenssl-5fe11c7533f43fd49bcf20992c8eb7c6f773770d.tar.gz
The OPENSSL_NO_ENGINE has small problem: it changes certain structures. That's
bad, so let's not check OPENSSL_NO_ENGINE in those places. Fortunately, all the header files where the problem existed include ossl_typ.h, which makes a 'forward declaration' of the ENGINE type.
Diffstat (limited to 'crypto')
-rw-r--r--crypto/dh/dh.h2
-rw-r--r--crypto/dsa/dsa.h2
-rw-r--r--crypto/evp/evp.h4
-rw-r--r--crypto/rsa/rsa.h2
4 files changed, 0 insertions, 10 deletions
diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h
index 38214082f7..62dba4055c 100644
--- a/crypto/dh/dh.h
+++ b/crypto/dh/dh.h
@@ -119,9 +119,7 @@ struct dh_st
int references;
CRYPTO_EX_DATA ex_data;
const DH_METHOD *meth;
-#ifndef OPENSSL_NO_ENGINE
ENGINE *engine;
-#endif
};
#define DH_GENERATOR_2 2
diff --git a/crypto/dsa/dsa.h b/crypto/dsa/dsa.h
index 63fcce9a33..6ba79b01df 100644
--- a/crypto/dsa/dsa.h
+++ b/crypto/dsa/dsa.h
@@ -142,10 +142,8 @@ struct dsa_st
int references;
CRYPTO_EX_DATA ex_data;
const DSA_METHOD *meth;
-#ifndef OPENSSL_NO_ENGINE
/* functional reference if 'meth' is ENGINE-provided */
ENGINE *engine;
-#endif
};
#define DSAparams_dup(x) (DSA *)ASN1_dup((int (*)())i2d_DSAparams, \
diff --git a/crypto/evp/evp.h b/crypto/evp/evp.h
index a58ece3a40..b084a35809 100644
--- a/crypto/evp/evp.h
+++ b/crypto/evp/evp.h
@@ -277,9 +277,7 @@ struct env_md_st
struct env_md_ctx_st
{
const EVP_MD *digest;
-#ifndef OPENSSL_NO_ENGINE
ENGINE *engine; /* functional reference if 'digest' is ENGINE-provided */
-#endif
unsigned long flags;
void *md_data;
} /* EVP_MD_CTX */;
@@ -351,9 +349,7 @@ typedef struct evp_cipher_info_st
struct evp_cipher_ctx_st
{
const EVP_CIPHER *cipher;
-#ifndef OPENSSL_NO_ENGINE
ENGINE *engine; /* functional reference if 'cipher' is ENGINE-provided */
-#endif
int encrypt; /* encrypt or decrypt */
int buf_len; /* number we have left */
diff --git a/crypto/rsa/rsa.h b/crypto/rsa/rsa.h
index 68696f8219..b005b4b0b3 100644
--- a/crypto/rsa/rsa.h
+++ b/crypto/rsa/rsa.h
@@ -128,10 +128,8 @@ struct rsa_st
int pad;
long version;
const RSA_METHOD *meth;
-#ifndef OPENSSL_NO_ENGINE
/* functional reference if 'meth' is ENGINE-provided */
ENGINE *engine;
-#endif
BIGNUM *n;
BIGNUM *e;
BIGNUM *d;