diff options
| author | Daniel Beulshausen <dbeu@php.net> | 2001-10-05 15:56:42 +0000 | 
|---|---|---|
| committer | Daniel Beulshausen <dbeu@php.net> | 2001-10-05 15:56:42 +0000 | 
| commit | 1ac3aa7e087b016e939705f22348f6d02aee72e4 (patch) | |
| tree | 1100e0ad8035cbb80dbb97546b38f86b2500f46d /ext/openssl | |
| parent | 20505d84837cac8bcbddef624fe340c8d633cf5d (diff) | |
| download | php-git-1ac3aa7e087b016e939705f22348f6d02aee72e4.tar.gz | |
nuke unnecessary force-by-ref declarations + name the needed in a proper way
Diffstat (limited to 'ext/openssl')
| -rw-r--r-- | ext/openssl/openssl.c | 32 | 
1 files changed, 14 insertions, 18 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 3fb235c579..02bdd63fac 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -48,14 +48,10 @@  #define DEBUG_SMIME	0 -static unsigned char arg2of2_force_ref[] = +static unsigned char arg2_force_ref[] =                         { 2, BYREF_NONE, BYREF_FORCE }; -static unsigned char arg2of3_force_ref[] = -                       { 3, BYREF_NONE, BYREF_FORCE, BYREF_NONE }; -static unsigned char arg2of4_force_ref[] = -                       { 4, BYREF_NONE, BYREF_FORCE, BYREF_NONE, BYREF_NONE }; -static unsigned char arg2and3of4_force_ref[] = -                       { 4, BYREF_NONE, BYREF_FORCE, BYREF_FORCE, BYREF_NONE }; +static unsigned char arg2and3_force_ref[] = +                       { 3, BYREF_NONE, BYREF_FORCE, BYREF_FORCE };  enum php_openssl_key_type	{  	OPENSSL_KEYTYPE_RSA, @@ -70,7 +66,7 @@ function_entry openssl_functions[] = {  /* public/private key functions */  	PHP_FE(openssl_pkey_free,			NULL)  	PHP_FE(openssl_pkey_new,			NULL) -	PHP_FE(openssl_pkey_export,			arg2of2_force_ref) +	PHP_FE(openssl_pkey_export,			arg2_force_ref)  	PHP_FE(openssl_pkey_export_to_file,	NULL)  	PHP_FE(openssl_pkey_get_private,	NULL)  	PHP_FE(openssl_pkey_get_public,		NULL) @@ -85,20 +81,20 @@ function_entry openssl_functions[] = {  	PHP_FE(openssl_x509_parse,			 	NULL)  	PHP_FE(openssl_x509_checkpurpose,		NULL)  	PHP_FE(openssl_x509_check_private_key,	NULL) -	PHP_FE(openssl_x509_export,				arg2of2_force_ref) +	PHP_FE(openssl_x509_export,				arg2_force_ref)  	PHP_FE(openssl_x509_export_to_file,		NULL)  /* CSR funcs */ -	PHP_FE(openssl_csr_new,				arg2of2_force_ref) -	PHP_FE(openssl_csr_export,			arg2of2_force_ref) +	PHP_FE(openssl_csr_new,				arg2_force_ref) +	PHP_FE(openssl_csr_export,			arg2_force_ref)  	PHP_FE(openssl_csr_export_to_file,	NULL)  	PHP_FE(openssl_csr_sign,			NULL) -	PHP_FE(openssl_sign,               arg2of3_force_ref) +	PHP_FE(openssl_sign,               arg2_force_ref)  	PHP_FE(openssl_verify,             NULL) -	PHP_FE(openssl_seal,               arg2and3of4_force_ref) -	PHP_FE(openssl_open,               arg2of4_force_ref) +	PHP_FE(openssl_seal,               arg2and3_force_ref) +	PHP_FE(openssl_open,               arg2_force_ref)  /* for S/MIME handling */  	PHP_FE(openssl_pkcs7_verify,	  	  NULL) @@ -106,10 +102,10 @@ function_entry openssl_functions[] = {  	PHP_FE(openssl_pkcs7_sign,			  NULL)  	PHP_FE(openssl_pkcs7_encrypt,		  NULL) - 	PHP_FE(openssl_private_encrypt,    arg2of3_force_ref) - 	PHP_FE(openssl_private_decrypt,    arg2of3_force_ref) - 	PHP_FE(openssl_public_encrypt,     arg2of3_force_ref) - 	PHP_FE(openssl_public_decrypt,     arg2of3_force_ref) + 	PHP_FE(openssl_private_encrypt,    arg2_force_ref) + 	PHP_FE(openssl_private_decrypt,    arg2_force_ref) + 	PHP_FE(openssl_public_encrypt,     arg2_force_ref) + 	PHP_FE(openssl_public_decrypt,     arg2_force_ref)  	PHP_FE(openssl_error_string, NULL)  	{NULL, NULL, NULL}  | 
