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

[ticket/13558] Add smtp SSL context configuration options

PHPBB3-13558
This commit is contained in:
rxu
2017-03-17 01:21:57 +07:00
parent 9267235f30
commit ac87784a11
4 changed files with 54 additions and 0 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_smtp_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('ssl_verify_peer', 1)),
array('config.add', array('ssl_verify_peer_name', 1)),
array('config.add', array('ssl_allow_self_signed', 0)),
);
}
}