Skip to content

Commit

Permalink
Fixed compile warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Alshanetsky committed Jun 8, 2003
1 parent cef32b1 commit c60c125
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/openssl/openssl.c
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit c60c125

Please sign in to comment.