Constify
[openssl.git] / crypto / evp / evp.h
index a58ece3a408dd83a8607f1f50f8b205b3faecbac..a1dd3da1bfd0d8af37eae3591bcadabb9a08fe8d 100644 (file)
@@ -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 */
 
@@ -753,10 +749,12 @@ EVP_PKEY *        d2i_AutoPrivateKey(EVP_PKEY **a, unsigned char **pp,
                        long length);
 int            i2d_PrivateKey(EVP_PKEY *a, unsigned char **pp);
 
-int EVP_PKEY_copy_parameters(EVP_PKEY *to,EVP_PKEY *from);
-int EVP_PKEY_missing_parameters(EVP_PKEY *pkey);
+int EVP_PKEY_copy_parameters(EVP_PKEY *to, const EVP_PKEY *from);
+int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey);
 int EVP_PKEY_save_parameters(EVP_PKEY *pkey,int mode);
-int EVP_PKEY_cmp_parameters(EVP_PKEY *a,EVP_PKEY *b);
+int EVP_PKEY_cmp_parameters(const EVP_PKEY *a, const EVP_PKEY *b);
+
+int EVP_PKEY_cmp(const EVP_PKEY *a, const EVP_PKEY *b);
 
 int EVP_CIPHER_type(const EVP_CIPHER *ctx);