diff options
author | foobar <sniper@php.net> | 2005-04-19 22:04:28 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-04-19 22:04:28 +0000 |
commit | b8ac8eeca6767b4603d019d97f00d489161fca96 (patch) | |
tree | ba2c56d985e3fefa545be2be4487168ece4376fe | |
parent | acbeba2a50898cf426e9888499e7769bc5d15926 (diff) | |
download | php-git-b8ac8eeca6767b4603d019d97f00d489161fca96.tar.gz |
- Never use Z_TYPE* macros on non-zvals.
-rw-r--r-- | ext/openssl/openssl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index be61253c46..758e734f01 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -2611,7 +2611,7 @@ PHP_FUNCTION(openssl_private_encrypt) cryptedlen = EVP_PKEY_size(pkey); cryptedbuf = emalloc(cryptedlen + 1); - switch (Z_TYPE_P(pkey)) { + switch (pkey->type) { case EVP_PKEY_RSA: case EVP_PKEY_RSA2: successful = (RSA_private_encrypt(data_len, @@ -2669,7 +2669,7 @@ PHP_FUNCTION(openssl_private_decrypt) cryptedlen = EVP_PKEY_size(pkey); crypttemp = emalloc(cryptedlen + 1); - switch (Z_TYPE_P(pkey)) { + switch (pkey->type) { case EVP_PKEY_RSA: case EVP_PKEY_RSA2: cryptedlen = RSA_private_decrypt(data_len, @@ -2734,7 +2734,7 @@ PHP_FUNCTION(openssl_public_encrypt) cryptedlen = EVP_PKEY_size(pkey); cryptedbuf = emalloc(cryptedlen + 1); - switch (Z_TYPE_P(pkey)) { + switch (pkey->type) { case EVP_PKEY_RSA: case EVP_PKEY_RSA2: successful = (RSA_public_encrypt(data_len, @@ -2793,7 +2793,7 @@ PHP_FUNCTION(openssl_public_decrypt) cryptedlen = EVP_PKEY_size(pkey); crypttemp = emalloc(cryptedlen + 1); - switch (Z_TYPE_P(pkey)) { + switch (pkey->type) { case EVP_PKEY_RSA: case EVP_PKEY_RSA2: cryptedlen = RSA_public_decrypt(data_len, |