summaryrefslogtreecommitdiff
path: root/pjlib
AgeCommit message (Collapse)Author
2010-03-30More ticket #1046:Benny Prijono
- fixed the wrong priority which caused zeroconf address to end up having the same priority as a legitimate interface (thanks Karl-Fredrik Blixt Hagholm for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3133 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-27Fixed MSVC compilation warning introduced by ticket #1046Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3124 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-27Fixed ticket #1048: Memory leak in enum_ipv4_ipv6_interface ↵Benny Prijono
(ip_helper_win32.c) (thanks Andrey Mamchur for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3123 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-26Ticket #1046: Zeroconf/link-local/ActiveSync IPv4 adress 169.254.x.x may be ↵Benny Prijono
used on Windows Mobile devices (thanks Jan Boquist for the info) - add treatment for special IPv4/IPv6 addresses: loopback address and link-local address - with this treatment, link-local address will only be used if there is no other non-loopback/non-link-local IP addresses, and loopback address will only be used if there's absolutely no other IP address git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3121 74dad513-b988-da41-8d7b-12977e46ad98
2010-03-06Ticket #1043:Nanang Izzuddin
- Fixed bug of unused timeout setting in Symbian SSL socket, ssl_sock_symbian.cpp. - Added an SSL test scenario of SSL connect timeout, SSL socket client tries to connect to non-SSL socket server. - Fixed OpenSSL-based SSL socket to start SSL timer before TCP connect (was started after TCP connected and before SSL handshake). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3117 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-25More #1032: fixed gcc warnings in printf formatBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3112 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-25More ticket #1032:Nanang Izzuddin
- Updated transport state notification callback to return void. - Updated transport state enum to only contain connected and disconnected, no more bitmask value. - Added direction field to SIP transport. - Removed remote hostname hash from transport key. - Updated cert info dump to return -1 when buffer is insufficient. - Added new error code PJSIP_TLS_ECERTVERIF. - Updated get_cert_name() in ssl_sock_symbian.c to use heap buffer instead of stack. - Minors, e.g: added prefix PJ in cipher types, docs. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3110 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-24Fixed ticket #1040: Problem with getting the default IP interface on FreeBSD ↵Benny Prijono
due to wrong argument to connect() (thanks Roman Grachev for the patch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3107 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-24Ticket #1032:Nanang Izzuddin
- Initial version of server domain name verification: - Updated SSL certificate info, especially identities info - Updated verification mechanism as in the specifications in ticket desc. - Added server domain name info in pjsip_tx_data. - Added alternative API for acquiring transport and creating transport of transport factory to include pjsip_tx_data param. - Server identity match criteria: - full host name match - wild card not accepted - if identity is URI, it must be SIP/SIPS URI - Initial version of transport state notifications: - Added new API to set transport state callback in PJSIP and PJSUA. - Defined states: connected/disconnected, accepted/rejected, verification errors. - Minors: - Updated SSL socket test: dump verification result, test of requiring client cert, and few minors. - Updated test cert to include subjectAltName extensions. - Added SSL certificate dump function. - Updated max number of socket async operations in Symbian sample apps (RSocketServ::Connect()) to 32 (was default 8). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3106 74dad513-b988-da41-8d7b-12977e46ad98
2010-02-05Misc (#1026): PJLIB does not return the correct error code when TCP ↵Benny Prijono
connection fails on Linux git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3088 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29More ticket #1037:Benny Prijono
- bug in aligning pointer if sizeof(long) is less than sizeof(void*). Thanks John Ridges for pointing this out git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3082 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-29Fixed ticket #1037: Memory pool alignment error when alignment is set to be ↵Benny Prijono
greater than the default (thanks John Ridges for the report): - fixed the pool allocation routines in PJLIB, - add alignment test in pjlib-test (only useful if PJ_POOL_ALIGNMENT is configured in config_site.h), - fixed other pool tests in pjlib-test which are broken when PJ_POOL_ALIGNMENT is enlarged git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3081 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-27Fixed ticket #1035: Crash in timer heap cleanup sequence on Symbian if the ↵Benny Prijono
pool for the timer entry is released beforehand (thanks Tamàs Solymosi for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3076 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-20Ticket #1026: Wrong endianness detection for Motorola m68k architecture in ↵Benny Prijono
pj/config.h (thanks Andreas Wehrmann for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3066 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13Initial fixes for #993 (OpenSolaris issues)Benny Prijono
- configure script patch for FIONBIO and SIOCGIFFLAGS errors git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3059 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-13Initial OpenBSD fixes (#994):Benny Prijono
pjlib: - Autoconf fixes in detecting header availability - Undefined sched_get_priority_max() and sched_get_priority_min() - protect with #ifdef _POSIX_PRIORITY_SCHEDULING, and - return hardcoded (0, 31) if __OpenBSD__ macro is declared - Better GUID generation pjlib-test: - Reduce the loop in PJILB activesock test - Fixed bug in ioqueue unregistration test which caused assertion error in destroying mutex pjlib-util-test: - Fixed bug in pjlib-util resolver test git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3057 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-11Updated to 1.5.5-trunk after releasePerry Ismangil
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3056 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-11Changed version to 1.5.5Perry Ismangil
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3054 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08Ticket #1015: Disabled ioqueue Completion Port (ioqueue_winnt.c).Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3052 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08Ticket #1001:Nanang Izzuddin
- Moved setsockopt(SO_UPDATE_ACCEPT_CONTEXT) from pj_sock_accept() to ioqueue_on_accept_complete(). - Added setsockopt(SO_UPDATE_ACCEPT_CONTEXT) in pj_sock_accept() for new accepted socket when immediate connection is available. - Added pj_sock_getsockname() check in unit test ioq_tcp.c for new accepted socket. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3051 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-08Misc (#1003):Benny Prijono
- Fixed gcc warnings in activesock unit test - 'make clean' did not clear pjsystest executable git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3048 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-06Ticket #1012: Potential buffer overflow in Unicode string conversion (thanks ↵Benny Prijono
Orville Pike for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3047 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-06Ticket #992: Symbian build issues using RVCT compiler (thanks Gabor Tanka ↵Benny Prijono
for the fix) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3046 74dad513-b988-da41-8d7b-12977e46ad98
2010-01-04Ticket #1010:Nanang Izzuddin
- Fixed bug in some APIs of address resolver and IP helper to reset sin_len member of sockaddr. - Added purity test of sin_len member checking in pjlib test. - Fixed bug in pj_getaddrinfo() when address family param set to PJ_AF_UNSPEC (assertion raised as it called pj_sockaddr_get_addr() with PJ_AF_UNSPEC too). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3044 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-30Few fixes and enhancements to Windows IP helper, related to #1000:Benny Prijono
- enum_ipv4_ipv6_interface() function: - bug fix: function should return error if no interface is found - do not include interfaces that are down, loopback interface, interface with 0.0.0.0/24 address, interface with zero address, etc. - improve buffer robustness for enum_ipv4_interface() and enum_ipv4_ipv6_interface() functions, by supplying only small buffer, but added fallback to allocating the buffer from heap if the buffer is not large enough to contain the result. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3040 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-29More ticket #1000:Benny Prijono
- fixed bug caused by r3030. If an adapter with NULL firstUnicastAddress is found, the function will return uninitialized array element. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3038 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-29Fixed ticket #1007: Heap corruption when socket address with invalid address ↵Benny Prijono
family is given (thanks Emil Sturniolo for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3037 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-16Ticket #1004: Symbian timer heap fixBenny Prijono
- timer heap now records active timers and cancel them when it's destroyed git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3034 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-14Ticket #1000: fixed different treatment with regard to Unicode argument to ↵Benny Prijono
GetProcAddress between Windows and Windows Mobile git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3033 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-10More ticket #1000 (IPv6 interface enumeration fails due to typo error in ↵Benny Prijono
Windows targets): - fixed crash if GetAdaptersAddresses() returns adapter with NULL "firstUnicastAddress". This happens when the interface is disabled. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3030 74dad513-b988-da41-8d7b-12977e46ad98
2009-12-08Fixed ticket #1000: IPv6 interface enumeration fails due to typo error in ↵Benny Prijono
Windows targets git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3029 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-25Changed version to 1.5Benny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3026 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-23Misc (#951): fixed compilation warning on Win32 Release buildBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3023 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-20Ticket #957:Nanang Izzuddin
- Fixed compile error of incompatible param type (or bad type conversion) on Symbian 5th ed (and perhaps also on some GCC versions). - Fixed on_connect_complete() to reset SSL sock state before callback when connection fails (OpenSSL impl). - Fixed saving remote address before start connecting, so it won't miss remote address info when socket connection establishes immediately (OpenSSL impl). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3020 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11Ticket #957: Updated SSL sock performance test to avoid false connected ↵Nanang Izzuddin
state problem caused by server listen backlog excess (problem examined on mac platform). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3018 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-11#972: Removed PJ_SOL_SOCKET check in pjlib-test as it is defined as 0xffff ↵Nanang Izzuddin
on some platforms (e.g: Win, Mac). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3016 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10Misc (#951): fixed compilation warning on gcc/LinuxBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3006 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-10Fixed ticket #989: Issues with Windows Unicode build (thanks Michele ↵Benny Prijono
Cicciotti for the patch) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3002 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09Ticket #957: Fixed 0.0.0.0:0 address returned by SIP TLS client transport, ↵Nanang Izzuddin
which would cause 0.0.0.0:0 address in SIP via header. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3000 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09Ticket #950 and #957: Benny Prijono
- added QoS options on PJLIB/PJLIB SSL/TLS socket/transport - added demo in Symbian ua.cpp git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2998 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09More #957 (TLS): updated pj_perror() with the new PJ_PERROR() APIBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2994 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09More #950 (QoS): updated with the new pj_perror() syntaxBenny Prijono
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2993 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-09Updated ticket #981: pj_perror() and PJ_PERROR() API:Benny Prijono
- added PJ_PERROR() macro to allow compile time omitting - changed pj_perror() API to allow formatting of the title using printf like format - added a simple test in pjlib-test - updated Doxygen documentation git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2992 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-06Ticket #957:Nanang Izzuddin
- Updated Symbian PJLIB test build setting to enable SSL sock test. - Fixed ciphers enumeration in Symbian SSL sock. - Fixed OpenSSL SSL sock to avoid initializing OpenSSL multiple times. - Fixed SSL unit test to avoid divide-by-zero in setting random seed. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2990 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-06Ticket #957: Workaround fix for SSL socket specific related to ticket #985.Nanang Izzuddin
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2989 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04Ticket #957:Nanang Izzuddin
- Applied workaround solution for getting local address problem with getsockname on win IOCP by using parent local address instead. - Fixed SSL socket not to return PJ_FALSE in active socket accept callback, to keep accepting connections. - Applied workaround solution for OpenSSL error mapping, as OpenSSL error codes are big numbers that won't fit pj_status_t. - Minor updates, e.g: using pj_perror(), removing some logs, OpenSSL error print callback. - Minor updates on SSL unit test, e.g: start_read() before start sending, additional ioqueue poll to cleanup sockets, add timeout feature to https client test. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2986 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04Fixed ticket #975: Symbian timer heap implementation unable to schedule ↵Benny Prijono
duration more than 2100 seconds (thanks Nir Elkayam for the report) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2984 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04Misc fix (#951): Fixed possible random/unexpected pairs generated in ioqueue ↵Nanang Izzuddin
tcp unit test (such case was occured when test was performed using IOCP ioqueue on Vista). git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2983 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-04More ticket #972: setsockopt options compatibility on various platforms: ↵Benny Prijono
pjlib-test failed on socket test because SOL_SOCKET is defined by Windows Platform SDK as 0xFFFF git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2982 74dad513-b988-da41-8d7b-12977e46ad98
2009-11-03Ticket #957:Nanang Izzuddin
- Added SSL socket performance test. - Added incompatible SSL proto test. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2981 74dad513-b988-da41-8d7b-12977e46ad98