aboutsummaryrefslogtreecommitdiff
path: root/src/util/auth.h
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2016-05-30 23:27:48 +1000
committerCraig Robbins <kde.psych@gmail.com>2016-05-30 23:28:08 +1000
commit27db92925261ed6646d0a1c0512711ab3aeb5fb8 (patch)
tree3e104d027f0d1c25d49c02d5845591ab225dd6bd /src/util/auth.h
parent4134d8ad13c371820a485a9752b1197a8d7007f3 (diff)
downloadminetest-27db92925261ed6646d0a1c0512711ab3aeb5fb8.tar.gz
minetest-27db92925261ed6646d0a1c0512711ab3aeb5fb8.tar.bz2
minetest-27db92925261ed6646d0a1c0512711ab3aeb5fb8.zip
Add minetest.check_password_entry callback
Gives a convenient way to check a player's password. This entirely bypasses the SRP protocol, so should be used with great care. This function is not intended to be used in-game, but solely by external protocols, where no authentication of the minetest engine is provided, and also only for protocols, in which the user already gives the server the plaintext password. Examples for good use are the classical http form, or irc, an example for a bad use is a password change dialog inside formspec. Users should be aware that they lose the advantages of the SRP protocol if they enter their passwords for servers outside the normal entry box, like in in-game formspec menus, or through irc /msg s, This patch also fixes an auth.h mistake which has mixed up the order of params inside the decode_srp_verifier_and_salt function. Zeno-: Added errorstream message for invalid format when I committed
Diffstat (limited to 'src/util/auth.h')
-rw-r--r--src/util/auth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/auth.h b/src/util/auth.h
index 1fd6ab453..7cdc7d74d 100644
--- a/src/util/auth.h
+++ b/src/util/auth.h
@@ -45,6 +45,6 @@ std::string encode_srp_verifier(const std::string &verifier,
/// Reads the DB-formatted SRP verifier and gets the verifier
/// and salt components.
bool decode_srp_verifier_and_salt(const std::string &encoded,
- std::string *salt, std::string *bytes_v);
+ std::string *verifier, std::string *salt);
#endif