Commit Graph

1204 Commits

Author SHA1 Message Date
Riza Sulistyo 74569f926a
Fix build warning and error for UWP (#3276)
* Fix build warning and error for UWP

* Include in6_addr.h directly on UWP
2022-10-27 10:47:21 +07:00
orbea c804b31f85
Fix build fail on alpine linux (with musl libc) : no execinfo.h (#3263)
The execinfo.h header is GNU specific and is not available with musl.

Gentoo Issue: https://bugs.gentoo.org/867343

Co-authored-by: jimying <yingqw.js@gmail.com>
2022-10-17 13:32:23 +08:00
lukas-nowak 304f8dc48f
conditional compilation removed from macro expansion to satisfy MSVC (#3264) 2022-10-14 09:54:40 +08:00
Nanang Izzuddin e948f48e2e
Fix compile error due to variable not in beginning of block (C89 compatibility). (#3257) 2022-09-30 16:45:30 +07:00
jimying b0a0fc785e
Fix ioqueue_kqueue: error convert milliseconds to nanoseconds (#3206) 2022-09-29 09:53:23 +07:00
sauwming 06dc90eaf9
Fixed assertion in Apple SSL when verification is retried (#3034) 2022-09-29 09:02:15 +08:00
sauwming dbbeb06ed5
Add OpenSSL version check for SSL_SESSION_is_resumable() (#3120) 2022-09-29 08:58:46 +08:00
Andreas Wehrmann 0fb32cd4c0
free SSL context and reset context pointer when setting the cipher list fails; this is a followup of issue #3069 (#3245) 2022-09-27 15:09:03 +07:00
Andreas Wehrmann 6f80f645d9
Windows: add FILE_SHARE_DELETE flag when opening/creating files to allow for interacting with temporary files (#3246) 2022-09-27 15:08:32 +07:00
Nanang Izzuddin edb884c713
Change PJ_ACTIVESOCK_TCP_IPHONE_OS_BG default to 0, because app gets killed on iOS 16 when using VoIP socket. (#3253) 2022-09-27 15:01:22 +07:00
sauwming 0af29caf6d
Make sure that epoll sleep is done only if the delay is positive (#3233) 2022-09-23 14:55:53 +08:00
sauwming 9426572a1c
Fixed memory leak in OpenSSL when getting certificate chain (#3235) 2022-09-23 14:55:02 +08:00
Andreas Wehrmann 8e7d630d55
Fix assertion when trying to set QOS of type "signalling" (#3222) 2022-09-19 16:22:16 +07:00
Benny Prijono c03ab41ed5
Documentation fixes for docs.pjsip.org v2.0 project (#3202)
* Improve robustness of sample apps. Fixing crash in aviplay

* Changes in documentation

* Add first pjsua2 hello world sample (from PJSUA2 guide)

* Fix doxygen documentation for docs.pjsip.org v2

* Add make clean-doc target

* Replace Trac ticket URL with GitHub issues URL

* Remove pjsip-book because the correct one is in pjproject_docs
2022-08-09 06:16:16 +07:00
jimying 6c8f39c3bb
Fix PJ_PERROR(): the second arg is error (#3204) 2022-08-08 18:00:12 +07:00
jimying de56dda311
Add new api pj_sock_socketpair() (#3179)
* Add new api pj_sock_socketpair()
2022-08-08 08:36:48 +07:00
Nanang Izzuddin e4bc56031a
Fix multicast problem on Windows due to 'bad' defined SOL_IP in recent Windows build toolset (v143). (#3190) 2022-07-27 12:05:18 +07:00
Benny Prijono 5604238bf5
EPOLLIN bug, epoll ioqueue refactoring and other bug fixes/enhancements to ioqueue (#3188)
* Minor: fixed warning about unused static function when the test is disabled

* Part of #3188: Add support for pj_ioqueue_create2(), ioqueue_add_to_set2(), ioqueue_remove_from_set2()

* #3188: fixing epoll ioqueue EPOLLIN problem, added pj_ioqueue_create2(), ioqueue_add_to_set2(), and ioqueue_remove_from_set2() functions, and added more unit tests

* Continuing #3188: porting t oWindows/Visual Studio

* More #3188: minor fixes

* More #3188: minor fix on Windows to remove runtime warnings

* More #3188: clearer documentation comments

* More #3188: do not check for EXCLUSIVE support if disable_exclusive is set, and added clarification about EPOLLERR flags removal

* More #3188: clarification about unregistration test in ioq_udp.c
2022-07-27 10:38:02 +07:00
Nanang Izzuddin 6ff18b4f8a
Lock ordering issue in video conference bridge (#3183) 2022-07-21 15:10:54 +07:00
Benny Prijono 70ecdb584e
Merge branch 'pjsip:master' into master 2022-07-18 09:59:48 +08:00
bennylp 24201b0983 Add pj_log_set/get_indent() API to allow threads to synchronize log indentation 2022-07-18 08:58:09 +07:00
bennylp 3ade7c9215 Bug fixes and enhancements in pjlib ioq_perf. Bug fixes:
1. stopping condition that is too small and bug in duration calculation causing the test to complete very quickly (in about 1ms). This would cause bandwidth calculation to be inaccurate because threads haven't had chance to run properly yet.
2. bug in total_received calculation causing wrong bandwidth calculation (it only shows bandwidth of the last socket pair).

Enhancements:
1. show statistics of each worker thread to see if threads are woken up equally.
2. show statistics of each socket pair to see if they have fair share of the bandwidth.
2022-07-08 18:57:08 +07:00
Andreas Wehrmann e10e2075f5
prevent buffer overflow: The Unicode variant expects the number of characters that can be put in the buffer supplied by the user and not the size in bytes. (#3170) 2022-07-08 16:16:27 +08:00
Riza Sulistyo 0d7157c167
Support OpenSSL3 (#3168)
* Support OpenSSL3

* Modify code order
2022-07-08 09:25:38 +07:00
jimying b9db6ac058
Fix epoll-oneshot may cause crash (#3158) 2022-07-06 09:19:31 +08:00
jimying cbc2051d7b
Set thread display name (#3156) 2022-07-06 09:15:58 +08:00
jimying fc3763d074
Run-time detect epoll exclusive/oneshot support (#3151) 2022-07-05 08:53:15 +08:00
sauwming 0cdd34c1e0
Patch to improve epoll implementation (#3121) 2022-06-06 11:41:35 +08:00
Davy Durham 156950f32a
honoring __aarch64__ (clang's macro) as being equivalent to _M_ARM64 (MSVC's macro) to properly detect arm64 when compiling under clang (not using autoconf). This is necessary for multiarch builds. (#3017) 2022-05-04 09:13:45 +08:00
Nanang Izzuddin a575041ac3
Fix warnings related to <pj/limits.h> (#3089) 2022-04-29 14:45:10 +07:00
Riza Sulistyo ed46d2eaca
Always re-arm ioqueue for events on pj_ioqueue_poll() (#3018) 2022-04-27 10:10:23 +07:00
Riza Sulistyo 947bc1ee6d
Merge pull request from GHSA-rwgw-vwxg-q799
* Prevent potential infinite loop when parsing WAV format file

* Check if subchunk is negative.

* Fix and add checks

* Change data type from pj_ssize_t to long.

* Modify check

* Fix leak file descriptor and modify check on wav_playlist

* Move overflow/underflow check to pj_file_setpos()

* Use macro to simplify check

* modification based on comments

* Remove unnecessary casting

* Modification based on comments
2022-04-25 12:54:19 +08:00
johado 863629bc65
Fix double free of ossock->ossl_ctx in case of errors (#3069) (#3070) 2022-04-18 12:08:33 +08:00
jimying 22f4d0e78f
add kqueue support for macos/BSD (#3029) 2022-04-11 12:32:43 +08:00
jimying 5921342c0d
Fix thread attributes memory leak when create thread (FreeBSD) (#3031) 2022-04-11 12:30:42 +08:00
Riza Sulistyo 94886d72d5
Deprecate PJ_ENABLE_EXTRA_CHECK macro (#3008)
* Deprecate PJ_ENABLE_EXTRA_CHECK macro

* Modification based on comments
2022-03-08 10:27:46 +07:00
nanangizz 4a5b55b6a2 Changed version to 2.12-dev 2022-02-24 16:16:49 +07:00
nanangizz 99660f6add Changed version to 2.12 2022-02-24 14:54:38 +07:00
sauwming 6f197385c7
Miscellaneous fixes (#2969)
* Suppressed various compilation warnings
* Fixed CodeQL warning
* Fixed build warning on Android and Linux
* Fix build warning on Visual Studio
* Update target Android SDK version to 29 (for pjsua2 & app), to avoid gradle error: 'Google Play requires that apps target API level 29 or higher'.
* Add support for Camera2 API to ipjsua android app.
* Fix assertion on Win32 app (MSVC2005) because ICE transport info size is 160 bytes while the allocated buffer is just 144 bytes.
* Enable python unit test on windows for github actions.
* Avoid assertion in pjsua test caused by double calling of pjsua_conf_remove_port()
2022-02-24 14:46:01 +07:00
Tobias Schlager d2387d0121
Avoid assertions when using PJ_HAS_THREADS 0 (#2958) 2022-02-15 17:10:10 +08:00
George Joseph 668a828631
Add additional unit test options (#2961) 2022-02-11 12:28:03 +08:00
sauwming a5fa35305a
Fixed OpenSSL server context initialization (#2973) 2022-02-11 09:36:49 +08:00
Riza Sulistyo 9ffd718d17
Add support to boringssl (#2856) 2022-02-11 08:32:01 +07:00
Andreas Wehrmann c4bad5df14
do not #define snprintf and vsnprintf on Visual Studio 2015 and newer (#2971) 2022-02-11 09:12:23 +08:00
sauwming 74c0309d80
Race condition between Apple SSL destroy and event callback (#2825) 2022-02-09 17:02:49 +08:00
Nanang Izzuddin 639e7dc7e6
Add Oboe audio device backend for Android (#2707) 2022-02-08 13:58:29 +08:00
sauwming 5beae3816a
OpenSSL server-side enhancements to support session reuse and SNI (#2954) 2022-02-08 11:54:01 +08:00
Riza Sulistyo 313d536c28
Implement verify callback to TLS connection (#2962) 2022-02-08 11:15:38 +08:00
sauwming 986d7fc198
Fix build failure when PJ_POOL_DEBUG is enabled (#2947) 2022-01-18 13:40:50 +08:00
sauwming 0cdc5e8df0
Initialize pj logging earlier in pj_init() (#2949) 2022-01-18 13:37:47 +08:00
Nanang Izzuddin c6e238d2a3
Avoid memory bloat on ICE restart (#2903) 2021-12-15 09:05:20 +07:00
0xBiN 7b8ea759e1
Prevent pj_gettickcount() calculation overflow (#2899) 2021-12-07 18:35:58 +08:00
Riza Sulistyo 6ca06f63ec
Fix some doc warning (#2879) 2021-11-10 09:57:40 +07:00
Nanang Izzuddin cb97e86f9f
Add a new ioqueue API pj_ioqueue_clear_key() (#2810) 2021-09-23 08:57:25 +07:00
jimying 06e28755d4
BSD (freebsd,openbsd,netbsd..) generate uuid use os native api (#2816) 2021-09-10 08:54:38 +07:00
Riza Sulistyo 661a8cef67
Add support to windows on ARM build (#2807)
* Add support to ARM64 configuration for win32 build

* Add changes notes to webrtc and webrtc_aec3 third party sources

* Remove reference to libwebrtc_aec3 from libpjproject. Add reference it manually if libwebrtc_aec3 is needed.

* Fix build error on Release configuration.
2021-08-30 10:39:48 +07:00
sauwming 36e09d3076
Acquire lock before destroying ioqueue epoll (#2804) 2021-08-23 15:38:58 +08:00
Riza Sulistyo 6775bdc888
Don't copy sock address if it points to the same memory (#2795) 2021-08-18 10:43:35 +07:00
sauwming f6dfae1f6d
Fix socktype and duplicate checking in pj_getaddrinfo() (#2788) 2021-08-09 12:09:23 +08:00
sauwming 0ceb274989
Add Mac and iOS implementation of guid generation (#2784) 2021-08-09 11:12:04 +08:00
sauwming 5c1fa437cc
Add checks and assertion if PJSIP string length is negative (#2783) 2021-08-09 11:11:32 +08:00
Nanang Izzuddin d5f95aa066
Merge pull request from GHSA-cv8x-p47p-99wr
* - Avoid SSL socket parent/listener getting destroyed during handshake by increasing parent's reference count.
- Add missing SSL socket close when the newly accepted SSL socket is discarded in SIP TLS transport.

* - Fix silly mistake: accepted active socket created without group lock in SSL socket.
- Replace assertion with normal validation check of SSL socket instance in OpenSSL verification callback (verify_cb()) to avoid crash, e.g: if somehow race condition with SSL socket destroy happens or OpenSSL application data index somehow gets corrupted.
2021-07-23 11:49:21 +08:00
Nanang Izzuddin 8813fe2520 Re #2760: Fix documentation of pj_grp_lock_create(), group lock reference counter is initialized with zero instead of one (thanks to Cameron Pickett for the report). 2021-07-08 13:47:10 +07:00
Nanang Izzuddin 4dbc8fca31
Fix TCP/TLS connect issue when epoll using EPOLLONESHOT (#2747) 2021-06-29 14:59:45 +07:00
sauwming d245ffaf91
Ignore 192.0.0.0/29 address (#2718) 2021-05-31 16:06:25 +08:00
Theo Buehler 40c4e10c1b
Do not redefine SSL_CIPHER_get_id() for LibreSSL (#2708)
Both SSL_CIPHER_get_id() and SSL_set_session() are available in all
LibreSSL versions. SSL_CIPHER will become opaque in LibreSSL 3.4.x,
so this redefinition reaching into the struct will break the build.
2021-05-10 14:12:53 +08:00
Nanang Izzuddin 41bc488e1c
Avoid crash/exception in unregistering socket on iOS after SIP UDP socket-replace fails (#2691) 2021-04-19 09:18:20 +07:00
Sébastien Blin 997a468a5e
ip_helper_generic: ignore non running interfaces (#2687) 2021-04-12 13:21:31 +07:00
Riza Sulistyo 801484823c Changed version to 2.11-dev 2021-03-17 15:51:36 +07:00
Riza Sulistyo 842b4ba27d Changed version to 2.11 2021-03-17 14:34:46 +07:00
sauwming 3e68412e58 Apple SSL (re #2482): Remove compile warnings of unused variables 2021-03-10 19:04:40 +08:00
sauwming e56870f761 Apple SSL (re #2482): Fixed listener creation which already incorporates port in the parameters 2021-03-10 18:59:39 +08:00
sauwming 2d6dd96e5b Apple SSL (re #2482): Fixed possible incorrect scheduling of next receive if dispatch_data_apply() is called multiple times 2021-03-10 17:45:47 +08:00
Riza Sulistyo 74c34399d6 Misc (re #2504): Suppress some compile warning on VS Windows. 2021-03-09 07:32:36 +07:00
nanangizz 681b1f34a9 Misc (re #2504): Suppress some compile warnings on Linux 2021-03-08 15:00:53 +07:00
Riza Sulistyo e70c4887d0
Remove ioqueue key from set when calling pj_ioqueue_post_completion() (#2633)
* Remove ioqueue key from set when calling pj_ioqueue_post_completion().

* Clear connecting operation.
2021-02-23 12:07:51 +07:00
Nanang Izzuddin 73553fbd02
Use UTC time in PJSIP presence PIDF timestamp (#2638) 2021-02-15 09:04:06 +07:00
Alex Kalmuk da33d931cb
Fix ai_socktype to be zero when passed to getaddrinfo (#2619)
Also filter duplicate addresses from pj_getaddrinfo output.
2021-01-26 10:19:04 +07:00
naf 3e8211db8b
Add support for SECLEVEL=n (#2596) 2020-12-18 20:22:49 +08:00
Nanang Izzuddin 580b0f3ef3
TLS failed to load password-protected private key from buffer (#2606)
Fix loading TLS cert from buffer with private key password-protected, adding logs in loading cert/key, updated expired TLS cert in SSL socket unit test.
2020-12-15 10:25:13 +07:00
Nanang Izzuddin d3542d9143
Use EPOLLEXCLUSIVE or EPOLLONESHOT in ioqueue epoll (#2604)
* Update epoll to use EPOLLEXCLUSIVE, or EPOLLONESHOT if EPOLLEXCLUSIVE is not available.
* Avoid concurrency getting disabled on SSL listener socket (concurrency will be disabled when whole_data==TRUE)
* Disable EPOLLEXCLUSIVE/EPOLLONESHOT when using OpenSSL older than 1.1.0
2020-12-15 09:51:14 +07:00
Nanang Izzuddin d65cacddd3
Implement trickle ICE (#2588)
Squash & merge trickle-ice dev branch to master.
2020-12-11 09:40:57 +07:00
Nanang Izzuddin 2a0095175f
Supporting mingw-w64 (#2598) 2020-12-10 15:50:56 +07:00
sauwming c59a3b3af0
Add getting shared curves for OpenSSL 1.1.1 (#2573) 2020-11-06 14:43:29 +08:00
Riza Sulistyo c6e9af5f5a
Server Name Indication on TLS doesn't allow IP literal. (#2539)
* Server Name Indication on TLS doesn't allow IP literal.

* moved hostname check to SSL backend.

* Remove unwanted changes to the file.
2020-10-12 14:23:43 +07:00
sauwming fb8a7772ef
Apple SSL backend using Network framework (#2482) 2020-09-29 11:31:01 +08:00
Nanang Izzuddin 0157ddcda3
Update default setting for CFHost for getaddrinfo: from enabled to disabled. (#2526) 2020-09-29 10:05:09 +07:00
sauwming e2d8ee0f49
Suppress CodeQL warnings (#2530)
Also exclude some third party libs and python source
2020-09-23 18:45:59 +08:00
Riza Sulistyo 40dd48d109
Modify timer_id check on cancel() (#2463)
* modify timer_id check on cancel().

* modification based on comments.
2020-07-09 17:47:24 +07:00
sauwming 95c29aa1d2
Avoid undefinition of standard macros s_addr and s6_addr (#2423) 2020-05-06 09:38:26 +08:00
Alexey Kuznetsov 741bb0ced8
Dispatch semaphores on Darwin (#2351) (#2411)
Dispatch semaphore is a more modern semaphore implementation on Apple
platforms. Apple claims it is more efficient. A call down to kernel is
only needed when the calling thread needs to be blocked.

Dispatch semaphores work in sandboxed Mac apps, but POSIX semaphores
don't.
2020-04-30 16:03:31 +08:00
Nanang Izzuddin b23633707c
More CI works (#2376)
* pjsua-test:
  - Update pjsua-test module call: wait ICE update before checking media
  - Attempt to fix all failed tests by sipp module: changed SIPp port from 6000 to 50070 (port used by recvfrom module)
  - Update call module: confirm codec priority after change, fix DTLS-SRTP expect may race with state CONFIRMED
  - Add timeout check in telnet-ing to pjsua
  - ICE nego may race with call state CONFIRMED, so mod call better just sleep instead of expecting 'ICE nego success'.

* Other unit tests:
  - Print stack trace on crash on Linux and DarwinOS via SIGSEGV signal handler.
  - Update resolver test: print log on callback error, replace assertion checks with error return, fix comments, sleep periods, fix received packet count may be > 1 if server ignore the request (for example when the test machine experiencing high CPU load).
  - Update ccpp.yml: add -g for jobs with unit-tests.
  - More lenient on tsx retransmission count check in pjsip-test.
  - Update tsx_uac/s_test.c: allow retransmission timing diff from 150 to 500ms to accommodate possible CPU spike on some test machines.
2020-04-30 11:25:19 +07:00
sauwming 558922fc3f
Suppressed various compilation warnings (#2410)
Such as:
- conversion from string literal to 'char *' warning
- format-truncation warning

Co-authored-by: nanangizz <nanang@teluu.com>
2020-04-29 15:11:26 +08:00
Riza Sulistyo 7224dd44b5
Add thread locking callback when using OpenSSL. (#2336)
* Add thread locking callback when using OpenSSL.

* Don't use ssl socket's pool.

* move clear thread callback method using pj_atexit().

* revert unecessary changes and define new var as static.

* modification based on comments on PR.

* Add cleanup when initialization fail.

* Don't uninstall the thread callback if pj_atexit() fail.
2020-04-29 12:51:39 +07:00
Martin Navne 7c93b0b646
Update pj_ioqueue_poll TRACE macro (#2370) 2020-04-08 10:20:36 +08:00
Nanang Izzuddin 5f689f5d23
Add option to exclude benchmark tests in unit tests (#2321)
* Add option to exclude benchmark tests in unit tests

* Loosen up resolver round-robin testcondition (percent difference allowance from 5% to 10%, the test result variance relies heavily on OS random number distribution).
2020-03-19 14:46:22 +07:00
sauwming 98f70c210f
Add more CI tests on Ubuntu and Mac (#2329) 2020-03-10 16:45:54 +08:00
Nanang Izzuddin c3456980ba Add option to exclude benchmark tests in unit tests 2020-03-03 09:53:07 +07:00
Nanang Izzuddin 4fa33725bd Add TLS proto for TLS 1.3 2020-02-21 18:07:04 +07:00
mingteluu c8927c65de Changed version to 2.10-dev 2020-02-14 17:08:22 +07:00
mingteluu e5943ba8ea Changed version to 2.10 2020-02-14 16:47:41 +07:00
Nanang Izzuddin 645a057b99 Misc (re #2210): Reverting r6133 as it is reported to cause crash on OpenSSL 1.0.x, and OpenSSL docs explicitly prohibit freeing SSL_SESSION after SSL_free(). Thanks Peter Koletzki for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6148 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-31 09:55:43 +00:00
Nanang Izzuddin 113cada9e8 Misc (re #2210): Fixed compile warnings in PJLIB timer unit test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6146 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-30 07:52:51 +00:00
Nanang Izzuddin dd7073c14d Misc (re #2210): Fixed memory leak in OpenSSL initialization due to unfreed SSL_SESSION object. The leak should only be occurred once in library lifetime. Thanks to Kim Daeyoung for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6133 74dad513-b988-da41-8d7b-12977e46ad98
2020-01-10 08:02:54 +00:00
Sauw Ming d1ee4a6350 Re #2210 (misc): Fixed memory leak when getting certificate info in OpenSSL
Thanks to Florian Kretschmer for the patch.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6104 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-12 09:01:41 +00:00
Riza Sulistyo bf74f883e6 Re #2249: Fixed warning on pjlib-test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6100 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-06 07:17:01 +00:00
Riza Sulistyo dd627bc809 Close #2249: Use sorted linked list for timer implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6099 74dad513-b988-da41-8d7b-12977e46ad98
2019-11-06 06:17:53 +00:00
Riza Sulistyo 9db76e8883 Fix #2244: Prevent continuous memory allocation when getting raw certificate on TLS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6091 74dad513-b988-da41-8d7b-12977e46ad98
2019-10-11 14:26:12 +00:00
Nanang Izzuddin 617fdfd262 Re #2237: Updated SSL socket to use group lock in scheduling timer.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6082 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-30 06:50:32 +00:00
Nanang Izzuddin ac00a60f99 Misc (re #2210): Fixed compile errors on MinGW.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6079 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-26 11:15:24 +00:00
Riza Sulistyo 7eda469219 Fix #2235: UDP transport restart might not get called when replace_udp_socket() fails.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6077 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-24 15:34:33 +00:00
Nanang Izzuddin db368d6cc0 Re #2225: Fixed compile errors in timer on MSVC2005.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6067 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-09 08:41:53 +00:00
Sauw Ming 4dbeb68ec2 Re #2225: Fixed incorrect pool to be released in pjlib timer test
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6059 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-03 03:17:44 +00:00
Sauw Ming a49822da70 Fixed #2225: Timer heap refactoring
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6058 74dad513-b988-da41-8d7b-12977e46ad98
2019-09-03 02:10:45 +00:00
Riza Sulistyo ed08f5bbcb Fixed #2221: When using Openssl as TLS backend, close notify alert is not sent before closing the connection.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6054 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 12:02:50 +00:00
Riza Sulistyo 8a15cf5dce Re #2220: Fixed the use of sk_X509_NAME_new macro. It might lead to build failure or runtime crash. Thanks to Peter Koletzki for the fix.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6053 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-28 09:32:26 +00:00
Sauw Ming a190e94028 Fixed #2220: Add list of trusted root CA for OpenSSL
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6052 74dad513-b988-da41-8d7b-12977e46ad98
2019-08-23 04:53:05 +00:00
Nanang Izzuddin 3029598af6 Close #2217: Omit deprecated IPv6 addresses from ICE candidates.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6045 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-26 09:32:14 +00:00
Riza Sulistyo 2c5dc72dd5 Re #2210 (misc): Minor patch for SSL error message. Thanks to George Joseph for the patch.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6034 74dad513-b988-da41-8d7b-12977e46ad98
2019-07-01 05:41:29 +00:00
Nanang Izzuddin 3fd1a9ab6c Changed version to 2.9-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6031 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 10:41:49 +00:00
Nanang Izzuddin 598ff92e45 Changed version to 2.9
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6029 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-13 08:56:16 +00:00
Nanang Izzuddin 5bcd75aec9 Misc (re #2147): Fixed warnings in SSL socket: redefinition of typedef 'pj_ssl_sock_t' and unused 'get_pem'.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6022 74dad513-b988-da41-8d7b-12977e46ad98
2019-06-11 02:03:02 +00:00
Sauw Ming d8360bff05 Fixed #2204: Add OpenSSL remote certificate chain info
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6014 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-29 03:49:23 +00:00
Sauw Ming d059927e63 Fixed #2203: Failure to set minimum SSL version when OpenSSL 1.1 is used
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6006 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-27 03:54:27 +00:00
Riza Sulistyo 765e804fda Close #1017: TURN TLS transport implementation.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6004 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-24 03:32:17 +00:00
Riza Sulistyo 26d59020b3 Close #2201: Restart UDP transport after replace_udp_socket fail when sending data.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@6003 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-23 17:47:55 +00:00
Nanang Izzuddin 754372cdab Close #2179: Wipe out memory used for storing SSL keys before released.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5990 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-15 02:43:01 +00:00
Nanang Izzuddin 10e1d23c37 Re #1298: Updated PJLIB to use PJ_ERROR consistently.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5980 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-09 04:35:41 +00:00
Riza Sulistyo 1c5e96c7c7 Close #2193: Buffered read data on SSL socket might not immediately get read after handshake is complete.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5975 74dad513-b988-da41-8d7b-12977e46ad98
2019-05-02 10:18:26 +00:00
Nanang Izzuddin 4ad9acd150 Fixed #2191:
- Stricter double timer entry scheduling prevention.
 - Integrate group lock in SIP transport, e.g: for add/dec ref, for timer scheduling.
 


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5971 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-23 08:42:45 +00:00
Sauw Ming 70af7c08a5 Fixed #2190: Crash in ioqueue post completion if callback is not set
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5970 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-16 04:08:04 +00:00
Riza Sulistyo f3aa0eaff2 Re #2180: Added ssl_sock_imp_common.h/c to PJLIB VS2015 project (excluded for build).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5966 74dad513-b988-da41-8d7b-12977e46ad98
2019-04-11 12:15:09 +00:00
Sauw Ming cff4487def Fixed #2185: Darwin (Mac OS & iOS) native SSL backend
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5957 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-25 01:33:12 +00:00
Sauw Ming 8736f50552 Re #2160: Fixed assertion in pjlib test due to uninitialized ioqueue op keys.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5953 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-15 10:22:11 +00:00
Nanang Izzuddin c798c7b615 Re #2180: Added ssl_sock_imp_common.h/c to PJLIB MSVC2005 project (excluded for build).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5951 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-12 05:44:14 +00:00
Nanang Izzuddin 68506e2c11 Misc (re #2147): Updated SSL socket test to include host part in HTTPS request URI, otherwise most likely it will get 400 response.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5950 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-11 10:38:55 +00:00
Sauw Ming fd7a5912ce Re #2180: Suppress warning of unreferenced function parameters
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5941 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 07:04:31 +00:00
Sauw Ming 34111553e8 Re #2180: Fixed incorrect early return in pj_ssl_sock_renegotiate()
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5940 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-05 06:56:39 +00:00
Sauw Ming 6b9212dcb4 Fixed #2180: Refactoring SSL socket backend implementations
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5938 74dad513-b988-da41-8d7b-12977e46ad98
2019-03-04 09:47:25 +00:00
Nanang Izzuddin 765535c742 Re #2150: Fixed crash in SIP TLS transport after TCP socket accept error, e.g: after wakeup from background on iOS. Thanks Marcus Froeschl for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5936 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-26 03:40:57 +00:00
Nanang Izzuddin 16a91c8740 Close #2178: Added check in get_cn_from_gen_name() for empty general name string input.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5935 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-26 03:06:39 +00:00
Nanang Izzuddin b4a85b0509 Re #2176: Removed pop_freelist() + push_freelist() after remove_node() as they are not only unnecessary, they cause problem.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5934 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-13 06:51:09 +00:00
Nanang Izzuddin dc56508b63 Re #2176: added timer stress test into pjlib-test.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5933 74dad513-b988-da41-8d7b-12977e46ad98
2019-02-13 06:41:34 +00:00
Riza Sulistyo 4e965d2ad1 Close #2174: Fix out of bound error when enabling GnuTLS.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5929 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-09 09:15:11 +00:00
Nanang Izzuddin c0687a6c70 Fixed #2172: Avoid double reference counter decrements in timer in the scenario of race condition between pj_timer_heap_cancel() and pj_timer_heap_poll().
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5927 74dad513-b988-da41-8d7b-12977e46ad98
2019-01-08 09:07:47 +00:00
Riza Sulistyo f56014a118 Re #2147 (misc): Include unicode_win32.c on the build configuration for windows (mingw). Without it, the build will fail when enabling PJMEDIA_WMME_DEV_USE_MMDEVICE_API. Thanks to Niclas Larsson for the report.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5924 74dad513-b988-da41-8d7b-12977e46ad98
2018-12-13 10:03:36 +00:00
Sauw Ming c80b56d1ef Fixed #2160: stuck issue in ioqueue when detaching UDP media transport
- Fixed transport_udp so it won't call another read operation when being stopped.
 - Add robustness checks (assertion) in ioqueue recv, recvfrom, and accept to prevent the same op key being used twice. 



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5907 74dad513-b988-da41-8d7b-12977e46ad98
2018-11-07 04:34:01 +00:00
Riza Sulistyo e5bc0e68b9 Close #2150: Add new callback to notify when accept operation fails on TLS
listener.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5885 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-18 12:07:50 +00:00
Riza Sulistyo ea92c3b7d6 Changed version to 2.8-svn
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5881 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-05 09:07:16 +00:00
Riza Sulistyo 67a79f0375 Changed version to 2.8
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5879 74dad513-b988-da41-8d7b-12977e46ad98
2018-09-05 03:40:41 +00:00