1
0
mirror of https://github.com/danog/tgseclib.git synced 2025-01-22 05:51:20 +01:00

Replace ; with : in case statement.

This commit is contained in:
Andreas Fischer 2015-05-01 14:59:30 +02:00
parent ee3eb2071d
commit 5d2590feb0
3 changed files with 8 additions and 8 deletions

View File

@ -2921,7 +2921,7 @@ class File_X509
switch (true) {
case !($algorithm = $this->_subArray($csr, 'certificationRequestInfo/subjectPKInfo/algorithm/algorithm')):
case is_object($csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']);
case is_object($csr['certificationRequestInfo']['subjectPKInfo']['subjectPublicKey']):
break;
default:
switch ($algorithm) {
@ -3048,7 +3048,7 @@ class File_X509
$algorithm = $this->_subArray($spkac, 'publicKeyAndChallenge/spki/algorithm/algorithm');
switch (true) {
case !$algorithm:
case is_object($spkac['publicKeyAndChallenge']['spki']['subjectPublicKey']);
case is_object($spkac['publicKeyAndChallenge']['spki']['subjectPublicKey']):
break;
default:
switch ($algorithm) {
@ -4128,7 +4128,7 @@ class File_X509
case $disposition == FILE_X509_ATTR_APPEND:
$last = $key;
break;
case $disposition >= $n;
case $disposition >= $n:
$disposition -= $n;
break;
default:

View File

@ -1848,7 +1848,7 @@ class Net_SFTP extends Net_SSH2
// http://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#section-8.2.3
$dataCallback = false;
switch (true) {
case $mode & NET_SFTP_CALLBACK;
case $mode & NET_SFTP_CALLBACK:
if (!is_callable($data)) {
user_error("\$data should be is_callable if you set NET_SFTP_CALLBACK flag");
}

View File

@ -1346,7 +1346,7 @@ class Net_SSH2
case 'arcfour256':
$decryptKeyLength = 32; // eg. 128 / 8
break;
case 'none';
case 'none':
$decryptKeyLength = 0;
}
@ -1390,7 +1390,7 @@ class Net_SSH2
case 'arcfour256':
$encryptKeyLength = 32;
break;
case 'none';
case 'none':
$encryptKeyLength = 0;
}
@ -1606,7 +1606,7 @@ class Net_SSH2
}
$this->encrypt = new Crypt_RC4();
break;
case 'none';
case 'none':
//$this->encrypt = new Crypt_Null();
}
@ -1682,7 +1682,7 @@ class Net_SSH2
}
$this->decrypt = new Crypt_RC4();
break;
case 'none';
case 'none':
//$this->decrypt = new Crypt_Null();
}