Commit Graph

118 Commits

Author SHA1 Message Date
Vysheng
c85f085244 Merge github.com:vysheng/tg
Conflicts:
	main.c
2014-09-09 22:07:30 +04:00
Vysheng
e23f4e3333 Added -U and -G keys to make setuid and setgid at start if started as root 2014-09-09 22:05:56 +04:00
vvaltman
4fe0014a66 Added [-D] (disable output) key 2014-09-09 21:05:36 +04:00
Vysheng
95e9c69b9c Fixed config search 2014-09-09 19:10:01 +04:00
Vysheng
bda16d36be Daemonize options 2014-09-09 19:01:27 +04:00
vvaltman
e179f25fe9 Added PFS support. Parallel auth_key generation. Small bug fixes 2014-08-29 17:33:15 +04:00
vvaltman
ea6af6a163 Fixed name 2014-08-27 01:06:59 +04:00
vvaltman
a00f67c3a8 Added disable_readline. Do not try read stdin, after end of stdin reached 2014-08-26 22:26:00 +04:00
vvaltman
dc38df0694 Updated test lua script 2014-08-26 20:30:30 +04:00
vvaltman
aa4e46f8a3 Fixed args parse 2014-08-25 04:54:12 +04:00
vvaltman
49eb22916b interface updates 2014-08-25 04:11:41 +04:00
vvaltman
e57b7064bb Fixed licenses. libtgl is now distributed under LGPL 2.1+ 2014-08-22 02:02:43 +04:00
Vysheng
e5f524b0a8 fix queries_num 2014-08-22 15:45:16 +04:00
vvaltman
d33d24d1f0 changes 2014-08-21 07:24:52 +04:00
Vysheng
6707c11952 updates 2014-08-21 19:38:51 +04:00
vvaltman
cedc1d17d4 many fixes 2014-08-15 02:16:01 +04:00
Vysheng
e2e7d0c906 fixes 2014-08-15 18:57:43 +04:00
Vysheng
b12ca53816 many updates 2014-08-14 22:03:33 +04:00
vysheng
fe08f0c5e7 more code 2014-08-14 01:31:24 +00:00
Vysheng
bf86f75604 fixes 2014-08-13 19:55:16 +04:00
Vysheng
418cad58d1 Some refactoring 2014-08-13 16:56:55 +04:00
Dennis Koot
50059df3ed better list of options for -h 2014-02-27 10:17:07 +01:00
antma
8b632ed4d4 replace ENABLE_LIBCONFIG by HAVE_LIBCONFIG (use macro AC_CHECK_LIBdefault ACTION-IF-FOUND behavior)
fix unused write result in undefined HAVE_EXECINFO_H case
2014-02-05 15:07:58 +04:00
Vysheng
12e8e5c7b7 Added /etc/telegram/server.pub as default server public key place 2014-02-04 20:35:16 +04:00
Vysheng
57cff060a3 Added -W key to wait dialog list before processing input 2014-02-03 19:50:57 +04:00
Vysheng
051a64fb76 main.c: fixed gcc warning. 2014-02-03 19:26:43 +04:00
vysheng
75ac98863a Update main.c 2014-02-03 16:19:41 +03:00
antma
7a76b66fe2 remove printf from signal handlers
use AC_SEARCH_LIB in configure.ac (shorter code)
replace '-lm -lcrypto -lz' by  @LIBS@ in Makefile.in and AC_CHECK_LIB macros in configure.ac
replace NO_BACKTRACE by HAVE_EXECINFO_H
2014-02-03 16:25:09 +04:00
Vysheng
ec0d7274be main.c: deleted include execinfo if no backtrace needed 2014-01-30 15:49:26 +04:00
Vysheng
50bec2d164 Added cygwin fixes 2014-01-30 15:01:16 +04:00
antma
c4fd38a894 remove useless #define _GNU_SOURCE from not using asprintf sources 2014-01-13 17:12:39 +04:00
antma
e27a27c4a0 fix #include "config.h" for all source files 2014-01-13 17:05:25 +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
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
antma
136dbd0093 checking sizeof (void) at the runtime 2014-01-10 16:30:56 +04:00
antma
4769197f11 fix small memory leak in running_for_first_time (local variable config_directory) 2014-01-10 15:46:46 +04:00
antma
83af542d50 close /etc/passwd file handle right after evaluating home directory 2014-01-10 15:40:28 +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
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
28dd0f0e46 Added dump packets to file 2013-12-18 19:21:49 +04:00
Vysheng
be7ec363ae main: added [-B] key 2013-12-03 15:44:14 +04:00
Vysheng
bfc7a7e157 Merge github.com:vysheng/tg 2013-12-02 21:19:45 +04:00
Vysheng
8a39f039b0 Many fixes. 2013-12-02 21:19:08 +04:00
vysheng
2426f8f7ad main.c: fixed CE on 32-bit systems 2013-12-02 19:11:05 +04:00
Vysheng
12b9882aae fixed binlog problems. Set lock on binlog 2013-11-30 03:15:10 +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
8220fb2c54 Another binlog commit 2013-11-13 01:52:30 +04:00
vysheng
baa1b48158 Merge github.com:vysheng/tg 2013-11-13 01:44:03 +04:00
vysheng
50451ea98f Start add of binlog support 2013-11-13 01:43:42 +04:00
vysheng
acb63fb9ec Fixed errors without libconfig 2013-11-12 15:58:16 +04:00
vysheng
568a0b8ab7 Merge github.com:vysheng/tg 2013-11-12 01:59:54 +04:00
vysheng
3c6043840f started to add binlog 2013-11-12 01:59:36 +04:00
vysheng
e80c87c9bd Fixed bug in read config 2013-11-11 22:35:31 +04:00
vysheng
130b38807a Fixed CE without libconfig 2013-11-11 00:35:08 +04:00
vysheng
6ce15fda97 Added configure script. Some interface fixes 2013-11-10 02:47:19 +04:00
vysheng
c04a0f5d6a Added libconfig to parse config. Something fixed in net 2013-11-08 22:58:28 +04:00
vysheng
923845d668 Partial support for encrypted chats. 2013-11-04 21:34:27 +04:00
Vysheng
d0301b3252 Interface fixes 2013-10-26 23:57:22 +04:00
vysheng
4f494a579c fwd message 2013-10-25 23:50:10 +04:00
vysheng
64ef366f0a Small fix to header 2013-10-25 13:32:10 +04:00
vysheng
f11664c281 Added some fixes required by GPL 2013-10-25 13:28:29 +04:00
vysheng
e5cc589a0f Added GPL-headers to source files 2013-10-23 18:26:17 +04:00
Vysheng
3243c29a8c Big commit 2013-10-12 00:52:20 +04:00
vysheng
f773c0cf18 tab replaced with spaces 2013-10-03 20:10:53 +04:00
vysheng
78f4d71855 Added some files 2013-10-03 16:38:25 +04:00