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