From 58fbbde8c830ec651b97d4ab140641ff92e6cc2c Mon Sep 17 00:00:00 2001 From: roundcube Date: Mon, 3 Oct 2005 20:25:31 +0000 Subject: Minor bugfixes and SMTP support git-svn-id: https://svn.roundcube.net/trunk@17 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/lib/Auth/SASL/Anonymous.php | 71 +++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100755 roundcubemail/program/lib/Auth/SASL/Anonymous.php (limited to 'roundcubemail/program/lib/Auth/SASL/Anonymous.php') diff --git a/roundcubemail/program/lib/Auth/SASL/Anonymous.php b/roundcubemail/program/lib/Auth/SASL/Anonymous.php new file mode 100755 index 000000000..081190936 --- /dev/null +++ b/roundcubemail/program/lib/Auth/SASL/Anonymous.php @@ -0,0 +1,71 @@ + | +// +-----------------------------------------------------------------------+ +// +// $Id$ + +/** +* Implmentation of ANONYMOUS SASL mechanism +* +* @author Richard Heyes +* @access public +* @version 1.0 +* @package Auth_SASL +*/ + +require_once('Auth/SASL/Common.php'); + +class Auth_SASL_Anonymous extends Auth_SASL_Common +{ + /** + * Not much to do here except return the token supplied. + * No encoding, hashing or encryption takes place for this + * mechanism, simply one of: + * o An email address + * o An opaque string not containing "@" that can be interpreted + * by the sysadmin + * o Nothing + * + * We could have some logic here for the second option, but this + * would by no means create something interpretable. + * + * @param string $token Optional email address or string to provide + * as trace information. + * @return string The unaltered input token + */ + function getResponse($token = '') + { + return $token; + } +} +?> \ No newline at end of file -- cgit v1.2.3