mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02: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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user