diff options
author | Tristan Darricau <github@nicofuma.fr> | 2017-03-19 18:04:53 +0100 |
---|---|---|
committer | Tristan Darricau <github@nicofuma.fr> | 2017-03-19 18:04:53 +0100 |
commit | 0b2369901a4a6f5eb4cbc45981a13a91a1532994 (patch) | |
tree | 6e60760e93a0a970f1145281d9988f7517af6b26 /phpBB/phpbb | |
parent | d114a3d4152f646564a90a436a9545a62a452262 (diff) | |
parent | 22b86324260dffe4907aac8e6cc9bb848568bcb9 (diff) | |
download | forums-0b2369901a4a6f5eb4cbc45981a13a91a1532994.tar forums-0b2369901a4a6f5eb4cbc45981a13a91a1532994.tar.gz forums-0b2369901a4a6f5eb4cbc45981a13a91a1532994.tar.bz2 forums-0b2369901a4a6f5eb4cbc45981a13a91a1532994.tar.xz forums-0b2369901a4a6f5eb4cbc45981a13a91a1532994.zip |
Merge pull request #4745 from rxu/ticket/13558
[ticket/13558] Add smtp SSL context configuration options
* rxu/ticket/13558:
[ticket/13558] Change options prefix and add settings precautions.
[ticket/13558] Make SSL context specific options more SMTP general
[ticket/13558] Add smtp SSL context configuration options
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v31x/add_smtp_ssl_context_config_options.php | 32 |
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..92051dc3ca --- /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('smtp_verify_peer', 1)), + array('config.add', array('smtp_verify_peer_name', 1)), + array('config.add', array('smtp_allow_self_signed', 0)), + ); + } +} |