Commit Graph

26 Commits

Author SHA1 Message Date
Andrey Semashev
e5eb4da757 Update for Asio 1.34 and later compatibility.
This updates usage of Asio for compatibility with version 1.34 and
newer, where a number of previously deprecated APIs were removed.
2025-09-05 21:05:35 +03:00
Renaud S
fdc2682854 reTurn sync test client: binding to localhost address make little sense to me
And doesn't work (at least on Windows)
2022-04-12 15:21:08 +02:00
Renaud S
23bca46d03 reTurn test clients: set custom software attribute 2022-04-12 13:29:18 +02:00
mateus
62147db8e7 added config.h in reTurn/* when needed 2016-05-10 08:52:53 -03:00
Scott Godin
e3958145c6 -modifications to return so that it will build without USE_SSL defined 2016-04-06 11:58:06 -04:00
Scott Godin
6c1840f5b1 -added server certificate hostname validation support for clients
-added reTurn config object for server
-updated sample certs in reTurn to use a certificate with SubjectAltName


git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@8408 ddefafc4-47db-0310-ae44-fa13212b10f2
2009-01-28 21:06:58 +00:00
Scott Godin
8d4d7ff7fa -added lifetime to channel bindings
-added ability for client API's to automatically handle channel binding refreshes
 Note:  This is done at an interval that will be frequent enough to also refresh permissions
-added checks to channel data messages over UDP to ensure packet size is large enough to hold indicated data size
-fixed bug in server logic that caused it always send DataInd instead of Channel data messages
-reTurn is now turn-12 compliant

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@8397 ddefafc4-47db-0310-ae44-fa13212b10f2
2009-01-14 18:46:21 +00:00
Scott Godin
168fc41fb3 -update a bunch of license blocks from Vovida 2.0 to BSD-3 clause that were supposed to have been changed months ago
git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@8367 ddefafc4-47db-0310-ae44-fa13212b10f2
2008-12-16 18:10:49 +00:00
Scott Godin
e04ea48045 -final updates for RFC5389 support
-updated README.txt to reflect RFC5389 updates and TODO's
-allow command line option to configure independent port for STUN/TURN over TLS
-modified BindRequest handling on server to look for StunMagic cookie and add 
 XOR mapped address vs Mapped Address appropriately

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@8311 ddefafc4-47db-0310-ae44-fa13212b10f2
2008-11-24 00:46:22 +00:00
Scott Godin
fc6fed99f8 -made stream output resipfaststream friendly
-started update from RFC3489-bis11 to RFC5389
-renamed Server attribute to Software
-ensure if an attribute appears more than once, then the duplicates are ignored
-ensure encoding/decoding of attribute padding is RFC5389 compliant
-removed RefreshInterval attribute
-fixed some ipv6 parsing problems



git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@8297 ddefafc4-47db-0310-ae44-fa13212b10f2
2008-11-19 16:40:45 +00:00
Scott Godin
7caedd1c4d -updated return from behave-turn-05 to behave-turn-07
- Highlights...
  - removed 4-byte framing for all TURN messaging
  - Uses new Channel Bind mechanism
  - new allocation props header, and reservation token header
  - move requested ip address header
-synchronous reTurn client implementation used asio::socket::cancel which now
 requires ASIO_ENABLE_CANCELIO define on windows platforms in asio version 1.0.0
-updated reflow for reTurn changes


git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7754 ddefafc4-47db-0310-ae44-fa13212b10f2
2008-05-26 21:55:31 +00:00
Scott Godin
9d9a5e89c1 -added long term auth support to TurnSocket (non-Async version)
-changed TestAsyncClient and TestClient help text to be explicit that it wants a turn server/port on the command line (not a stun server/port)

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7612 ddefafc4-47db-0310-ae44-fa13212b10f2
2008-04-20 16:41:48 +00:00
Scott Godin
a0d03ebda4 - reTurn - optimized some data buffer copies - uses new DataBuffer class instead of resip::Data.cxx
- added new TestRtpLoad test program
- made TurnAsyncSocket callbacks thread safe
- implemented Long Term authentication in reTurn Server and AsyncClient APIs - note: Syncronous client does not support this yet
- added better logging on missing TLS files startup errors
- fixed looping bug in shutting down Udp relay server

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7521 ddefafc4-47db-0310-ae44-fa13212b10f2
2008-01-06 18:27:47 +00:00
Scott Godin
e9ee60234f - asynchronous reTurn client work started - not completed yet
git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7425 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-11-25 22:31:16 +00:00
Scott Godin
2fc666a658 -completed restructuring of TCP and TLS server - now working again
-added support for STUN TCP and STUN TLS server (on top of TURN TCP and TURN TLS)

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7423 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-11-23 01:13:27 +00:00
Scott Godin
c8a3c55632 -major restructuring in preparation for async client api
-optimized data copying
-Tcp and Tls servers currently disabled - still need some work to update to new structure
-fix in client handling of channel number

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7418 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-11-21 22:28:22 +00:00
Scott Godin
3e1b9e8ed0 -updated reTurn to submitted turn-05 draft
- removed fingerprint attribute from turn methods
  - modified channel number from 8 to 16 bits
  - made starting channel number random
  - implemented Turn Refresh Method

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7408 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-11-18 19:40:48 +00:00
Scott Godin
f37534baf1 -updated ASIO from 0.3.8 RC3 to 0.3.8 release
-refactored client api
 - connect call is required before sending stun/turn requests
 - new set usernameAndPassoword api
 - removed stunaddress/port and username/password from createAllocation and bindRequest

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7398 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-11-03 18:02:07 +00:00
Scott Godin
4fc41f450c -implemented 3489-bis11 bind request on client api
-implemented synchronous DNS hostname resolution for client api
-implemented automatic client allocation refreshes
-fixed client TCP socket reading to handle TCP messages that are received in multiple packets
-cleanup up TurnAllocation accessors
-implemented proper xor handling for turn address attributes


git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7395 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-11-02 21:42:41 +00:00
Scott Godin
65996704ae -added server handling for udp retransmissions (tid map)
-fixed shared_ptr_from_this handling for TlsConnections
-fix crash if turn deallocation happens immediately after sending data



git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7368 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-10-28 21:02:54 +00:00
Scott Godin
5295ed8c03 -fixed eol-style
git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7366 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-10-28 17:34:51 +00:00
Scott Godin
96919eb62b -fixed TLS Server so that first TLS connection does not fail
-enhanced TestClient with RemotePeer socket
-fixed misc client side bugs
-cleanup RFC3489 back compat support so that StunMessage doesn't carry info
-fix for peer->client framed data

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7365 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-10-28 16:52:18 +00:00
Scott Godin
a970126eba Client side behave-turn-05 implemented - partially tested
git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7355 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-10-24 20:54:56 +00:00
Scott Godin
4246f74c3c -begin update to behave-turn-05 (use of Channel Numbers) - not yet complete
git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7346 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-10-22 02:43:23 +00:00
Scott Godin
9f517e3f97 - added client timeouts when waiting for stun responses and for receive api
- implemented TCP client timeout of 7900ms
- implemented UDP client retransmissions at 100, 300, 700, 1500, 3100, 6300ms

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7336 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-10-17 21:21:19 +00:00
Scott Godin
42a41a988c - reorg structure so that client is separated - fits into resip build system better
git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@7329 ddefafc4-47db-0310-ae44-fa13212b10f2
2007-10-15 13:35:01 +00:00