diff options
Diffstat (limited to 'vendor/sabre/http/lib/Auth')
-rw-r--r-- | vendor/sabre/http/lib/Auth/AWS.php | 16 | ||||
-rw-r--r-- | vendor/sabre/http/lib/Auth/Digest.php | 6 |
2 files changed, 10 insertions, 12 deletions
diff --git a/vendor/sabre/http/lib/Auth/AWS.php b/vendor/sabre/http/lib/Auth/AWS.php index ffda3cf15..2690c634d 100644 --- a/vendor/sabre/http/lib/Auth/AWS.php +++ b/vendor/sabre/http/lib/Auth/AWS.php @@ -22,14 +22,14 @@ class AWS extends AbstractAuth * * @var string */ - private $signature = null; + private $signature; /** * The accesskey supplied by the HTTP client. * * @var string */ - private $accessKey = null; + private $accessKey; /** * An error code, if any. @@ -40,11 +40,11 @@ class AWS extends AbstractAuth */ public $errorCode = 0; - const ERR_NOAWSHEADER = 1; - const ERR_MD5CHECKSUMWRONG = 2; - const ERR_INVALIDDATEFORMAT = 3; - const ERR_REQUESTTIMESKEWED = 4; - const ERR_INVALIDSIGNATURE = 5; + public const ERR_NOAWSHEADER = 1; + public const ERR_MD5CHECKSUMWRONG = 2; + public const ERR_INVALIDDATEFORMAT = 3; + public const ERR_REQUESTTIMESKEWED = 4; + public const ERR_INVALIDSIGNATURE = 5; /** * Gathers all information from the headers. @@ -212,7 +212,7 @@ class AWS extends AbstractAuth } $key = str_pad($key, $blocksize, chr(0x00)); $ipad = str_repeat(chr(0x36), $blocksize); - $opad = str_repeat(chr(0x5c), $blocksize); + $opad = str_repeat(chr(0x5C), $blocksize); $hmac = pack('H*', sha1(($key ^ $opad).pack('H*', sha1(($key ^ $ipad).$message)))); return $hmac; diff --git a/vendor/sabre/http/lib/Auth/Digest.php b/vendor/sabre/http/lib/Auth/Digest.php index e80e78305..08fa34f90 100644 --- a/vendor/sabre/http/lib/Auth/Digest.php +++ b/vendor/sabre/http/lib/Auth/Digest.php @@ -34,8 +34,8 @@ class Digest extends AbstractAuth /** * These constants are used in setQOP();. */ - const QOP_AUTH = 1; - const QOP_AUTHINT = 2; + public const QOP_AUTH = 1; + public const QOP_AUTHINT = 2; protected $nonce; protected $opaque; @@ -177,8 +177,6 @@ class Digest extends AbstractAuth * It should be compatible with mod_php format and other webservers. * * If the header could not be found, null will be returned - * - * @return mixed */ public function getDigest() { |