aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2017-03-17 01:21:57 +0700
committerrxu <rxu@mail.ru>2017-03-17 01:21:57 +0700
commitac87784a113035416e137ffb588d18a5da7650ac (patch)
treeee2b446c20f647e1f11dac510ea281e3a76ed0cb /phpBB/phpbb/db
parent9267235f30b3275b4b00f49f99c6ae259ce26a3f (diff)
downloadforums-ac87784a113035416e137ffb588d18a5da7650ac.tar
forums-ac87784a113035416e137ffb588d18a5da7650ac.tar.gz
forums-ac87784a113035416e137ffb588d18a5da7650ac.tar.bz2
forums-ac87784a113035416e137ffb588d18a5da7650ac.tar.xz
forums-ac87784a113035416e137ffb588d18a5da7650ac.zip
[ticket/13558] Add smtp SSL context configuration options
PHPBB3-13558
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v31x/add_smtp_ssl_context_config_options.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v31x/add_smtp_ssl_context_config_options.php b/phpBB/phpbb/db/migration/data/v31x/add_smtp_ssl_context_config_options.php
new file mode 100644
index 0000000000..9ba91ed754
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v31x/add_smtp_ssl_context_config_options.php
@@ -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)),
+ );
+ }
+}