• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

C++ RSA decryption crashes server

Sajgon

Advanced OT User
Joined
Mar 10, 2017
Messages
282
Solutions
3
Reaction score
237
Location
Sweden
Hello friends!

I recently migrated from TFS 1.0 to latest 1.3 but having an issue with the RSA decryption ,
I am using version 7.7 and my server compiles with no problems but crashes when connecting with my OTClient.

(The below file is from vcpkg/buildtrees/cryptopp/src/TOPP_8_2_0../rsa.cpp)
1584618368471.png

This is the TFS function causing the crash -> otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/src/rsa.cpp#L32)

I have tried to put the code in above function in a try-catch and it doesn't crash anymore but doesn't let me login (ERROR 10054).
(Source: Linux - Login with Client 12 crash the server (https://otland.net/threads/login-with-client-12-crash-the-server.266116/#post-2571800))

I have a key.pem file in main directory same as this -> otland/forgottenserver (https://github.com/otland/forgottenserver/blob/master/key.pem)

This is how my OTSERV_RSA looks like client-side otland/otclient (https://github.com/otland/otclient/blob/master/modules/gamelib/const.lua#L227)

I am clueless for now, any ideas?

Thank you in advance.
 
Last edited:
Back
Top