1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/15150] Add Jabber SSL context configuration options

PHPBB3-15150
This commit is contained in:
Rubén Calvo
2017-03-30 08:33:04 +02:00
parent 827ded82b8
commit 32f3ddca70
6 changed files with 116 additions and 31 deletions

View File

@@ -0,0 +1,32 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
namespace phpbb\db\migration\data\v31x;
class add_jabber_ssl_context_config_options extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return array('\phpbb\db\migration\data\v31x\v3110');
}
public function update_data()
{
return array(
// See http://php.net/manual/en/context.ssl.php
array('config.add', array('jab_verify_peer', 1)),
array('config.add', array('jab_verify_peer_name', 1)),
array('config.add', array('jab_allow_self_signed', 0)),
);
}
}