From: Ilia Alshanetsky Date: Sun, 8 Jun 2003 23:42:47 +0000 (+0000) Subject: Fixed compile warnings. X-Git-Tag: php-4.3.3RC1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c60c1258e29807a7ec9dc64e56e6171ce785f62d;p=php Fixed compile warnings. --- diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 719c5d637d..0b828996b1 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1913,7 +1913,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; @@ -1964,7 +1964,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; @@ -2224,7 +2224,7 @@ PHP_FUNCTION(openssl_pkcs7_encrypt) } /* TODO: allow user to choose a different cipher */ - cipher = EVP_rc2_40_cbc(); + cipher = (EVP_CIPHER *) EVP_rc2_40_cbc(); if (cipher == NULL) goto clean_exit;