Add the possibility to build without the ENGINE framework.
[openssl.git] / crypto / evp / evp.h
index b084a358096f22fd12831a76c21ef0d3e708bb18..a58ece3a408dd83a8607f1f50f8b205b3faecbac 100644 (file)
@@ -277,7 +277,9 @@ 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 */;
@@ -349,7 +351,9 @@ 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 */