diff options
author | George Hazan <george.hazan@gmail.com> | 2024-12-03 19:58:52 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-12-03 19:58:52 +0300 |
commit | 3bed2aeadb7da5070d032f05591a5e4887bdb9bf (patch) | |
tree | 1a81da56be090614c07660f3ffad6cc464dbe0d9 /protocols/JabberG/src/jabber_sasl2.cpp | |
parent | 550c9c86a95b3bc9f98e11a99e376e0a6ec0bf82 (diff) |
code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_sasl2.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_sasl2.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_sasl2.cpp b/protocols/JabberG/src/jabber_sasl2.cpp index 8f3a2fefa8..9ee2d298e1 100644 --- a/protocols/JabberG/src/jabber_sasl2.cpp +++ b/protocols/JabberG/src/jabber_sasl2.cpp @@ -73,8 +73,9 @@ void CJabberProto::OnProcessUpgrade(const TiXmlElement *n, ThreadData *info) pTask = new TScramTask(info, szMechanism, EVP_sha256(), 520); else if (!mir_strcmp(szMechanism, "UPGR-SCRAM-SHA-384")) pTask = new TScramTask(info, szMechanism, EVP_sha384(), 530); - //else if (!mir_strcmp(szMechanism, "UPGR-SCRAM-SHA-512")) - //pTask = new TScramTask(info, szMechanism, EVP_sha512(), 540); + // uncomment those lines when ejabberd will support SHA-512 normally + // else if (!mir_strcmp(szMechanism, "UPGR-SCRAM-SHA-512")) + // pTask = new TScramTask(info, szMechanism, EVP_sha512(), 540); else { debugLogA("Unsupported mechanism for upgrade: %s, skipping", szMechanism); return; |