|
Added
Link Here
|
| 1 |
--- pfpro.c.orig Sun Jan 1 05:46:56 2006 |
| 2 |
+++ pfpro.c Fri Jun 16 17:18:05 2006 |
| 3 |
@@ -80,6 +80,7 @@ |
| 4 |
STD_PHP_INI_ENTRY("pfpro.proxyport", "", PHP_INI_ALL, OnUpdateInt, proxyport, zend_pfpro_globals, pfpro_globals) |
| 5 |
STD_PHP_INI_ENTRY("pfpro.proxylogon", "", PHP_INI_ALL, OnUpdateString, proxylogon, zend_pfpro_globals, pfpro_globals) |
| 6 |
STD_PHP_INI_ENTRY("pfpro.proxypassword", "", PHP_INI_ALL, OnUpdateString, proxypassword, zend_pfpro_globals, pfpro_globals) |
| 7 |
+ STD_PHP_INI_ENTRY("pfpro.certpath", "%%PREFIX%%/etc/pfpro/certs", PHP_INI_ALL, OnUpdateString, certpath, zend_pfpro_globals, pfpro_globals) |
| 8 |
PHP_INI_END() |
| 9 |
|
| 10 |
/* {{{ php_extname_init_globals |
| 11 |
@@ -94,6 +95,7 @@ |
| 12 |
pfpro_globals->proxyport = 0; |
| 13 |
pfpro_globals->proxylogon = NULL; |
| 14 |
pfpro_globals->proxypassword = NULL; |
| 15 |
+ pfpro_globals->certpath = NULL; |
| 16 |
} |
| 17 |
/* }}} */ |
| 18 |
|
| 19 |
@@ -133,6 +135,7 @@ |
| 20 |
php_info_print_table_start(); |
| 21 |
php_info_print_table_row(2, "Verisign Payflow Pro support", "enabled"); |
| 22 |
php_info_print_table_row(2, "libpfpro version", pfproVersion()); |
| 23 |
+ php_info_print_table_row(2, "pfpro.certpath", PFPROG(certpath)); |
| 24 |
php_info_print_table_end(); |
| 25 |
|
| 26 |
DISPLAY_INI_ENTRIES(); |
| 27 |
@@ -158,6 +161,8 @@ |
| 28 |
if (ZEND_NUM_ARGS() != 0) { |
| 29 |
WRONG_PARAM_COUNT; |
| 30 |
} |
| 31 |
+ |
| 32 |
+ setenv("PFPRO_CERT_PATH", PFPROG(certpath), 0); |
| 33 |
|
| 34 |
pfproInit(); |
| 35 |
|