Commit Graph

69 Commits

Author SHA1 Message Date
Vysheng
337be90978 many changes 2014-08-12 19:15:04 +04:00
vysheng
811df367cd Updates 2014-08-12 09:59:59 +00:00
Dennis Koot
a8affb9f78 use the right .pub file since commit #ff14a08d53ac9e223ffada8a41e69ebb673aa7d7 changed tg.pub to tg-server.pub 2014-03-21 16:34:06 +01:00
mk-pmb
ff14a08d53 Enhance naming to show that the pubkey is the server's.
While I'm at it, also label the magic constants for prng_seed
to avoid confusion with srand(0).
2014-03-11 15:10:19 +01:00
vysheng
447e094cfa added support for update_dc 2014-03-07 23:15:57 +04:00
Dmitrij D. Czarkoff
f50ae8a80f Added support for OpenBSD 2014-02-25 16:42:37 +01:00
Vysheng
12e8e5c7b7 Added /etc/telegram/server.pub as default server public key place 2014-02-04 20:35:16 +04:00
Vysheng
33d25bab99 Use tree for peer_name search 2014-01-31 20:03:40 +04:00
Vysheng
a52b55fef9 mtproto-client: do not use TCPQUICKACK in cygwin 2014-01-30 15:45:01 +04:00
vysheng
408c51e58f Deleted aio.h include 2014-01-27 19:10:02 +04:00
antma
364fe4ebe4 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
22c1a41109 improve portability by removing rdtsc calls
https://github.com/vysheng/tg/issues/8
2014-01-15 19:29:26 +04:00
antma
e27a27c4a0 fix #include "config.h" for all source files 2014-01-13 17:05:25 +04:00
vysheng
77f56cfd57 Merge branch 'master' of https://github.com/antma/tg
Conflicts:
	tools.c
2014-01-10 21:16:26 +04:00
antma
286ffe8c72 fix missed inflateEnd call and enhance handling inflate return value 2014-01-10 20:54:47 +04:00
vysheng
f06d3c1625 free->tfree. Memory checks, if compiled with -DDEBUG 2014-01-10 18:37:56 +04:00
antma
3795a77618 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
de70e4314c Merge github.com:vysheng/tg 2014-01-02 22:53:58 +04:00
Vysheng
3c629b2263 fixed acks 2014-01-02 22:52:41 +04:00
vysheng
7a5fa39f84 do_rand () renamed to secure_random () 2013-12-25 04:44:36 +04:00
vysheng
b2ba81e761 Fixed random on sensible parts (generation auth_key, session_id and keys for secret chats) 2013-12-25 03:42:05 +04:00
vysheng
c496266598 Added more checks on g_a and g 2013-12-24 15:29:18 +04:00
Vysheng
1dcbce52e8 Additional checks in DH 2013-12-23 14:45:40 +04:00
Vysheng
664e6e1549 Support for g!=2 in DH 2013-12-23 14:09:57 +04:00
vysheng
5cae1a7f3d Merge BSD-fixed from lwhsu 2013-12-20 17:57:00 +04:00
vysheng
29ed574e3c Merge https://github.com/lwhsu/tg 2013-12-20 17:44:30 +04:00
Vysheng
41fc7c2278 added /read and /history in chat_with_peer mode 2013-12-20 02:50:31 +04:00
vysheng
28dd0f0e46 Added dump packets to file 2013-12-18 19:21:49 +04:00
Li-Wen Hsu
efdaafe0b2 Make it compile on FreeBSD. 2013-12-17 02:30:36 +08:00
Vysheng
2c9e51b4af Fixed bug 2013-12-06 20:40:52 +04:00
Vysheng
8a39f039b0 Many fixes. 2013-12-02 21:19:08 +04:00
Vysheng
725c6669a7 Manty fixes. Mostly binlog for messages 2013-11-30 01:43:56 +04:00
Vysheng
d095e607c2 fixed detailed info 2013-11-25 21:21:08 +04:00
Vysheng
168c6b7a05 added chat info to binlog 2013-11-25 20:13:36 +04:00
Vysheng
976c23f3ed Fixed (probable) bug with updateChatParticipants 2013-11-22 21:48:23 +04:00
Vysheng
f4ac638c72 Fixed binlog. Added state file to binlog 2013-11-22 01:40:31 +04:00
Vysheng
06dee8bdbd Sometimes new binlog works 2013-11-21 23:35:49 +04:00
Vysheng
78f3e7aa31 Added log level param 2013-11-15 20:14:25 +04:00
Vysheng
bbe5222651 Fixed assert on profile photo update 2013-11-15 16:59:06 +04:00
Vysheng
8ad5053c66 Partial support for binlog. It now can track user, secret chat and auth updates. 2013-11-15 04:08:24 +04:00
Vysheng
a11c19eca0 Supoort for layer 10 2013-11-12 19:47:41 +04:00
vysheng
e80c87c9bd Fixed bug in read config 2013-11-11 22:35:31 +04:00
vysheng
65edc1789b Maybe it would compile on mac now 2013-11-11 15:34:45 +04:00
vysheng
c04a0f5d6a Added libconfig to parse config. Something fixed in net 2013-11-08 22:58:28 +04:00
vysheng
433ce1459a Fixes some bugs in network 2013-11-07 21:37:12 +04:00
vysheng
18bc09b201 Added queries to add/delete user to group 2013-11-07 04:08:16 +04:00
vysheng
c713d80ded Some bugfixes. Add small thumb file to sent video 2013-11-07 02:16:46 +04:00
vysheng
cce9841947 Many improvements in encrypted chats. Can not send/download encrypted messages, for example 2013-11-05 03:15:24 +04:00
vysheng
923845d668 Partial support for encrypted chats. 2013-11-04 21:34:27 +04:00
Vysheng
9dd3627afa 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