Paul Fariello
4e1ffa6bdb
Log and print outgoing encrypted message
2019-04-10 17:12:31 +02:00
Paul Fariello
0fb27dc496
Add OMEMO message encryption and decryption
2019-04-10 16:03:50 +02:00
Michael Vetter
706af9a900
Update copyright to include 2019
2019-01-22 11:31:45 +01:00
Michael Vetter
64d5f938fd
Fix gcc8 error about strncpy
...
With gcc8 we get the following error when stringop-truncation is on:
```
In function ‘_rotate_log_file’,
inlined from ‘log_msg.part.2’ at src/log.c:201:17:
src/log.c:231:5: error: ‘strncpy’ output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
strncpy(log_file_new, log_file, len);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/log.c: In function ‘log_msg.part.2’:
src/log.c:228:18: note: length computed here
size_t len = strlen(log_file);
^~~~~~~~~~~~~~~~
```
Using memcpy instead of strncpy.
2018-07-06 11:31:20 +02:00
James Booth
250e972b7a
Update copyright
2018-01-21 15:00:02 +00:00
James Booth
b0a989a17f
Recreate chat log when removed
...
fixes #210
2017-06-13 23:22:58 +01:00
James Booth
68a3daedb9
Update Copyright
2017-01-28 17:24:22 +00:00
James Booth
ae003e62fb
Remove copied char* in groupchat_log_chat
2016-07-26 00:40:29 +01:00
James Booth
d5d04756ce
Fix memory leaks
2016-07-25 22:23:54 +01:00
James Booth
a3a73cf003
Move all filepath handling to files.c
2016-07-24 21:49:35 +01:00
James Booth
29452f8f1b
Move xgd functions
2016-07-24 17:12:09 +01:00
James Booth
37742d71b6
Move resource conversions
2016-07-24 16:27:39 +01:00
James Booth
ef942bd27a
Add config/files.c
2016-07-24 16:22:15 +01:00
James Booth
0a57c4de78
Tidy headers
2016-07-24 15:43:51 +01:00
James Booth
e8fc80f5c1
Update GPL link in headers
2016-07-24 01:14:49 +01:00
James Booth
d1c71e98f4
Move connection fulljid function
2016-05-06 01:12:54 +01:00
James Booth
88f423afea
Rename jabber_ functions
2016-05-06 00:53:03 +01:00
James Booth
e53e94f1e2
Updated copyright
2016-02-14 22:54:46 +00:00
James Booth
dd11334b06
Applied coding style to src/
2015-10-26 00:52:33 +00:00
James Booth
b266e4d035
Pass delay timestamp to all incoming chat events
2015-09-08 20:18:31 +01:00
James Booth
dea10ecfdc
Dereference timestamp on chat logging
2015-08-09 01:24:15 +01:00
James Booth
dd206ef637
WIP fix for #516 , needs memory cleanup
2015-06-29 23:48:41 +01:00
Dmitry Podgorny
e831410669
log: Introduced stderr log handler
...
This handler redirects stderr output to a pipe and gathers logs from the
read end.
The handler is called from main loop, therefore, if a function prints logs
to stderr they will be put to log file only after function returns.
2015-06-23 20:52:04 +00:00
James Booth
3d2f999efb
Added PGP logging preferences
2015-06-21 21:42:58 +01:00
James Booth
41724218c0
Use null check convention in log.c
2015-05-04 23:28:34 +01:00
James Booth
8944a3b5bb
Move common chat logging code to log.c
2015-03-15 23:19:00 +00:00
James Booth
b3be26a214
Updated copyright
2015-02-10 23:16:09 +00:00
James Booth
22b92c7514
Used g_hash_table_destroy to free logs
2015-02-10 19:53:34 +00:00
James Booth
bb3f1b0909
Set file permissions for logs
2014-10-18 21:41:39 +01:00
James Booth
f9737251a6
Added license exemption for OpenSSL to source headers
2014-08-24 20:57:39 +01:00
James Booth
186cac34de
Fixed memleak in chat log history
2014-06-27 00:38:53 +01:00
James Booth
d6e92f62dc
Fixed cppcheck warnings
2014-04-26 00:36:36 +01:00
James Booth
67a109927c
Added /log where command
2014-04-13 22:20:15 +01:00
James Booth
c3418a2909
Added /log shared setting
...
Issue #170
2014-04-13 21:56:51 +01:00
James Booth
a4a23fdf68
Added /log rotate option
2014-04-13 20:41:11 +01:00
James Booth
26726b207a
Updated copyright
2014-03-09 01:18:19 +00:00
James Booth
6dbea7e16f
Add level to log output
2014-01-27 22:48:52 +00:00
Dmitry Podgorny
2fc588be17
fixed segfault when home directory doesn't exist
2014-01-03 20:43:07 +02:00
James Booth
ce3b99f577
Fixed memory leak in groupchat logging
...
issue #226
2013-09-23 01:37:57 +01:00
James Booth
25b274b8d1
Fixed memory leaks in chat logs
...
issue #226
2013-09-23 01:05:07 +01:00
Dmitry Podgorny
1ef361684f
tz should be cached in static variable
2013-08-24 00:37:00 +03:00
Dmitry Podgorny
c94495bc31
avoid double allocaion of session_started
2013-08-24 00:34:47 +03:00
Dmitry Podgorny
28ec3334cf
refactored logging
...
Use ftell instead of stat syscall to increase portability.
2013-08-03 14:31:36 +03:00
James Booth
8c5866ff52
Added groupchat logs
...
closes #168
2013-05-05 00:16:10 +01:00
James Booth
0030ae5890
Default to INFO when creating log
2013-02-03 00:30:24 +00:00
James Booth
c90c83f7e1
Removed log function to log.c
2013-02-03 00:27:43 +00:00
James Booth
3d0e0d7ea4
Removed files.c
2013-02-02 22:33:05 +00:00
James Booth
c58aca5640
Moved function to get log dir to log.c
2013-02-02 22:18:08 +00:00
James Booth
0b4c464919
Moved function to get chat log dir to log.c
2013-02-02 22:12:35 +00:00
James Booth
9d34c41227
Added config dir to source
2013-02-02 21:59:29 +00:00