Commit Graph

164 Commits

Author SHA1 Message Date
antma
8b4085ff93 AES_KEY structure clean up 2014-01-23 19:49:57 +04:00
vysheng
71e5991c59 Fixed load audio 2014-01-17 18:16:35 +04:00
antma
ba58659420 fix sending a lot of spaces in version string 2014-01-14 14:46:13 +04:00
antma
e27a27c4a0 fix #include "config.h" for all source files 2014-01-13 17:05:25 +04:00
antma
5de0d75942 add functions tstrndup (auto check return value of strndup calls) 2014-01-13 16:26:48 +04:00
antma
2724878bfc fix small memory leaks in the function do_send_photo for the cases of invalid, empty or large file 2014-01-13 16:09:33 +04:00
Vysheng
6b0d354e69 Added partial lua support 2014-01-12 04:43:29 +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
antma
d2460a8a90 enhance portability (replace void* by char*)
When using void pointers in calculations, the behaviour is undefined. Arithmetic operations on 'void *' is a GNU C extension, which defines the 'sizeof(void)' to be 1.
2014-01-10 19:04:27 +04:00
vysheng
f06d3c1625 free->tfree. Memory checks, if compiled with -DDEBUG 2014-01-10 18:37:56 +04:00
vysheng
ccc76dd982 Fixed CE. Fixed tree.h to use talloc 2014-01-10 17:03:47 +04:00
antma
20d8954732 replace sprintf call with snprintf for open image command 2014-01-10 16:15:59 +04:00
antma
35f981d519 replace sprintf call with snprintf for downloaded part name 2014-01-10 16:05:39 +04:00
antma
c15579713c add length modifier to the format for strings in sprintf call 2014-01-10 15:59:48 +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
780320ee5d Fixed CE 2013-12-25 13:07:10 +04:00
vysheng
874aace355 Some other things changed to secure_random 2013-12-25 12:56:46 +04:00
vysheng
484e1c30e8 Fixed secure random. 2013-12-25 12:35:13 +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
f11ae1983f Support for layer 11 2013-12-24 04:57:01 +04:00
Vysheng
dbffe269fa DH: added check for bad prime in encr chats 2013-12-23 15:13:43 +04:00
Vysheng
2ddd7a1d71 Fixed check g_a in encr chats 2013-12-23 15:10:53 +04:00
Vysheng
efc7673ac8 Merge github.com:vysheng/tg 2013-12-23 14:46:16 +04:00
Vysheng
664e6e1549 Support for g!=2 in DH 2013-12-23 14:09:57 +04:00
vysheng
069fe471ed Added safe_quit query. Useful in pipe mode 2013-12-21 15:53:32 +04:00
Vysheng
c9346a75f3 Fixed bug in document loading 2013-12-20 19:45:59 +04:00
Vysheng
41fc7c2278 added /read and /history in chat_with_peer mode 2013-12-20 02:50:31 +04:00
Vysheng
9ebb3f7370 Added chat_with_peer command 2013-12-06 21:14:41 +04:00
Vysheng
12b9882aae fixed binlog problems. Set lock on binlog 2013-11-30 03:15:10 +04:00
Vysheng
8bc40adffb Merge github.com:vysheng/tg 2013-11-30 01:44:16 +04:00
Vysheng
725c6669a7 Manty fixes. Mostly binlog for messages 2013-11-30 01:43:56 +04:00
Dann Luciano
a1a34b8a47 Added open support in OS X. 2013-11-29 19:33:05 -02:00
Vysheng
d96450cd09 Added [offline] modifier 2013-11-25 21:16:34 +04:00
Vysheng
168c6b7a05 added chat info to binlog 2013-11-25 20:13:36 +04:00
Vysheng
f4ac638c72 Fixed binlog. Added state file to binlog 2013-11-22 01:40:31 +04:00
Vysheng
bf94fee0e0 Merge github.com:vysheng/tg 2013-11-21 23:36:05 +04:00
Vysheng
06dee8bdbd Sometimes new binlog works 2013-11-21 23:35:49 +04:00
vysheng
bfeba749ab Updated: layer10 2013-11-19 21:02:02 +04:00
vysheng
a8cc367a16 Merge github.com:vysheng/tg
Conflicts:
	interface.c
2013-11-19 21:01:18 +04:00
Vysheng
fe0e4fed8f Fixed small bugs. Fixed login 2013-11-16 17:04:53 +04:00
vysheng
0061aa6d77 Merge github.com:vysheng/tg 2013-11-15 14:37:34 +04:00
vysheng
33d15ff1c1 Added full support for layer 10 2013-11-15 14:37:14 +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
0d99482877 Added files for binlog 2013-11-13 04:11:25 +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
faaf589ef4 fixed small bug in msg send to not a contact 2013-11-11 02:33:03 +04:00
vysheng
8193960ccf Added queries online/offline/contacts_search 2013-11-09 13:51:07 +04:00
vysheng
c04a0f5d6a Added libconfig to parse config. Something fixed in net 2013-11-08 22:58:28 +04:00
vysheng
a064540223 Some fixes in network 2013-11-07 22:31:58 +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
c509422ce5 Added global_search query 2013-11-07 03:12:40 +04:00
vysheng
9eadb3e9dc Fixed interface in suggested contacts query 2013-11-07 02:52:00 +04:00
vysheng
9361621c53 Add suggested contacts query 2013-11-07 02:46:17 +04:00
vysheng
a9062675e7 Merge github.com:vysheng/tg 2013-11-07 02:18:04 +04:00
vysheng
c713d80ded Some bugfixes. Add small thumb file to sent video 2013-11-07 02:16:46 +04:00
Vysheng
ef5d808b68 Changed colors in visualize key 2013-11-06 18:00:31 +04:00
vysheng
143fda9e58 upload big file functions 2013-11-06 14:07:36 +04:00
vysheng
382e8d7545 Deleted debug output 2013-11-06 02:27:14 +04:00
vysheng
d0adb13107 Support for chat create 2013-11-06 02:24:26 +04:00
vysheng
0754212e70 Some fixes with download/upload in encrypted chats 2013-11-05 03:46:12 +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
e4dc0e08b4 Fixed get hostory to encrypted messages 2013-11-04 21:47:32 +04:00
vysheng
923845d668 Partial support for encrypted chats. 2013-11-04 21:34:27 +04:00
vysheng
c9c1641b70 Fixed compilation error 2013-11-02 02:24:59 +04:00
vysheng
0819dcf09d Somthing fixed. Don't know what 2013-11-01 23:57:57 +04:00
Vysheng
b70f868e0b Added search query. But it seems, that search does not use stemmer 2013-11-01 19:02:28 +04:00
vysheng
cdea9ca872 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
f4dcc50946 Added add_contact/rename_contact queries 2013-10-30 14:10:16 +04:00
vysheng
c4e3052db6 Fixed inerface 2013-10-30 04:08:30 +04:00
vysheng
3be908e7da Fixed interface: show download/upload progress 2013-10-29 02:33:13 +04:00
vysheng
16b8105df8 Fixed fail. Removed some debug output 2013-10-28 21:51:54 +04:00
vysheng
14fd4006ba Changed authorization. Sorry, if that fails anything. Now supports download of photos from other DC 2013-10-28 03:10:40 +04:00
vysheng
62f7295ff7 Load photo/video. Now works only with current DC. 2013-10-27 23:35:02 +04:00
Vysheng
a51c8214cc Sometimes client can recover from network loss 2013-10-26 19:32:20 +04:00
Vysheng
d7b25cca90 Support for chat rename 2013-10-26 02:33:17 +04:00
Vysheng
ac882621a6 Fixed signin 2013-10-26 01:58:01 +04:00
Vysheng
e0fff96426 Restart query on bad server salt 2013-10-26 01:08:52 +04:00
vysheng
4f494a579c fwd message 2013-10-25 23:50:10 +04:00
vysheng
ce91968320 Fixed alarm 2013-10-25 21:40:03 +04:00
vysheng
608c2c2608 Merge github.com:vysheng/tg 2013-10-25 21:29:14 +04:00
Vysheng
3e62e525e7 Merge github.com:vysheng/tg 2013-10-25 21:29:42 +04:00
vysheng
e20f9e498f Added user_info query 2013-10-25 21:29:02 +04:00
vysheng
f11664c281 Added some fixes required by GPL 2013-10-25 13:28:29 +04:00
Vysheng
9a494d8f09 added #num to contacts with duplicate names 2013-10-25 02:56:11 +04:00
Vysheng
2961f108ec Ask dialog list at start. Try resend query on timeout 2013-10-25 02:32:13 +04:00
Vysheng
eeb7f6d3fd Fixed bug in trees, causing fails 2013-10-25 02:16:57 +04:00
vysheng
d8aaf0c804 Added some debug info 2013-10-24 23:48:51 +04:00
vysheng
3fc3d33130 Added help. FIxed get dialog list 2013-10-24 22:22:11 +04:00
Vysheng
7f47948cc6 Fixed chat_info query 2013-10-24 21:04:44 +04:00
vysheng
f9cf392960 Fixed some bugs. Fixed interface 2013-10-24 11:38:32 +04:00
Vysheng
045467b0df Fixed needed msg len 2013-10-23 21:56:29 +04:00
Vysheng
d289aeb897 Mark messages as read after history query 2013-10-23 19:18:44 +04:00
vysheng
e5cc589a0f Added GPL-headers to source files 2013-10-23 18:26:17 +04:00
vysheng
73cdb88057 Merge github.com:vysheng/tg 2013-10-23 14:26:07 +04:00