Skip to content
Snippets Groups Projects
  1. Oct 06, 2016
  2. Aug 11, 2016
    • Rogier's avatar
      Use the standard to_string() functions for C++11 (#4279) · b11720af
      Rogier authored
      If compiling according to a C++ version before C++11, then define
      std::to_string ourselves.
      
      Add a to_wstring version as well
      
      As std::to_string() for floating point types uses %.6f as floating
      point format converter, instead of %G, it needs special care.
      
      To preserve ftos() behavior (which is expected to use the %G format
      converter), it no longer uses to_string().
      b11720af
  3. Aug 10, 2016
  4. Jun 11, 2016
  5. May 31, 2016
  6. May 30, 2016
    • est31's avatar
      Add minetest.check_password_entry callback · 27db9292
      est31 authored
      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
      27db9292
  7. Apr 23, 2016
  8. Apr 10, 2016
  9. Mar 20, 2016
    • ShadowNinja's avatar
      Clean up Strfnd · 93887043
      ShadowNinja authored
      Changes:
        * Fix indentation.
        * Pass strings by const reference.
        * Merge Strfnd and WStrfnd into one class instead of copying them.
        * Remove trailing spaces.
        * Fix variable names.
        * Move to util.
        * Other miscellaneous style fixes.
      93887043
  10. Mar 15, 2016
  11. Mar 07, 2016
  12. Feb 18, 2016
  13. Feb 11, 2016
  14. Dec 29, 2015
  15. Nov 08, 2015
  16. Nov 06, 2015
    • est31's avatar
      Add server side ncurses terminal · 5e507c98
      est31 authored
      This adds a chat console the server owner can use for administration
      or to talk with players.
      It runs in its own thread, which makes the user interface immune to
      the server's lag, behaving just like a client, except timeout.
      As it uses the same console code as the f10 console, things like nick
      completion or a scroll buffer basically come for free.
      The terminal itself is written in a general way so that adding a
      client version later on is just about implementing an interface.
      
      Fatal errors are printed after the console exists and the ncurses
      terminal buffer gets cleaned up with endwin(), so that the error still
      remains visible.
      
      The server owner can chose their username their entered text will
      have in chat and where players can send PMs to.
      Once the username is secured with a password to prevent anybody to
      take over the server, the owner can execute admin tasks over the
      console.
      
      This change includes a contribution by @kahrl who has improved ncurses
      library detection.
      5e507c98
  17. Nov 03, 2015
  18. Nov 02, 2015
  19. Oct 27, 2015
  20. Oct 15, 2015
  21. Oct 14, 2015
  22. Sep 30, 2015
    • est31's avatar
      Fix some SRP issues · 0bf1984d
      est31 authored
      -> Remove memory allocation bugs
      -> Merge changes from upstream, enabling customizeable memory allocation
      0bf1984d
  23. Aug 24, 2015
    • ShadowNinja's avatar
      Clean up threading · e4bff8be
      ShadowNinja authored
        * Rename everything.
          * Strip J prefix.
          * Change UpperCamelCase functions to lowerCamelCase.
        * Remove global (!) semaphore count mutex on OSX.
        * Remove semaphore count getter (unused, unsafe, depended on internal
          API functions on Windows, and used a hack on OSX).
        * Add `Atomic<type>`.
        * Make `Thread` handle thread names.
        * Add support for C++11 multi-threading.
        * Combine pthread and win32 sources.
        * Remove `ThreadStarted` (unused, unneeded).
        * Move some includes from the headers to the sources.
        * Move all of `Event` into its header (allows inlining with no new includes).
        * Make `Event` use `Semaphore` (except on Windows).
        * Move some porting functions into `Thread`.
        * Integrate logging with `Thread`.
        * Add threading test.
      e4bff8be
  24. Aug 19, 2015
  25. Aug 06, 2015
Loading