Skip to content

Commit

Permalink
Fix a couple more typos and "tlsv1" is not StartTLS, but ssl with min…
Browse files Browse the repository at this point in the history
…imum of TLS version 1.0
  • Loading branch information
ralfbecker committed Jan 27, 2016
1 parent d681565 commit 7573553
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions framework/ManageSieve/lib/Horde/ManageSieve.php
Expand Up @@ -17,7 +17,6 @@

namespace Horde;
use Horde\Socket\Client;
use Horde\ManageSieve;
use Horde\ManageSieve\Exception;

/**
Expand Down Expand Up @@ -258,7 +257,7 @@ protected function _handleConnectAndLogin()
* @param string $port Port of server.
* @param array $context List of options to pass to
* stream_context_create().
* @param boolean $secure: Security layer requested. @see __construct().
* @param boolean $secure Security layer requested. @see __construct().
*
* @throws \Horde\ManageSieve\Exception
*/
Expand Down Expand Up @@ -315,7 +314,6 @@ public function connect(

// Check if we can enable TLS via STARTTLS.
if ($this->_params['secure'] === 'tls' ||
$this->_params['secure'] === 'tlsv1' ||
($this->_params['secure'] === true &&
!empty($this->_capability['starttls']))) {
$this->_doCmd('STARTTLS');
Expand Down Expand Up @@ -362,7 +360,7 @@ public function disconnect($sendLogoutCMD = true)
* Defaults from the constructor are used for missing parameters.
*
* @param string $user Login username.
* @param string $pass Login password.
* @param string $password Login password.
* @param string $authmethod Type of login method to use.
* @param string $euser Effective UID (perform on behalf of $euser).
*
Expand All @@ -375,13 +373,13 @@ public function login(
if (isset($user)) {
$this->_params['user'] = $user;
}
if (isset($user)) {
if (isset($password)) {
$this->_params['password'] = $password;
}
if (isset($user)) {
if (isset($authmethod)) {
$this->_params['authmethod'] = $authmethod;
}
if (isset($user)) {
if (isset($euser)) {
$this->_params['euser'] = $euser;
}

Expand Down

0 comments on commit 7573553

Please sign in to comment.