Commit Graph

962 Commits

Author SHA1 Message Date
Raoul Wols 2f26928e3e
docblock 2021-07-13 13:27:19 +02:00
Raoul Wols 477243d3f3
Handle newlines better in sslerrorprinter.cpp
According to 4cedf30e99/crypto/err/err_prn.c (L20)
the ERR_print_errors_cb function already adds newlines to the end
of each line. So we can just append right away. We do remove the
last newline as normally error messages don't end with a newline.
Also we may return 0 instead of 1.
2021-07-13 13:25:39 +02:00
Raoul Wols 40d2af913e
docblock 2021-07-13 13:19:32 +02:00
Raoul Wols 3ca1ef73ad
Lookup function in shared library 2021-07-13 13:12:32 +02:00
Raoul Wols df78574034
docblocks 2021-07-13 12:32:17 +02:00
Raoul Wols faa491ce65
remove BIO stuff completely, replace with callback 2021-07-13 12:31:04 +02:00
Raoul Wols 4d49b44283
separate cpp file 2021-07-13 11:37:31 +02:00
Raoul Wols d5819ef2dc
docblock 2021-07-13 11:24:08 +02:00
Raoul Wols 3bc7b62567
separate class for extracting errors 2021-07-13 11:23:08 +02:00
Raoul Wols 2f6451a9aa
Print a better error message
This is still missing the dlsym wrappers.
2021-07-12 18:44:16 +02:00
Emiel Bruijntjes d91a67c13e
Merge pull request #406 from CopernicaMarketingSoftware/40366
Monitor earlier in case flush() calls reportError
2021-07-12 15:55:52 +02:00
Raoul Wols e3678943cb
Monitor earlier in case flush() calls reportError. 2021-07-12 14:23:43 +02:00
Emiel Bruijntjes ead7b7962e
Merge pull request #405 from CopernicaMarketingSoftware/40362
Check if the callback is null again after flush()
2021-07-12 13:36:02 +02:00
Raoul Wols 0e6a1c52a9
Check if the callback is null again after flush()
The call to flush() may result in the _oldestCallback becoming a nullptr.
For instance, the SslConnected class might report an ssl error.
This causes the _oldestCallback to become null.
2021-07-12 12:51:47 +02:00
Emiel Bruijntjes 6df80e3b32
Merge pull request #403 from CopernicaMarketingSoftware/fix/segfault
Fix: cannot call size() on a moved-from Field
2021-07-01 14:06:22 +02:00
Raoul Wols 3649f41219
Fix: cannot call size() on a moved-from Field
Solution is to swap the statements.

This was regressed in 7532f5769d.
2021-07-01 13:48:10 +02:00
Emiel Bruijntjes 134ed73498
Merge pull request #401 from CopernicaMarketingSoftware/40169
Improve Table copy assignment operator
2021-07-01 12:54:20 +02:00
Emiel Bruijntjes 7532f5769d
Merge pull request #400 from CopernicaMarketingSoftware/fix/make-shared
Prefer make_shared over calling std::shared_ptr constructor
2021-07-01 12:53:03 +02:00
Raoul Wols 0f17bd0687
Improve Table copy assignment operator 2021-07-01 12:41:18 +02:00
Raoul Wols 3965739ccb
Don't rely on argument dependent lookup 2021-07-01 12:07:43 +02:00
Raoul Wols ac91e954c2
Prefer make_shared over calling std::shared_ptr constructor 2021-07-01 11:54:43 +02:00
Emiel Bruijntjes f52fdf6977
Merge pull request #398 from CopernicaMarketingSoftware/synchronous-success-callback
Avoid that multiple frames are sent by the channel-on-ready handler
2021-06-16 14:12:18 +02:00
Emiel Bruijntjes 45775fefe8 avoid that multiple frames are sent by the channel-on-ready handler 2021-06-15 11:56:56 +02:00
Rafal Goslawski dc9d88f4b1
Bump version to 4.3.12 2021-05-14 09:33:48 +02:00
Rafal Goslawski 58052cce14
Bump version to 4.3.12 2021-05-14 09:33:39 +02:00
Emiel Bruijntjes 5612ea66ae
Merge pull request #395 from CopernicaMarketingSoftware/keepDeferredsAliveInTagger
Make sure the deffered objects stay in scope
2021-05-12 16:32:51 +02:00
aljar c2e0cc57eb Make sure the deffered objects stay in scope when we call into callback in tagger. 2021-05-12 15:09:25 +02:00
Emiel Bruijntjes 0d2ea8aa72
Merge pull request #388 from theirix/link-openssl
Find and Link OpenSSL
2021-01-18 17:20:11 +01:00
theirix e422fea429 Do not link OpenSSL, just provide include dirs 2021-01-18 16:51:40 +03:00
theirix d81abc0927 Find and link OpenSSL when building linux tcp 2021-01-16 10:04:30 +03:00
theirix 98bc6b4941 Up CMake requirement to have OpenSSL targets 2021-01-16 10:04:06 +03:00
Rafal Goslawski 9fa05100f4
bump version to 4.3.11 2021-01-15 11:03:32 +01:00
Rafal Goslawski b66ed6ed9a
bump version to 4.3.11 2021-01-15 11:03:20 +01:00
Emiel Bruijntjes 6d0ad0fe0d
Merge pull request #387 from CopernicaMarketingSoftware/fixTaggerClose
Fix Tagger::close
2021-01-14 10:05:02 +01:00
aljar 3b7ebb1077 The defered parameter indicatates if it failed, while the call in Tagger:close asumed that the parameter indicated usable. This is now fixed. 2021-01-14 09:16:35 +01:00
Emiel Bruijntjes 3dbd045d06 allow user space programs to initialize the SSL structure before a connection is set up 2021-01-01 18:52:54 +01:00
Michael van der Werve 39a3d3adf6
update appveyor badge (new account) 2020-12-09 10:13:53 +01:00
Bas van Berckel 77d74bff93
SslHandshake set default verify path (#385)
Set default verify paths for SSLHandshake to prevent secure connections from being marked as unverified.
Co-authored-by: Bas van Berckel <bas.vanberckel@copernica.com>
2020-12-07 16:36:32 +01:00
Emiel Bruijntjes ad5ecea859
Merge pull request #382 from CopernicaMarketingSoftware/retry-interrupt
retry poll when interrupted by a signal
2020-11-23 09:59:55 +01:00
Michael van der Werve e4ec629d62 signals can interrupt poll, which is now taken as a failure but should be retried 2020-11-23 09:57:35 +01:00
Rafal Goslawski 7f40ad2d69
Bump version to 4.3.9 2020-11-18 13:37:43 +01:00
Rafal Goslawski 63dabdb232
Bump version to 4.3.9 2020-11-18 13:37:28 +01:00
Emiel Bruijntjes b05c06b226
Merge pull request #380 from basanets/master
Fixed the segfault which can happen after address.option("connectionOrder") return nullptr
2020-11-16 20:07:22 +01:00
Mikhail Basanets ced0de4eda Added check if the connectionOrder receives nullptr and not a valid string. This can be a case if address.option(connectionOrder) returns nullptr. 2020-11-16 19:56:28 +02:00
Emiel Bruijntjes bca39d8f29 simplified code, split up long methods in separate methods 2020-11-16 18:22:00 +01:00
Emiel Bruijntjes 21a431d8a8
Merge pull request #379 from CopernicaMarketingSoftware/randomIps
Add option to select an IP randomly
2020-11-16 17:38:12 +01:00
aljar f9d85f5d01 Use address to pass the option and add some extra options for sorting ips. 2020-11-16 16:30:29 +01:00
aljar fe1538e8ae Set option via address. 2020-11-13 18:05:07 +01:00
aljar 11f1eaf2c3 Don't use the old random_shuffle and don't set a global seed. 2020-11-13 17:49:14 +01:00
aljar 4570496547 Add option to select an IP randomly instead of using the order provided by getaddrinfo, which is proximity based. 2020-11-13 17:10:30 +01:00