From b19f3302eb266f1b7883382bc6ac4ca4ade1ecdd Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 8 Jun 2003 23:52:29 +0000 Subject: [PATCH] MFB --- ext/openssl/openssl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 45968b83c5..8ac21ba45c 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1956,7 +1956,7 @@ PHP_FUNCTION(openssl_pkey_export_to_file) bio_out = BIO_new_file(filename, "w"); if (passphrase && req.priv_key_encrypt) { - cipher = EVP_des_ede3_cbc(); + cipher = (EVP_CIPHER *) EVP_des_ede3_cbc(); } else { cipher = NULL; } @@ -2007,7 +2007,7 @@ PHP_FUNCTION(openssl_pkey_export) bio_out = BIO_new(BIO_s_mem()); if (passphrase && req.priv_key_encrypt) { - cipher = EVP_des_ede3_cbc(); + cipher = (EVP_CIPHER *) EVP_des_ede3_cbc(); } else { cipher = NULL; } @@ -2823,16 +2823,16 @@ PHP_FUNCTION(openssl_sign) switch (signature_algo) { case OPENSSL_ALGO_SHA1: - mdtype = EVP_sha1(); + mdtype = (EVP_MD *) EVP_sha1(); break; case OPENSSL_ALGO_MD5: - mdtype = EVP_md5(); + mdtype = (EVP_MD *) EVP_md5(); break; case OPENSSL_ALGO_MD4: - mdtype = EVP_md4(); + mdtype = (EVP_MD *) EVP_md4(); break; case OPENSSL_ALGO_MD2: - mdtype = EVP_md2(); + mdtype = (EVP_MD *) EVP_md2(); break; } -- 2.50.1