diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-php/PEAR-Crypt_CHAP/files/CHAP-1.5.0-constructor.patch | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-php/PEAR-Crypt_CHAP/files/CHAP-1.5.0-constructor.patch')
-rw-r--r-- | dev-php/PEAR-Crypt_CHAP/files/CHAP-1.5.0-constructor.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-php/PEAR-Crypt_CHAP/files/CHAP-1.5.0-constructor.patch b/dev-php/PEAR-Crypt_CHAP/files/CHAP-1.5.0-constructor.patch new file mode 100644 index 000000000000..6fa92898e106 --- /dev/null +++ b/dev-php/PEAR-Crypt_CHAP/files/CHAP-1.5.0-constructor.patch @@ -0,0 +1,65 @@ +diff -aurN a/CHAP.php b/CHAP.php +--- a/CHAP.php 1970-01-01 04:13:08.000000000 -0500 ++++ b/CHAP.php 2018-02-13 13:04:49.812389739 -0500 +@@ -78,7 +78,19 @@ + * @var integer + */ + var $chapid = 1; +- ++ ++ /** ++ * Constructor ++ * ++ * Generates a random challenge ++ * @return void ++ */ ++ function __construct() ++ { ++ parent::__construct(); ++ $this->generateChallenge(); ++ } ++ + /** + * Constructor + * +@@ -160,7 +172,19 @@ + * @var bool + */ + var $flags = 1; +- ++ ++ /** ++ * Constructor ++ * ++ * Loads the hash extension ++ * @return void ++ */ ++ function __construct() ++ { ++ parent::__construct(); ++ $this->loadExtension('hash'); ++ } ++ + /** + * Constructor + * +@@ -412,6 +436,19 @@ + /** + * Constructor + * ++ * Generates the 16 Bytes peer and authentication challenge ++ * @return void ++ */ ++ function __construct() ++ { ++ parent::__construct(); ++ $this->generateChallenge('peerChallenge', 16); ++ $this->generateChallenge('authChallenge', 16); ++ } ++ ++ /** ++ * Constructor ++ * + * Generates the 16 Bytes peer and authentication challenge + * @return void + */ |