29 Commits

Author SHA1 Message Date
Marcin Michalski
f0d7963883 Fix compilation with GMP 2022-04-28 14:09:08 +02:00
Konrad Kuśnierz
63f5351016
Merge pull request #1021 from edubart/openssl-gmp
Support for OpenSSL with a fallback to GMP
2020-03-31 17:09:45 +02:00
Sposito
fbcf0a3eea Update copyright year for 2020 2019-12-31 10:07:29 +00:00
Konrad Kuśnierz
88e271c4ad Minor GMP typos 2019-03-09 23:55:07 +01:00
Konrad Kuśnierz
c9845a36fc Support for OpenSSL with a fallback to GMP 2019-03-09 23:21:02 +01:00
Konrad Kuśnierz
8b8e7312ea
Fix code style 2019-03-06 09:41:37 +01:00
Konrad Kuśnierz
fd3db800fe
Fix default init of BIGNUM to nullptr 2019-03-05 09:29:13 +01:00
Konrad Kuśnierz
9186ac5321
Follow OTClient code style 2019-03-05 00:44:18 +01:00
divinity76
79e31cb041
OpenSSL >= 1.1.0 compatibility
OpenSSL did some otclient-breaking changes around 1.1.0, 
this patch should work on both < and >= 1.1.0
2018-12-06 00:51:16 +01:00
Eduardo Bart
8b161e1a07 Priorize OpenSSL 1.0 in cmake, warning fixes 2017-11-04 09:03:57 -02:00
Bruno Minervino
882be286d9 Update copyright year for 2017 2017-01-13 08:47:07 -02:00
Ranieri Althoff
2f1f62a916
Update copyright year for 2016 2016-07-09 22:11:34 -03:00
Nailson
2f3540c996 Small optimization. 2015-11-30 19:49:21 -03:00
Ranieri Althoff
058b926a94 Replace deprecated function 2015-07-24 20:52:31 -03:00
Gabriel Pedro
04b516a1a0 Update copyright for 2015 2015-03-04 10:36:51 -04:00
BenDol
d7429c201c Started 1050 implementation and fix ups:
* Dat now loads (new animations aren't yet functional).
* Fixed the way we reference client versions.

TODO: Write new animation functionality & find out protocol changes.
2014-08-03 10:02:28 +12:00
BenDol
547b18db9a Update copyright for 2014 2014-04-01 18:36:42 +13:00
Eduardo Bart
4751941e4f Improve encrypt/decrypt algorithms 2013-01-29 11:51:15 -02:00
Eduardo Bart
26c6217bc3 Fix change of RSA keys 2013-01-29 10:37:15 -02:00
Eduardo Bart
b7eef97239 Add flexibility in login packets
* It's now possible to add custom data in the login packet
* Add utility funciton to generate RSA keys
* Make the protocol able to use RSA keys with 2048 bits or more
2013-01-28 20:52:03 -02:00
Eduardo Bart
07959ddc04 Fix a vulnerability in password encryption
* There was an error in the encryption used to save passwords,
  now it's really harder to decrypt the password from the config file
* Other minor changes
2013-01-26 14:38:48 -02:00
Eduardo Bart
122577a916 Just rename some files
* Fix a server ping issue
2013-01-08 16:32:05 -02:00
Eduardo Bart
bdbce01c97 Add uid param to stats module 2012-08-22 22:50:42 -03:00
Henrique Santiago
4e8afab335 Fix rsa change, messagebox and remove lua variable from c++ 2012-08-14 17:37:28 -03:00
Eduardo Bart
521adc308b Fix broken compilation in mingw32 2012-08-04 12:36:23 -03:00
Henrique Santiago
156ab9b879 More SHA encoding functions and add missing copyright 2012-08-04 11:37:55 -03:00
Henrique Santiago
fb7ab21e71 Move RSA class to Crypt 2012-08-04 10:54:35 -03:00
Henrique Santiago
4e0642c814 Removed GMP and added OpenSSL. Rsa class might be moved to Crypto later. 2012-08-03 13:02:01 -03:00
Eduardo Bart
e5000fa577 encrypt password and account number
* the encryption uses a unique machine key, this means that if anyone steals config.otml with a saved password,
he will not be able to decrypt the password without the machine UUID key
* the encrypt uses a simple XOR encryption method, encoded with base64 and adler32 summing
2012-06-04 09:38:25 -03:00