summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-06-08 23:52:29 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-06-08 23:52:29 +0000
commitb19f3302eb266f1b7883382bc6ac4ca4ade1ecdd (patch)
tree32fd07981d1ad03d2a98efa29f4df6b370ec3233 /ext/openssl
parentc0e4bfcae4626611efee8364a1b923d445e312cc (diff)
downloadphp-git-b19f3302eb266f1b7883382bc6ac4ca4ade1ecdd.tar.gz
MFB
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/openssl.c12
1 files 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;
}