aboutsummaryrefslogtreecommitdiff
path: root/build/android/app/build.gradle
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2021-03-07 11:35:53 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2021-03-07 17:18:02 +0100
commit176f5866cbc8946c55a0a9bd0978a804ad310211 (patch)
tree096ab9a1f1cbf7bbcea2e64fdb5c4d4bed462e86 /build/android/app/build.gradle
parentfc864029b9635106a5390aa09d227d7dac31d1a5 (diff)
downloadminetest-176f5866cbc8946c55a0a9bd0978a804ad310211.tar.gz
minetest-176f5866cbc8946c55a0a9bd0978a804ad310211.tar.bz2
minetest-176f5866cbc8946c55a0a9bd0978a804ad310211.zip
Protect dropping from far node inventories
Also changes if/if to switch/case
Diffstat (limited to 'build/android/app/build.gradle')
0 files changed, 0 insertions, 0 deletions
'n130' href='#n130'>130 131 132 133 134 135 136 137
/*
Minetest
Copyright (C) 2015, 2016 est31 <MTest31@outlook.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#include <algorithm>
#include <string>
#include "auth.h"
#include "base64.h"
#include "sha1.h"
#include "srp.h"
#include "util/string.h"
#include "debug.h"

// Get an sha-1 hash of the player's name combined with
// the password entered. That's what the server uses as
// their password. (Exception : if the password field is
// blank, we send a blank password - this is for backwards
// compatibility with password-less players).
std::string translate_password(const std::string &name,
	const std::string &password)
{