Roger A. Light
debf7493ad
UTF-8 validation tests and fixes.
2018-10-03 18:42:15 +01:00
Roger A. Light
400db91166
Handle UTF-8 validation in packet__read_string.
2018-10-03 15:04:24 +01:00
Roger A. Light
b6b8da1fa6
Variable Byte Integer reading tests.
2018-10-03 11:57:20 +01:00
Roger A. Light
99a1c0e43a
Move simple datatype reading functions to own file.
...
This facilitates easier testing.
2018-10-03 10:23:58 +01:00
Roger A. Light
1488992ea8
Naive reading of MQTT 5 properties. No processing done.
2018-10-02 16:43:40 +01:00
Roger A. Light
17b3709790
Fix varint reading.
2018-10-02 14:07:23 +01:00
Roger Light
6c9e8d51c2
Merge branch 'develop' into mqtt5
2018-10-02 11:28:03 +01:00
Roger A. Light
1867f30785
Merge branch 'master'
...
Conflicts:
ChangeLog.txt
2018-10-02 08:31:54 +01:00
Roger A. Light
cf9a72d8db
Add mosquitto_subscribe_multiple.
2018-09-27 22:05:15 +01:00
Roger A. Light
c78003cacf
Bump version number, add CVE details.
2018-09-25 16:26:28 +01:00
Roger A. Light
f9c9f3d396
Fix incorrect hash usage with duplicate clients.
...
Fix duplicate clients being added to by_id hash before the old client
was removed.
Closes #645 .
2018-09-25 14:25:54 +01:00
Roger A. Light
59bd07627d
Various build improvements to help packaging.
2018-09-25 14:25:54 +01:00
Roger A. Light
dd0e0d91b0
Fix build on Windows.
2018-09-20 10:38:35 +01:00
Roger A. Light
3f87232065
Bump version number.
2018-09-19 18:09:43 +01:00
Roger A. Light
4ee6941188
Primitive v5 CONNACK support - no properties.
2018-09-19 11:13:50 +01:00
Roger A. Light
561513fdd4
Very simple v5 CONNECT support - no properties.
2018-09-19 11:00:15 +01:00
Roger A. Light
ccc97d8c96
Function for reading variable length ints from packet.
2018-09-19 10:59:57 +01:00
Roger A. Light
33a523eea9
Add identifiers for v5.
...
Clients know about v5, just need library support...
2018-09-19 10:59:41 +01:00
Roger A. Light
a127c93a5a
Property identifiers.
2018-09-19 10:59:31 +01:00
Roger A. Light
99c6ec7f6e
Protocol name will never be changed from MQTT.
2018-09-19 10:58:36 +01:00
Roger A. Light
5dc88fe8f3
Add v5 return codes
2018-09-19 10:58:23 +01:00
Roger A. Light
0bacff11df
Rename mqtt3_protocol.h -> mqtt_protocol.h.
2018-09-19 10:58:12 +01:00
Roger A. Light
48f096bc1c
Read/write new 32 bit ints from packets.
2018-09-19 10:57:16 +01:00
Michael Heimpold
a459e93498
Install pkg-config files also for non-CMake builds
...
At the moment, pkg-config hint files are only installed when CMake is
used as build system. However, it is very convenient for programs using
libmosquitto to have these files always in place, so let's add it
here, too.
Signed-off-by: Michael Heimpold <michael.heimpold@i2se.com>
2018-09-18 15:25:22 +01:00
Fredrik Fornwall
915e91d9be
Fix build with OPENSSL_NO_ENGINE
...
Signed-off-by: Fredrik Fornwall <fredrik@fornwall.net>
2018-09-18 15:02:32 +01:00
Roger A. Light
ae45bd3d40
Update changelog and fixes to #927 PR.
2018-09-18 14:57:13 +01:00
yzhivik
96e62d596f
fix SOCKS5 username and password set
...
fix SOCKS5 request wrt IP4/IP6/FQDN
Signed-off-by: yzhivik <yuriy.zhyvytsya@gmail.com>
2018-09-18 14:34:31 +01:00
Roger A. Light
a9da3c263d
Bump version number.
...
Signed-off-by: Roger A. Light <roger@atchoo.org>
2018-08-16 17:01:08 +01:00
Roger A. Light
4ccc68d2df
Revert incorrect change.
2018-08-16 11:33:06 +01:00
Roger A. Light
9d30625622
Build fix for Windows.
2018-08-16 11:16:16 +01:00
Roger A. Light
88765a5e80
Consistent use of config.h across the project.
2018-08-16 11:14:51 +01:00
Roger A. Light
a199cac69e
Don't confuse expiring and duplicate clients.
2018-08-15 17:27:59 +01:00
Roger A. Light
0ec090f31a
Fixes for building on FreeBSD.
2018-08-15 17:02:56 +01:00
Roger A. Light
10b19a42ed
Fixes for building on NetBSD.
...
Closes #258 .
Thanks to Daniel Ölschlegel.
2018-08-09 15:21:40 +01:00
Roger A. Light
c757cb0912
Remove incorrect comment.
2018-08-09 15:01:39 +01:00
Roger A. Light
e185d18917
Better fix for #851 .
...
Ensure all sockets that are closed are set to INVALID_SOCKET.
Signed-off-by: Roger A. Light <roger@atchoo.org>
2018-08-08 15:23:03 +01:00
Roger A. Light
7f0b4d6271
Fix connection problems when using mosquitto_connect_async().
...
The connection wouldn't always complete if mosquitto_loop_start() was
called before mosquitto_connect_async(). Closes #848 .
Thanks to Ian Gough.
Bug: https://github.com/eclipse/mosquitto/issues/848
Signed-off-by: Roger A. Light <roger@atchoo.org>
2018-08-08 09:21:19 +01:00
Roger A. Light
575dce91f0
Fix segfault on startup if bridge CA certificates could not be read.
...
Closes #851 .
Thanks to chelliwell.
Signed-off-by: Roger A. Light <roger@atchoo.org>
2018-08-02 15:06:09 +01:00
Roger A. Light
4bacbecb1b
Fix some places where return codes were incorrect.
...
Closes #850 .
Signed-off-by: Roger A. Light <roger@atchoo.org>
2018-08-02 14:41:04 +01:00
Roger A. Light
bcf76b9cb6
Remove use of AI_ADDRCONFIG.
...
Closes #869 , #901 .
Thanks to Alex Richman.
Signed-off-by: Roger A. Light <roger@atchoo.org>
2018-08-02 01:11:31 +01:00
Roger A. Light
286400abcf
Use AF_UNSPEC etc. instead of PF_UNSPEC to comply with POSIX.
...
Closes #863 .
Thanks to denigmus and Patrick TJ McPhee.
Signed-off-by: Roger A. Light <roger@atchoo.org>
2018-08-02 00:27:52 +01:00
Roger A. Light
5e60136449
Merge branch 'develop'
2018-05-03 07:55:45 +01:00
Roger A. Light
e9d03c8ffd
Merge branch 'fixes'
2018-05-02 22:33:27 +01:00
Roger A. Light
84520296fa
Bump version number.
2018-05-02 22:33:05 +01:00
Roger A. Light
e90a32835b
Merge branch 'fixes' into develop
2018-05-02 22:24:49 +01:00
Roger A. Light
8410a19335
Add fallback case for libressl.
2018-05-02 21:51:08 +01:00
Roger A. Light
6c7ecd7e97
Fix compiling without TLS.
2018-05-02 21:04:42 +01:00
Roger A. Light
79a7b36d20
Don't derefence a null message.
2018-04-19 20:53:38 +01:00
Roger A. Light
b2bb48ac2b
Reference counting for openssl 1.0.2.
2018-04-16 22:39:37 +01:00
Roger A. Light
57ee8b92bc
Mac build fixes.
2018-04-16 11:48:42 +01:00