From: est31 Date: Tue, 21 Jul 2015 16:03:59 +0000 (+0200) Subject: Clarify docs for auth.cpp method X-Git-Tag: 0.4.13~96 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F2942%2Fhead;p=oweals%2Fminetest.git Clarify docs for auth.cpp method --- diff --git a/src/util/auth.cpp b/src/util/auth.cpp index ac5139535..df8940e87 100644 --- a/src/util/auth.cpp +++ b/src/util/auth.cpp @@ -57,9 +57,9 @@ void getSRPVerifier(const std::string &name, } // Get a db-ready SRP verifier -// The salt param is only modifyable by this method so that you can free it -// if it was allocated. You shouldn't use it for other purposes, as you will -// need the contents of salt_len too. +// If the salt param is NULL, one is automatically generated. +// Please free() it afterwards. You shouldn't use it for other purposes, +// as you will need the contents of salt_len too. inline static std::string getSRPVerifier(const std::string &name, const std::string &password, char ** salt, size_t salt_len) {