[Pkg-javascript-commits] [ltx] 144/469: sasl: use ANONYMOUS as last resort if neither DIGEST-MD5 & PLAIN are available
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:01:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit ba2d170b87398f862a9fb27ccfa5d8b5d4bc0722
Author: Astro <astro at spaceboyz.net>
Date: Sat Sep 11 17:46:55 2010 +0200
sasl: use ANONYMOUS as last resort if neither DIGEST-MD5 & PLAIN are available
---
lib/xmpp/sasl.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/xmpp/sasl.js b/lib/xmpp/sasl.js
index 8138ddd..cf533e4 100644
--- a/lib/xmpp/sasl.js
+++ b/lib/xmpp/sasl.js
@@ -1,12 +1,12 @@
var crypto = require('crypto');
function selectMechanism(mechs) {
- if (mechs.indexOf("ANONYMOUS") >= 0)
- return new Anonymous();
- else if (mechs.indexOf("DIGEST-MD5") >= 0)
+ if (mechs.indexOf("DIGEST-MD5") >= 0)
return new DigestMD5();
else if (mechs.indexOf("PLAIN") >= 0)
return new Plain();
+ else if (mechs.indexOf("ANONYMOUS") >= 0)
+ return new Anonymous();
else
return null;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list