Commit Graph

531 Commits

Author SHA1 Message Date
Riza Sulistyo b3e5f76788 Changed version to 2.14-dev 2023-11-01 16:45:39 +07:00
Riza Sulistyo 08578e86ee Changed version to 2.14 (2)-Change PJ_VERSION_NUM_EXTRA 2023-11-01 16:37:28 +07:00
Riza Sulistyo b1c5377a2b Changed version to 2.14 2023-11-01 11:41:09 +07:00
sauwming 7ff31e3113
Set default SSL sockopt param to have TCP_NODELAY for GnuTLS backend (#3708) 2023-09-20 18:04:13 +08:00
Nanang Izzuddin eff4826803
Docs: more fixes on sample/source links (#3675) 2023-09-06 09:56:26 +07:00
Nanang Izzuddin 013c30304d
Fix docs for broken PJLIB sample links (currently the samples are doxygen pages and breathe-apidoc does not process doxygen page) (#3671) 2023-08-29 09:17:53 +07:00
Riza Sulistyo d51e247135
Add option to disable renegotiation on TLSv1.2 or earlier (#3663)
* Add option to enable SSL_OP_NO_RENEGOTIATION on OpenSSL

* Add the option to runtime configuration

* Modification based on comments

* Add the implementation files and pjsua2 modification
2023-08-23 09:52:04 +07:00
Nanang Izzuddin fd8880397f
Add native SSL socket instance in TLS verification callback (#3630) 2023-08-22 13:49:07 +07:00
Riza Sulistyo 914ce755a6
Support OpenSSL3 with "no-deprecated" build option (#3603) 2023-07-05 11:39:01 +08:00
Nanang Izzuddin 1af96abb89
Update SDP o= and t= lines to use 64 bit unsigned integer (#3565) 2023-05-17 11:53:31 +08:00
jimying b4921bfcd9
Add close-on-exec flag (#3553) 2023-05-16 11:59:37 +08:00
jimying a3035bcaa4
Fix PJ_CC_NAME/VER incorrec when use clang compiler to build (#3523) 2023-04-27 17:47:44 +08:00
Riza Sulistyo 19f083d317
Fix undefined "IN6_IS_ADDR_LINKLOCAL" on Visual Studio (#3503) 2023-04-14 10:11:04 +07:00
sauwming f5fab2619e
Fixed build failure if PJ_JNI_HAS_JNI_ONLOAD is disabled (#3496) 2023-04-13 11:14:48 +08:00
sauwming def3e179c3
Fixed max hostname default value and usage (#3478) 2023-04-06 14:27:12 +08:00
sauwming ef75213af3
Fixed coverity warnings (#3487) 2023-04-06 12:18:48 +08:00
bennylp 52fe443ea1 Minor changes based on reviews 2023-03-29 11:28:27 +07:00
bennylp 7a058dee81 Replace unsafe string functions such as sprintf, strcpy with the safer counterparts e.g. snprintf, strxcpy 2023-03-27 18:48:25 +07:00
bennylp 5ed9461bbe Replace unsafe string functions such as strcpy, strncpy, strcat, and sprintf with newly implemented pj_ansi_strxcpy, pj_ansi_strxcpy2, and pj_ansi_strxcat 2023-03-24 11:11:20 +07:00
sauwming 51072289a3 Apply printf decor to pj_perror() 2023-03-21 11:48:47 +08:00
sauwming 29d872af40 Merge branch 'master' into coverity01 2023-03-20 18:29:57 +08:00
sauwming 86b2ed38be Fixed printf format warnings (part 1) 2023-03-20 18:29:25 +08:00
sauwming 195cd3740f
Modify default value of PJ_MAX_HOSTNAME (#3438) 2023-03-20 14:25:16 +08:00
bennylp 8c2f28ee8a Fix bug in PJ_ASSERT_ON_FAIL if exec_on_fail is "break" or "continue" 2023-03-15 06:43:29 +07:00
sauwming 4680c7add7 Merge master 2023-03-14 10:24:59 +08:00
jimying b4184bb56d
Fix build with CFLAGS -Wextra warning reports (#3428) 2023-03-14 09:56:18 +08:00
sauwming 93b6d942cf
Limit the number of searched blocks searched for pool allocation (#3423) 2023-03-13 07:58:05 +08:00
bennylp b97614d1bc Drop pj_ansi_safe_strncpy() in favor of safe pj_ansi_strncpy(), fix incorrect use of pj_ansi_safe_strncpy() 2023-02-21 18:25:04 +07:00
bennylp 6766bf5777 Fix strncpy warning for gcc and clang 2023-02-21 13:04:01 +07:00
sauwming 221673dc39 Fixed several warnings (combined) 2023-02-20 14:55:06 +08:00
bennylp 5fe4bc1972 Fix usages of strncpy(), pj_ansi_strncpy(), and strncat() by replacing them with pj_ansi_safe_strncpy() and pj_ansi_safe_strcpycat() 2023-02-18 12:51:49 +07:00
jimying 8054a92cd5
Fix doc error (#3375) 2023-02-16 10:03:01 +08:00
mscdex fbb385d029
Add ability to retrieve ioqueue OS handle (#3279) 2023-01-27 11:25:53 +07:00
sauwming 52f7c28622 Changed version to 2.13-dev 2022-11-24 16:10:50 +08:00
sauwming 43c745789d Changed version to 2.13 (2)-change PJ_VERSION_NUM_EXTRA 2022-11-24 13:24:24 +08:00
sauwming f25c7457cb Changed version to 2.13 2022-11-24 13:21:13 +08:00
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
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
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
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 de56dda311
Add new api pj_sock_socketpair() (#3179)
* Add new api pj_sock_socketpair()
2022-08-08 08:36:48 +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
bennylp 24201b0983 Add pj_log_set/get_indent() API to allow threads to synchronize log indentation 2022-07-18 08:58:09 +07:00
jimying cbc2051d7b
Set thread display name (#3156) 2022-07-06 09:15:58 +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 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
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