Alexey Sokolov
85984ee4be
Merge pull request #1277 from xnrand/master
...
Add network-specific settings for cert validation
2016-08-20 12:08:41 +01:00
Alexey Sokolov
f1ef8c79db
Fix cygwin build
2016-07-20 00:19:19 +01:00
Tor Arne Vestbø
4d5724eb0a
Add OnPrivBufferStarting/Ending signals, similar to Chan buffers
...
Allows hooking into query buffer playback before and after all the
lines of the query buffer are replayed. The EModRet return value
has no effect at the moment, but may be used in the future to e.g.
prevent playback. The Chan version of these signals use EModRet to
skip emitting the status message, but not the whole playback.
2016-07-13 15:15:56 +02:00
Tor Arne Vestbø
02bfb9eaf5
Centralize logic to get current server time
...
A few different implementations of computing the current time were
spread out through the code base, most of them using gettimeofday().
This centralizes the logic in CUtil::GetTime() for easier maintenance,
and also allows all call sites to get the benefit of the clock_gettime()
code path on systems that support it.
2016-07-06 01:16:15 +02:00
xnrand
409ed4b6bc
Add network-specific config for cert validation
...
Added the following two network-specific configuration options that can
be changed via controlpanel or webadmin:
* TrustAllCerts: Will trust ALL certificates when enabled, effectively
disabling TLS certificate validation.
Default value: false
* TrustPKI: Whether or not to trust PKI-valid certificates. Setting this
to false will make znc trust only trusted certificates added by the
user.
Default value: true
With default values, behavior is exactly the same as before.
This is based on the work of Roelf Wichertjes. See YourBNC/znc@5c747598 .
See znc/znc#866 .
2016-05-20 01:17:26 +02:00
Adam
6bde0fc270
Add config write delay setting
2016-03-26 13:34:02 -04:00
Alexey Sokolov
8893b90e3a
Modules web subpages should have translateable titles
2016-02-24 21:31:38 +00:00
Alexey Sokolov
8eeeaf71a0
Add framework for translating ZNC to different languages
2016-01-31 20:09:19 +00:00
Alexey Sokolov
561a18054c
Yet another attempt to use CMake
2016-01-15 10:50:33 +00:00
Alexey Sokolov
1f226d2ade
Add test for #1229 and actually fix it.
2016-01-09 18:00:47 +00:00
Alexey Sokolov
4fe4a45dd6
Disable legacy encoding mode when modpython is loaded.
...
Python is not happy when using non-unicode text as str.
Fix #1229
2016-01-09 14:18:24 +00:00
Ondřej Nový
6881ca5b8f
Fixed few misspellings
2016-01-05 20:45:08 +01:00
Falk Seidel
8f73840e74
Welcome to 2016
...
🎆 Happy 2016 🎆
2016-01-01 20:11:21 +01:00
Alexey Sokolov
79e979e5cd
Fix tabs/spaces inside comments
2015-12-07 01:07:45 +00:00
Alexey Sokolov
d185d6f22d
clang-format: switch tabs to spaces
...
I like tabs, but I have to admit that spaces make source code more
consistent, because every editor/viewer tends to render tabs differently :(
2015-12-07 00:53:30 +00:00
Alexey Sokolov
3861b6a583
Fix several comments broken by clang-format
2015-12-07 00:53:01 +00:00
Alexey Sokolov
33b0627d75
Add clang-format configuration.
...
For now, it uses tabs like before, to make the diff easier to read/check.
One of following commits will switch it to spaces.
2015-12-07 00:53:01 +00:00
Alexey Sokolov
582cd635f5
Fix --disable-tdns (thanks kerio)
2015-12-06 12:36:16 +00:00
Alexey Sokolov
d45743e0a2
Merge pull request #1174 from DarthGandalf/thread
...
Rework signal handling and use C++11 threads.
2015-12-06 00:53:58 +00:00
Alexey Sokolov
9c48119897
Use C++11 threads instead of custom pthread wrappers.
...
Signal handling of CThread was handled in previous commit.
2015-12-06 00:11:15 +00:00
Alexey Sokolov
dfa94d6bc1
Move Unix signal processing to a dedicated thread.
2015-12-06 00:10:06 +00:00
Alexey Sokolov
52a4548d51
Fix style a bit.
2015-12-05 17:54:23 +00:00
Adam
47f887ce43
Add SNI client support
...
Close #1200
2015-12-05 17:48:13 +00:00
Alexey Sokolov
bee266a08e
Fix test after fixing #1190
2015-11-29 12:26:17 +00:00
Alexey Sokolov
45f661e496
Merge pull request #1192 from nospampleasemam/support-separate-sslkeyfile
...
support for separate SSLKeyFile configuration
2015-11-27 01:38:45 +00:00
Alexey Sokolov
b7aff7f7ea
Don't bump compiler requirements from GCC 4.7 to GCC 4.8 yet.
...
Fix #1189
2015-11-26 14:02:15 +00:00
Dylan Lloyd
dcd259778a
support separate SSLKeyFile & SSLDHParamFile configuration
2015-11-25 17:00:23 -08:00
Alexey Sokolov
cbf5c38d0a
Teach modperl and modpython about CMessage and new hooks which accept it.
...
Fix #1084
Fix #1085
2015-11-22 23:39:30 +00:00
Alexey Sokolov
103ed00861
Move Message assertions to special cast operators.
...
Don't use static_cast directly anymore, but use these operators.
2015-11-21 12:13:54 +00:00
Alexey Sokolov
f33809585f
Move Message sizes asserts to their definitions, and add missing ones.
2015-11-21 10:50:52 +00:00
Alexey Sokolov
c283d7a07b
Fix include guard of Message.h
2015-11-21 10:35:03 +00:00
John Reese
9aff0cd566
See #1147 : show new server name when jumping
...
This updates the connect command in *status to retrieve the next server
object before triggering the jump, thereby allowing it to display the
next server's name rather than a generic message.
2015-10-25 12:41:00 -07:00
Alexey Sokolov
0750e529c5
Don't print anything from signal handler.
...
Thread sanitizer doesn't like that.
2015-10-03 19:29:01 +01:00
J-P Nurmi
c83a41ce89
CClient: message handlers
2015-09-20 23:22:03 +02:00
J-P Nurmi
ecb9b21055
Move message tags related code from CUtils to CMessage
2015-09-20 23:22:03 +02:00
J-P Nurmi
7d10ad2625
CBuffer: add CMessage-based API
2015-09-20 23:22:03 +02:00
J-P Nurmi
cbd860c2a9
Add CMessage::Equals()
...
Compares sender, command, and parameters. Not timestamp nor tags.
2015-09-20 23:22:02 +02:00
J-P Nurmi
f4c22aff6c
Incorporate CIRCSock::ForwardRaw353() into CClient::PutClient()
2015-09-20 23:22:02 +02:00
J-P Nurmi
69f1138052
CClient::PutClient(): handle away-notify and account-notify
2015-09-20 23:22:02 +02:00
J-P Nurmi
cb84ecac9c
Port CIRCSock::ParseISupport() to use CMessage
2015-09-20 23:22:01 +02:00
J-P Nurmi
6ad7cdb4a2
Resolve #818 : "Got ZNC?" is a little weird real name
2015-09-20 23:22:01 +02:00
J-P Nurmi
57fb58bf71
Fix CModeMessage::GetModes()
...
Thanks to KindOne for finding the bug. CModeMessage::GetModes()
must trim the colon that CMessage::GetParams() may include.
2015-09-17 13:26:24 +02:00
J-P Nurmi
73d5f382f8
Docs for the CMessage-based module hooks
2015-09-10 01:38:53 +02:00
J-P Nurmi
7f03484899
CClient: add ATTACH command
...
The main benefit is that (unlike JOIN) ATTACH allows wildcards.
It's also nicely symmetric with DETACH.
2015-09-10 01:12:19 +02:00
J-P Nurmi
832430659f
CClient: share the chan detaching code
2015-09-10 01:12:19 +02:00
J-P Nurmi
7916efa997
CClient: share the chan matching code
2015-09-10 01:12:19 +02:00
J-P Nurmi
1a3e9ecb86
Resolve #1045 : Make CMessage retain the colon
...
If the colon was there when parsed, stick it back even if it would be
technically unnecessary.
2015-09-10 00:21:04 +02:00
J-P Nurmi
ba76e041b9
Add OnNumericMessage() module hook ( close #1069 )
2015-09-07 16:41:15 +02:00
J-P Nurmi
1a7cf9d6ba
CIRCSock: make the message handlers private
...
These should not be called from the outside of the class.
2015-09-07 00:00:29 +02:00
J-P Nurmi
dae21026fa
CIRCSock::OnErrorMessage() handler
2015-09-07 00:00:28 +02:00