1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-07-31 10:04:20 +03:00

token fixes; code looks incomplete anyway

This commit is contained in:
David Goodwin
2018-06-18 21:36:25 +01:00
parent 97c48a0fc9
commit aa38d0090d

View File

@ -10,6 +10,10 @@
class DovecotCrypt extends Crypt { class DovecotCrypt extends Crypt {
private $errormsg = [];
private $salt_chars = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; private $salt_chars = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
@ -83,7 +87,7 @@ class DovecotCrypt extends Crypt {
return $password; return $password;
} }
private function __md5_generate($plaintext) { private function __md5_generate($plaintext) {
return $password; return $plaintext;
} }
private function __sha1_generate() { private function __sha1_generate() {
} }
@ -103,6 +107,9 @@ class DovecotCrypt extends Crypt {
} }
/**
* @return string
*/
public function custom_hmac($algo, $data, $key, $raw_output = false) { public function custom_hmac($algo, $data, $key, $raw_output = false) {
$algo = strtolower($algo); $algo = strtolower($algo);
$pack = 'H'.strlen($algo('test')); $pack = 'H'.strlen($algo('test'));