diff options
Diffstat (limited to 'ext/openssl/openssl.c')
| -rw-r--r-- | ext/openssl/openssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index b48d0909d6..d465bcee10 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -1922,7 +1922,7 @@ PHP_FUNCTION(openssl_pkey_export_to_file) long key_resource = -1; EVP_PKEY * key; BIO * bio_out = NULL; - EVP_CIPHER * cipher; + const EVP_CIPHER * cipher; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zs|s!a!", &zpkey, &filename, &filename_len, &passphrase, &passphrase_len, &args) == FAILURE) { return; @@ -1977,7 +1977,7 @@ PHP_FUNCTION(openssl_pkey_export) long key_resource = -1; EVP_PKEY * key; BIO * bio_out = NULL; - EVP_CIPHER * cipher; + const EVP_CIPHER * cipher; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "zz|s!a!", &zpkey, &out, &passphrase, &passphrase_len, &args) == FAILURE) { return; @@ -2191,7 +2191,7 @@ PHP_FUNCTION(openssl_pkcs7_encrypt) HashPosition hpos; zval ** zcertval; X509 * cert; - EVP_CIPHER *cipher = NULL; + const EVP_CIPHER *cipher = NULL; long cipherid = PHP_OPENSSL_CIPHER_DEFAULT; uint strindexlen; ulong intindex; |
