mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Make early protocol auth mechanism generic, and add SRP
Adds everything needed for SRP (and everything works too), but still deactivated, as protocol v25 init packets aren't final yet. Can be activated by changing the LATEST_PROTOCOL_VERSION header to 25 inside networkprotocol.h.
This commit is contained in:
parent
181f7baa45
commit
82e35edff5
25 changed files with 3351 additions and 309 deletions
|
@ -41,8 +41,10 @@ public:
|
|||
u16 getPeerId() { return m_peer_id; }
|
||||
u16 getCommand() { return m_command; }
|
||||
|
||||
// Data extractors
|
||||
// Returns a c-string without copying.
|
||||
// A better name for this would be getRawString()
|
||||
char* getString(u32 from_offset);
|
||||
// major difference to putCString(): doesn't write len into the buffer
|
||||
void putRawString(const char* src, u32 len);
|
||||
|
||||
NetworkPacket& operator>>(std::string& dst);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue