]> granicus.if.org Git - php/commitdiff
Fixed compile warnings.
authorIlia Alshanetsky <iliaa@php.net>
Sun, 8 Jun 2003 23:42:47 +0000 (23:42 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 8 Jun 2003 23:42:47 +0000 (23:42 +0000)
ext/openssl/openssl.c

index 719c5d637ddff4220ebb456ea0a054a7d27b1872..0b828996b1a5f725dd4a62503df75bed3bd52281 100644 (file)
@@ -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;