Commit graph

62 commits

Author SHA1 Message Date
Vysheng
e10ce5aa69 Use tree for peer_name search 2014-01-31 20:03:40 +04:00
Vysheng
f42ef2de5f mtproto-client: do not use TCPQUICKACK in cygwin 2014-01-30 15:45:01 +04:00
vysheng
59e9053910 Deleted aio.h include 2014-01-27 19:10:02 +04:00
antma
ceb9422ae9 add check that BN_is_prime return value is not negative
fix memory leak (BN_clear doesn't release allocated memory)
2014-01-21 18:24:40 +04:00
antma
c91d47839c improve portability by removing rdtsc calls
https://github.com/vysheng/tg/issues/8
2014-01-15 19:29:26 +04:00
antma
eb2bc7f0ff fix #include "config.h" for all source files 2014-01-13 17:05:25 +04:00
vysheng
0a9532dc48 Merge branch 'master' of https://github.com/antma/tg
Conflicts:
	tools.c
2014-01-10 21:16:26 +04:00
antma
afdcd9b7df fix missed inflateEnd call and enhance handling inflate return value 2014-01-10 20:54:47 +04:00
vysheng
feed5229b5 free->tfree. Memory checks, if compiled with -DDEBUG 2014-01-10 18:37:56 +04:00
antma
bb24fba98f check return values of strdup and malloc
add talloc0 function (malloc and zero fill)
check return values of arithmetic openssl BN_* functions
check return values of BN_bin2bn function
remove useless BN_init calls right after BN_new
fix 2 small memory leaks
2014-01-10 15:32:57 +04:00
Vysheng
e416d5cf7e Merge github.com:vysheng/tg 2014-01-02 22:53:58 +04:00
Vysheng
2cfe58c1a9 fixed acks 2014-01-02 22:52:41 +04:00
vysheng
5cde89b5c8 do_rand () renamed to secure_random () 2013-12-25 04:44:36 +04:00
vysheng
f8793376a5 Fixed random on sensible parts (generation auth_key, session_id and keys for secret chats) 2013-12-25 03:42:05 +04:00
vysheng
73b17ee19d Added more checks on g_a and g 2013-12-24 15:29:18 +04:00
Vysheng
59a82bbfe9 Additional checks in DH 2013-12-23 14:45:40 +04:00
Vysheng
89ee6e1002 Support for g!=2 in DH 2013-12-23 14:09:57 +04:00
vysheng
20f1c7629b Merge BSD-fixed from lwhsu 2013-12-20 17:57:00 +04:00
vysheng
6e39eead6f Merge https://github.com/lwhsu/tg 2013-12-20 17:44:30 +04:00
Vysheng
e439bef899 added /read and /history in chat_with_peer mode 2013-12-20 02:50:31 +04:00
vysheng
3b033ea3ff Added dump packets to file 2013-12-18 19:21:49 +04:00
Li-Wen Hsu
bb53f75e2b Make it compile on FreeBSD. 2013-12-17 02:30:36 +08:00
Vysheng
1198159162 Fixed bug 2013-12-06 20:40:52 +04:00
Vysheng
ae29e1d933 Many fixes. 2013-12-02 21:19:08 +04:00
Vysheng
ee1f45ec3d Manty fixes. Mostly binlog for messages 2013-11-30 01:43:56 +04:00
Vysheng
7c1825d1b2 fixed detailed info 2013-11-25 21:21:08 +04:00
Vysheng
2362d88266 added chat info to binlog 2013-11-25 20:13:36 +04:00
Vysheng
6246e67028 Fixed (probable) bug with updateChatParticipants 2013-11-22 21:48:23 +04:00
Vysheng
4c740e0bd4 Fixed binlog. Added state file to binlog 2013-11-22 01:40:31 +04:00
Vysheng
849d6a33a6 Sometimes new binlog works 2013-11-21 23:35:49 +04:00
Vysheng
f85f248a86 Added log level param 2013-11-15 20:14:25 +04:00
Vysheng
9f070a27a4 Fixed assert on profile photo update 2013-11-15 16:59:06 +04:00
Vysheng
f3edaaa346 Partial support for binlog. It now can track user, secret chat and auth updates. 2013-11-15 04:08:24 +04:00
Vysheng
fab86252e1 Supoort for layer 10 2013-11-12 19:47:41 +04:00
vysheng
1c6e84b999 Fixed bug in read config 2013-11-11 22:35:31 +04:00
vysheng
4fdb69a85f Maybe it would compile on mac now 2013-11-11 15:34:45 +04:00
vysheng
92b65f2dc0 Added libconfig to parse config. Something fixed in net 2013-11-08 22:58:28 +04:00
vysheng
6360eeb7dd Fixes some bugs in network 2013-11-07 21:37:12 +04:00
vysheng
d95af09b30 Added queries to add/delete user to group 2013-11-07 04:08:16 +04:00
vysheng
bb1df969fb Some bugfixes. Add small thumb file to sent video 2013-11-07 02:16:46 +04:00
vysheng
a0ba6cc7c3 Many improvements in encrypted chats. Can not send/download encrypted messages, for example 2013-11-05 03:15:24 +04:00
vysheng
180cfd22f2 Partial support for encrypted chats. 2013-11-04 21:34:27 +04:00
Vysheng
05f9d32698 Some code related to encrypted chat. Nothing works yet, but I believe it would work in the nearest future 2013-11-02 21:01:22 +04:00
vysheng
b6085fe801 Somthing fixed. Don't know what 2013-11-01 23:57:57 +04:00
vysheng
a18b898122 id for users and chats renamed to peer_id_t. This will make implementing secure chats and geochats easier 2013-11-01 03:18:34 +04:00
vysheng
c8332f38c7 Fixed interface: show download/upload progress 2013-10-29 02:33:13 +04:00
vysheng
78b5d205d7 fixed bug in fetching change user name from not a contact 2013-10-27 13:25:14 +04:00
Vysheng
352bea698c Interface fixes 2013-10-26 23:57:22 +04:00
Vysheng
177f0ac25a Sometimes client can recover from network loss 2013-10-26 19:32:20 +04:00
Vysheng
138198d0f8 Restart query on bad server salt 2013-10-26 01:08:52 +04:00