Stu Tomlinson
385af01587
rebar3 plugin to support configure-deps command ( #3392 )
...
* rebar3 plugin to support configure-deps command
To allow running configure on dependencies prior to compilation, add a
rebar3 plugin to support the 'configure-deps' command introduced for
rebar2 in a7639fd4
* Fix compatibility with OTP < 23
binary_to_atom/1 is new to OTP 23
2020-09-21 13:51:31 +02:00
Stu Tomlinson
d9feed54a9
Add 'gitonly_deps' list to rebar config/script ( #3391 )
...
Add list of dependencies that should only be built from git, to support
building with rebar3 where deps do not have hex packages (or where the
package versions do not directly map to git tags).
This is required for elixir and luerl deps.
2020-09-21 13:49:58 +02:00
Stu Tomlinson
eada3b6e93
Fix syntax for lager dependency version ( #3379 )
...
Add 'tag' to lager dependency so that build with rebar3 will pull from
hex package instead of git checkout matching other dependencies
2020-09-03 15:35:34 +02:00
Stu Tomlinson
bd11a00f8f
Use include_lib() to include headers from dependencies ( #3369 )
2020-09-03 13:45:57 +02:00
Paweł Chmielowski
54af08799d
Update xmpp dep
2020-09-03 13:43:49 +02:00
Stu Tomlinson
b71708aab9
Update base64url dep for rebar3 ( #3368 )
...
Update base64url version to match available hex package to support
compilation with rebar3
2020-09-03 13:40:04 +02:00
Paweł Chmielowski
828c0ad1e0
Update deps
2020-07-28 14:38:34 +02:00
Paweł Chmielowski
87bbd9cb02
Update stun
2020-07-28 14:04:00 +02:00
Badlop
2bcd2c38a9
No need to check for Erlang 17, as 19 is the lowest supported anyway
...
This rollsback the conditional introduced years ago in c2753cd51c
2020-07-28 11:28:04 +02:00
Badlop
042cddb768
Elixir was required for quicktest, that was removed in 2018 51cbbf313
2020-07-28 11:26:41 +02:00
Badlop
e0b7fd72af
Update Stun to 1.0.36, and Esip too
2020-07-28 11:25:43 +02:00
Badlop
9c5e4454e4
Sort dependencies and improve some indentation
2020-07-22 18:03:28 +02:00
Badlop
7fe0b8d274
Revert "Modify ERL_LDFLAGS of deps when compiling on R23 on rebar2"
...
This reverts commit 21312c79aa
.
2020-07-22 10:08:14 +02:00
Badlop
90ca689123
Update dependencies, they now compile with Erlang/OTP 23.0 natively
2020-07-22 10:06:06 +02:00
Badlop
db2825342c
Revert "Dirty workarounds to compile jiffy with Erlang/OTP 23 ( #3282 )"
...
This reverts commit 2ca5712507
.
2020-07-15 12:12:42 +02:00
Badlop
bc1de531cc
Update jiffy to 1.0.5 which supports Erlang/OTP 23
2020-07-15 12:12:39 +02:00
Holger Weiss
cff7c4c100
Update 'stun' dependency to tagged version
2020-07-11 17:53:33 +02:00
Holger Weiss
3bf7fbc117
ejabberd_stun: Filter info/debug messages
...
Update 'stun' dependency, and drop the info/debug messages now logged by
the 'stun' application if OTP's new logging API is used.
2020-07-01 21:53:22 +02:00
Holger Weiss
c6bbdafe92
Update 'yconf' dependency to fix Erlang/OTP 19.x
2020-06-05 20:24:17 +02:00
Holger Weiss
266691f929
Update 'yconf' dependency
...
Fixes #3295 .
2020-06-05 17:02:06 +02:00
Paweł Chmielowski
482917348b
Update deps
2020-06-03 13:43:10 +02:00
Badlop
1d7e29765e
Update eimp, sqlite3 and epam to support Erlang/OTP 23 ( #3282 )
2020-06-01 10:35:37 +02:00
Badlop
c0f7008e96
Use old http_uri, crypto and pg2 only with old Erlang/OTP ( #3284 )
2020-06-01 10:35:28 +02:00
Badlop
2ca5712507
Dirty workarounds to compile jiffy with Erlang/OTP 23 ( #3282 )
...
Works for me with:
./configure --disable-pam
./rebar get-deps
./rebar configure-deps
./rebar compile
make install
changes in erlang-native-compiler used by jiffy:
src/rebar_port_compiler.erl
- {"ERL_LDFLAGS" , " -L$ERL_EI_LIBDIR -lerl_interface -lei"},
+ {"ERL_LDFLAGS" , " -L$ERL_EI_LIBDIR -lei"},
src/rebar_utils.erl
--dialyzer({no_missing_calls, escript_foldl/3}).
2020-06-01 10:33:06 +02:00
Holger Weiss
7a37483307
Rename 'turn_v4_ip' and 'turn_v6_ip' options
...
The 'turn_ipv4_address' and 'turn_ipv6_address' option names are
probably more intuitive.
2020-05-29 18:40:19 +02:00
Paweł Chmielowski
21312c79aa
Modify ERL_LDFLAGS of deps when compiling on R23 on rebar2
...
Newer version removed erl_interface, and default rebar2 ERL_LDFLAGS will
try to link it, this change should pass correct flags to compiler.
2020-05-26 11:01:22 +02:00
Holger Weiss
56d00e427d
ejabberd_stun: Add 'turn_blacklist' option
...
The new 'turn_blacklist' listener option allows for specifying one or
more IP addresses and/or subnet addresses/masks. The TURN server will
refuse to relay traffic from/to blacklisted IP addresses. By default,
Teredo and 6to4 addresses are blacklisted, as mandated by RFC 6156
(section 9.1).
2020-05-21 21:46:02 +02:00
Holger Weiss
83fa637569
ejabberd_stun: Support IPv6 for TURN
...
The stun application now supports RFC 6156: TURN Extension for IPv6, and
therefore needs separate IPv4 and IPv6 relay addresses.
2020-05-19 21:42:41 +02:00
Holger Weiss
858bfb4b80
Let ejabberd_stun listen on IPv6 sockets
...
The stun application now allows IPv6 clients to perform STUN requests
and to allocate TURN relays.
2020-05-19 20:22:58 +02:00
Paweł Chmielowski
56c8f6b280
Update deps
2020-04-28 16:24:40 +02:00
Holger Weiss
fc444ce503
rebar.config: Update 'xmpp' and 'stun'
...
Use the current versions of 'xmpp' (to get XEP-0215 support) and 'stun'
(to fix TURN issues).
2020-04-23 20:05:40 +02:00
Licaon_Kter
d9131c854d
Bump jiffy so it compiles on older GCC ( #3218 )
...
* Update jiffy
* And here
2020-04-23 13:29:33 +02:00
Paweł Chmielowski
cb1c0a3188
Update mysql driver to get rid of warning
2020-04-16 18:26:13 +02:00
Paweł Chmielowski
1bd560f3f2
Fix potential message loss in terminating c2s sessions
...
Calling sync version of xmpp_stream_in/out:stop could lead to messages
never being processed by c2s process if they were queued in p1_server.
This could be reproduced by when having messages in offline storage,
starting sessions, enabling stream_mgmt, sending initial presence, and then immediately
</stream:stream>, messages that mod_offline would send process would not
be bounced back by stream_mgmt.
2020-04-01 14:36:01 +02:00
Paweł Chmielowski
f17d4c0adc
Update deps
2020-03-19 12:11:46 +01:00
Paweł Chmielowski
9c25d1024a
Support ssl connection on mysql
2020-02-26 10:54:04 +01:00
Paweł Chmielowski
a5987800c7
Update dependences
2020-02-25 14:15:50 +01:00
Badlop
f0ba506fde
Update Jiffy to 1.0.1, just for coherence with p1_acme requirement ( #3102 )
2020-02-19 12:19:33 +01:00
Badlop
2d32c66fd7
Update copyright to 2020 ( #3149 )
2020-01-28 15:49:23 +01:00
Paweł Chmielowski
640f4bed82
Use tagged xmpp
2020-01-16 15:08:57 +01:00
Holger Weiss
a8f6c1db1d
mod_carboncopy: Support new copying rules
...
Support the copying rules added to XEP-0280 with version 0.13.0 under
the "urn:xmpp:carbons:rules:0" namespace.
Closes #3011 .
2020-01-12 13:42:00 +01:00
Paweł Chmielowski
4c61e465ca
Rename plugin to not clash with plugin from dep
2020-01-08 10:41:48 +01:00
Paweł Chmielowski
c40d8fe11b
Update deps
2020-01-08 10:18:52 +01:00
Evgeny Khramtsov
b47a2e9626
Bump yconf version
2019-11-08 11:17:45 +03:00
Evgeny Khramtsov
02cb3d93fd
Don't lowercase first letter in reason string
2019-10-25 18:18:04 +03:00
Evgeny Khramtsov
e3962aea6e
Use lager on OTP<22.0
...
This also lowers Erlang/OTP minimum version requirement back to 19.3
2019-10-25 11:44:04 +03:00
Evgeny Khramtsov
e4a8afb15d
Replace lager with built-in new logging API
...
This change requires Erlang/OTP-21.0 or higher.
The commit also deprecates the following options:
- log_rotate_date
- log_rate_limit
Furthermore, these options have no effect. The logger now fully
relies on log_rotate_size, that cannot be 0 anymore.
The loglevel option now accepts levels in literal formats.
Those are: none, emergency, alert, critical, error, warning, notice, info, debug.
Old integer values (0-5) are still supported and automatically converted
into literal format.
2019-10-18 19:12:32 +03:00
Paweł Chmielowski
0673b068e0
Bump version of jose to 1.9.0
...
This version theoretically require rebar3 but we have plugin that can
override it by using version declared in main config file
2019-10-01 16:34:25 +02:00
Evgeny Khramtsov
d2f92eecd4
Re-tag xmpp dep
2019-09-26 10:22:36 +03:00
Paweł Chmielowski
9b2a44e750
Tag p1_acme and use that in deps
2019-09-25 12:46:22 +02:00
Evgeny Khramtsov
aefe2fd640
Rename to p1_acme
2019-09-25 13:10:47 +03:00
Paweł Chmielowski
f2e8754586
Update deps
2019-09-24 11:01:43 +02:00
Evgeny Khramtsov
2e1e128833
Fix unicode formatting in ACME module
2019-09-22 20:11:54 +03:00
Evgeny Khramtsov
faefad746e
Fix unicode processing in ejabberd.yml
2019-09-22 19:42:29 +03:00
Evgeny Khramtsov
b7e296857c
Don't call to xmpp_idna
2019-09-22 13:28:14 +03:00
Evgeny Khramtsov
75fe6f44d2
Fix IDNA support in ACME requests
2019-09-22 12:44:31 +03:00
Evgeny Khramtsov
a616cc04cb
Support IDN hostnames in ACME requests
2019-09-22 11:04:38 +03:00
Evgeny Khramtsov
fa00caced4
Bump acme version
2019-09-21 22:18:49 +03:00
Evgeny Khramtsov
e227940b85
Improve ACME implementation
...
Fixes #2487 , fixes #2590 , fixes #2638
2019-09-20 12:36:31 +03:00
Holger Weiss
b1c10d2a03
Add support for XEP-0328: JID Prep
...
The mod_jidprep module implements XEP-0328: JID Prep, version 0.1.
2019-09-12 09:26:45 +02:00
Paweł Chmielowski
e8fb9ab303
Use tagged version for yconf as well
2019-08-02 16:06:19 +02:00
Paweł Chmielowski
b50e7161ee
Update deps to tagged versions
2019-08-02 15:12:38 +02:00
Evgeny Khramtsov
4dac9f1e6d
Validate BINVAL values of vcard elements as Base64
2019-08-02 14:20:10 +03:00
Evgeny Khramtsov
2f51aae818
Bump pkix version
2019-08-01 12:56:23 +03:00
Evgeny Khramtsov
8a2b2668cf
Expose access_model and publish_model in pubsub#metadata
...
Fixes #2931
2019-07-30 10:45:32 +03:00
Evgeny Khramtsov
052917961a
Add 'certauth' command to extauth port
2019-07-24 10:13:51 +03:00
Evgeny Khramtsov
3f7d9e3ad6
Remove Riak support
...
Reasons:
- Riak DB development is almost halted after Basho
- riak-erlang-client is abandoned and doesn't work
correctly with OTP22
- Riak is slow in comparison to other databases
- Missing key ordering makes it impossible to implement range
queries efficiently (e.g. MAM queries)
2019-07-18 19:31:12 +03:00
Evgeny Khramtsov
2171abf5ae
Allow more flexible timeout values in the configuration
...
Now all timeout values can be expanded with suffixes, e.g.
```
negotiation_timeout: 30s
s2s_timeout: 10 minutes
cache_life_time: 1 hour
```
If the suffix is not given, the timeout is assumed in *seconds*
2019-07-16 23:45:44 +03:00
Evgeny Khramtsov
a7a53f601e
Add econf:string/2 validator
2019-07-16 18:10:45 +03:00
Evgeny Khramtsov
f85488583c
Handle CAPTCHA forms using captcha_form codec
2019-07-16 17:51:51 +03:00
Evgeny Khramtsov
4d877289fb
Bump xmpp version and fix revealed bugs
2019-07-16 15:59:33 +03:00
Evgeny Khramtsov
2419e00a26
Bump yconf version
2019-07-15 15:22:51 +03:00
Paweł Chmielowski
948578b55b
Downgrade jose to version that works with rebar2 and del warning_as_error from it's config
2019-07-12 14:55:01 +02:00
Paweł Chmielowski
5a927049ef
Bump jose version
2019-07-12 13:02:10 +02:00
Evgeny Khramtsov
f68da70f3e
Avoid last handled stanzas cache to grow indefinitely
2019-07-01 20:43:57 +03:00
Evgeny Khramtsov
c5fde9d5af
Get rid of useless dialyzer instructions
2019-07-01 10:36:20 +03:00
Evgeny Khramtsov
9912f981c0
Bump cache_tab version
2019-07-01 09:26:56 +03:00
Evgeny Khramtsov
4aebd2fd8e
Cache number of offline messages
2019-06-30 21:14:37 +03:00
Evgeny Khramtsov
253ec13971
Use new ets_cache API in ejabberd_auth
2019-06-30 17:15:43 +03:00
Evgeny Khramtsov
a2a061c1c8
Avoid using broad p1_queue:queue() type wherever possible
2019-06-28 22:16:29 +03:00
Evgeny Khramtsov
2abca350e0
Fix type specs
2019-06-27 11:32:54 +03:00
Evgeny Khramtsov
4f69325e3c
Fix shaper selection in ejabberd_c2s
2019-06-22 10:19:17 +03:00
Evgeny Khramtsov
9e2e590061
Fix exception formatting on old Erlang
2019-06-14 16:58:39 +03:00
Paweł Chmielowski
b952c4f294
Use commit id instead of branch name to specify deps in rebar.config
2019-06-14 12:16:13 +02:00
Evgeny Khramtsov
a02cff0e78
Use new configuration validator
2019-06-14 12:33:26 +03:00
Paweł Chmielowski
5642338a73
Update deps
2019-05-23 12:13:28 +02:00
Evgeny Khramtsov
4424f40186
Use lager 3.6.10
2019-05-20 12:10:23 +03:00
Mickael Remond
be14caddf4
Use stable xmpp version
2019-05-03 15:48:12 +02:00
Paweł Chmielowski
17444ba84e
Allow non-moderator subscribers to get list of room subscribers
2019-04-25 14:52:47 +02:00
Evgeny Khramtsov
e623678747
Bump pkix version
2019-04-19 16:26:58 +03:00
Evgeny Khramtsov
7f14826564
Use new ets_cache api in ejabberd_auth
2019-04-19 15:08:41 +03:00
Evgeny Khramtsov
5c69122bbe
Use xmpp:get_subtags/2
2019-04-01 10:47:29 +03:00
Paweł Chmielowski
a7310ffea1
Make misc:add_delay_info properly handle multiple delay tags in element
2019-03-29 11:25:35 +01:00
Paweł Chmielowski
cf733b0913
Update mysql driver
2019-03-20 13:28:13 +01:00
Paweł Chmielowski
291c05715b
Update mysql dependency
2019-03-15 11:59:18 +01:00
Paweł Chmielowski
ab2197c455
Update mqtree
2019-02-26 12:16:48 +01:00
Paweł Chmielowski
daf9c99728
Update deps
2019-02-26 10:32:02 +01:00
Paweł Chmielowski
bc38afa8b8
Updated fast_tls
2019-02-25 16:42:38 +01:00
Paweł Chmielowski
db9435942f
Pull never fast_tls version
2019-02-25 16:10:48 +01:00
Evgeny Khramtsov
a3df791373
Add MQTT support
2019-02-25 11:42:09 +03:00
Paweł Chmielowski
8b76fdd035
And another typo...
2019-01-15 16:25:23 +01:00
Paweł Chmielowski
182786948f
Typo
2019-01-15 16:23:38 +01:00
Paweł Chmielowski
9bd38eff1e
Use tag for xmpp dependency
2019-01-15 16:18:10 +01:00
Paweł Chmielowski
2a24011b3b
Update xmpp dep
2019-01-15 15:15:56 +01:00
Badlop
f0cf63de15
Manually update 2017 copyright dates ( #2756 )
2019-01-08 22:52:26 +01:00
Paweł Chmielowski
768d37a29c
Remove no longer used deps
2019-01-02 13:02:20 +01:00
Paweł Chmielowski
52e77e3d75
Remove workaround for old erlang versions
2018-12-13 11:46:53 +01:00
Paweł Chmielowski
c88a2d0569
Add code for handling deprecations of get_stacktrace()
2018-12-13 11:46:53 +01:00
Holger Weiss
114cc8c093
Bump xmpp version
2018-12-10 22:38:50 +01:00
Paweł Chmielowski
d6fa657624
Bump xmpp dep
2018-12-06 13:40:08 +01:00
Paweł Chmielowski
2b9c7ed407
Use tagged version of pkix dependency
2018-12-05 10:11:37 +01:00
Paweł Chmielowski
0e081ba73e
Update deps
2018-12-04 14:40:37 +01:00
Paweł Chmielowski
6845896d12
Add support for proxy protocol
...
This add support for version 1 and 2 of protocol specified in
http://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
To enable it you need add option use_proxy_protocol: true to listener.
2018-12-04 14:22:45 +01:00
Evgeny Khramtsov
5d27c975dc
Keep last handled stanzas number in cache rather than session table
2018-11-30 16:19:00 +03:00
Paweł Chmielowski
53ae25ad8f
Update deps
2018-11-29 14:45:13 +01:00
Evgeny Khramtsov
b07b10bdaa
Drop some macros related to OTP<19
2018-11-29 13:01:00 +03:00
Christophe Romain
932d995a1d
Revert "Upgrade Elixir to 1.6.6 ( #2653 )"
...
This reverts commit d3a9fbf62f
.
rebar2 (which is still used) is not able to cope with this change
it should check lib/elixir/src/elixir.app.src instead of src/elixir.app.src
as src/elixir.app.src moved away, currently check fails and this breaks
jenkins tests.
options: use rebar3, or drop rebar completely to rely only on mix.
2018-11-27 11:01:52 +01:00
Christophe Romain
d3a9fbf62f
Upgrade Elixir to 1.6.6 ( #2653 )
2018-11-27 09:57:59 +01:00
Evgeny Khramtsov
d79ddd7b5c
Bump lager version
2018-11-23 13:34:21 +03:00
Evgeny Khramtsov
1cdca1ab99
Support for XEP-0411: Bookmarks Conversion
2018-11-23 13:33:29 +03:00
Paweł Chmielowski
1214a83cca
Use never version of meck
2018-11-19 14:15:29 +01:00
Paweł Chmielowski
cb2b927085
Add send_ws_ping to c2s
2018-10-29 12:30:59 +01:00
Paweł Chmielowski
e369a93809
Use newer fast_tls that fixes some issues with tls1.3
2018-10-24 10:13:05 +02:00
Paweł Chmielowski
74e96afc10
Use tagged version of p1_mysql
2018-10-19 10:57:22 +02:00
Paweł Chmielowski
0352b97f50
Update p1_mysql
2018-10-19 10:15:48 +02:00
Evgeny Khramtsov
39fa1a810d
Move certificates processing code to pkix application
...
==== WARNING: MUST BE ADDED TO RELEASE NOTES =====
The commit introduces the following incompatibility:
- Option 'ca_path' is deprecated and has no effect anymore:
option 'ca_file' should be used instead if needed.
==================================================
2018-09-27 20:37:27 +03:00
Paweł Chmielowski
0d743da595
Update xmpp
2018-09-25 16:18:16 +02:00
Paweł Chmielowski
c3f62c037d
Update deps once more
2018-09-24 15:49:26 +02:00
Paweł Chmielowski
054426072e
Update deps
2018-09-24 14:37:54 +02:00
Evgeny Khramtsov
de385591d0
Refactor ejabberd listener API
2018-09-17 11:21:02 +03:00
Evgeny Khramtsov
145c0116bf
Bump lager version
...
This is needed for OTP-21 compatibility
2018-09-07 18:03:36 +03:00
Paweł Chmielowski
90b22da880
Use newere fast_tls
2018-09-05 11:14:19 +02:00
Evgeniy Khramtsov
01a1f929b4
Bump xmpp version
2018-08-17 18:16:14 +03:00
Paweł Chmielowski
fd76bc9242
Update xmpp
2018-08-16 11:59:26 +02:00
Badlop
8f0e066135
In response with list of room subscriptions include also events ( #2272 )
2018-08-13 12:52:33 +02:00
Paweł Chmielowski
6dc452e7f5
Update xmpp
2018-07-23 17:23:11 +02:00
Stu Tomlinson
f9ed34db4d
Enforce pubsub option required/rejected attributes
...
XEP-0060 states that 'node' and 'jid' attributes to <options> element MUST NOT
be included when <options> are specified at same time as <subscribe> :
https://xmpp.org/extensions/xep-0060.html#subscriber-configure-subandconfig
mod_pubsub will require 'node' and 'jid' attributes on standalone pubsub
options requests, and reject subscribe requests that have options that include
either 'node' or 'jid'
2018-07-14 11:55:38 +01:00
Evgeniy Khramtsov
d03432a956
Fix regression: list SASL EXTERNAL mechanism for inbound s2s
2018-07-10 10:14:08 +03:00
Evgeniy Khramtsov
11811e5f48
Only lookup FQDN at configuration (re)loading
2018-07-06 09:18:27 +03:00
Evgeniy Khramtsov
0bb14d16c7
Move XMPP stream and SASL processing to xmpp repo
2018-07-06 01:07:36 +03:00
Evgeniy Khramtsov
ed1ee6061e
Move move randoms module to p1_utils repo
2018-07-05 11:51:49 +03:00
Evgeniy Khramtsov
50b645aa92
Move shaper to p1_utils repo
2018-07-05 09:31:55 +03:00
Evgeniy Khramtsov
a463f5a25a
Replace hardcoded disco features with macros
2018-06-29 14:48:07 +03:00
Paweł Chmielowski
9b70177fd5
Update xmpp
2018-06-29 12:50:57 +02:00
Paweł Chmielowski
62cb398734
Convert test that used moka, and drop that dependancy
2018-06-29 10:52:47 +02:00
Evgeniy Khramtsov
0a40ab93c8
Don't crash when encoding {xmlcdata, _}
...
Fixes #2493
2018-06-28 15:04:46 +03:00
Paweł Chmielowski
8f2233eff7
Update deps
2018-06-28 10:56:59 +02:00
Evgeniy Khramtsov
af8c6d2428
Generate HTTP Upload form using xdata codec
2018-06-27 13:29:38 +03:00
Evgeniy Khramtsov
ac31c85866
Use error formatting functions from xmpp library
2018-06-25 09:45:45 +03:00
Evgeniy Khramtsov
f465742f2c
Remove lowercased duplicates from ejabberd.pot
2018-06-20 13:02:06 +03:00