diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-07-03 10:10:27 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-07-03 10:46:43 -0300 |
| commit | e65dc561acab7a9e49f59777f16cb040c574c64d (patch) | |
| tree | 2206c066b97b1948a4b98647c91a369d3b9863c8 /reference/types.hh | |
| parent | e782274ade8d7307e157a997d6ac3bcaa4130024 (diff) | |
| download | game-e65dc561acab7a9e49f59777f16cb040c574c64d.tar.gz game-e65dc561acab7a9e49f59777f16cb040c574c64d.zip | |
implement `crypto.cc` with OpenSSL + fix config loading
I considered reversing the original `vlong` implementation but
OpenSSL is just simpler, more secure, and most importantly, is
already there. I also made it so the key is now stored in a PEM
file (`tibia.pem`) so it can be easily swapped without re-compiling.
This was the last piece to build and run a working executable,
except that we now need to implement a query manager for the server
to communicate with. I was able to fix a small problem with loading
the config before hitting the problem with the query manager, which
was expected.
The next task should be getting a query manager up and running
before starting phase two of upgrading and fixing the server itself.
Diffstat (limited to 'reference/types.hh')
| -rw-r--r-- | reference/types.hh | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/reference/types.hh b/reference/types.hh deleted file mode 100644 index 978f228..0000000 --- a/reference/types.hh +++ /dev/null @@ -1,40 +0,0 @@ - -struct TDatabasePoolConnection { - TDatabaseConnectionPool *DatabaseConnectionPool; - TDatabaseConnection *DatabaseConnection; - bool TransactionRunning; -}; - -struct TDatabaseConnectionPool { - int NumberOfConnections; - struct TDatabaseSettings DatabaseSettings; - struct TDatabaseConnection **DatabaseConnection; - bool *DatabaseConnectionFree; - struct Semaphore FreeDatabaseConnections; - struct Semaphore DatabaseConnectionMutex; -}; - -// TODO(fusion): Opaque struct? -struct TDatabaseConnection {}; - -struct TPreparedQuery { - int Number; - char *Query; - char *DBTypes; - char *CTypes; - char *Name; -}; - -struct TNameLockOrderData { - ulong GamemasterID; - char GamemasterName[30]; - char CharacterName[30]; - bool OldNameVisible; -}; - -struct TNotationOrderData { - ulong GamemasterID; - char GamemasterName[30]; - char CharacterName[30]; - char Comment[200]; -}; |
