#define DEBUG_SMIME 0
+static unsigned char arg2of2_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[] =
/* public/private key functions */
PHP_FE(openssl_pkey_free, NULL)
PHP_FE(openssl_pkey_new, NULL)
- PHP_FE(openssl_pkey_export, second_arg_force_ref)
+ PHP_FE(openssl_pkey_export, arg2of2_force_ref)
PHP_FE(openssl_pkey_export_to_file, NULL)
PHP_FE(openssl_pkey_get_private, NULL)
PHP_FE(openssl_pkey_get_public, NULL)
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, second_arg_force_ref)
+ PHP_FE(openssl_x509_export, arg2of2_force_ref)
PHP_FE(openssl_x509_export_to_file, NULL)
/* CSR funcs */
- PHP_FE(openssl_csr_new, second_arg_force_ref)
- PHP_FE(openssl_csr_export, second_arg_force_ref)
+ PHP_FE(openssl_csr_new, arg2of2_force_ref)
+ PHP_FE(openssl_csr_export, arg2of2_force_ref)
PHP_FE(openssl_csr_export_to_file, NULL)
PHP_FE(openssl_csr_sign, NULL)
/* {{{ openssl -> PHP "bridging" */
/* true global; readonly after module startup */
-static char default_ssl_conf_filename[PATH_MAX];
+static char default_ssl_conf_filename[MAXPATHLEN];
struct php_x509_request {
LHASH * global_config; /* Global SSL config */
static int php_openssl_load_rand_file(const char * file, int *egdsocket, int *seeded)
{
- char buffer[PATH_MAX];
+ char buffer[MAXPATHLEN];
*egdsocket = 0;
*seeded = 0;
static int php_openssl_write_rand_file(const char * file, int egdsocket, int seeded)
{
- char buffer[PATH_MAX];
+ char buffer[MAXPATHLEN];
if (egdsocket || !seeded) {
/* if we did not manage to read the seed file, we should not write
* a low-entropy seed file back */