/[resiprocate]/main/reTurn/StunMessage.cxx
ViewVC logotype

Log of /main/reTurn/StunMessage.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 11159 - (view) (download) (annotate) - [select for diffs]
Modified Fri Apr 25 14:03:32 2014 UTC (5 years, 6 months ago) by sgodin
File length: 57895 byte(s)
Diff to previous 10963
-modified asio and boost include file ordering to avoid multiply defined symbol errors on linking
 -in preparation for upgrade of asio drop and support for latest boost 
 -include asio/ssh.hpp everywhere asio.hpp is included
 -include boost headers before others, to ensure we are not redefining stdint definitions in some includes
  and not others


Revision 10963 - (view) (download) (annotate) - [select for diffs]
Modified Thu Feb 13 15:41:14 2014 UTC (5 years, 9 months ago) by sgodin
File length: 57894 byte(s)
Diff to previous 10894
-changes to make reTurn compatible with ASIO 1.10.1

Revision 10894 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 20 22:43:47 2014 UTC (5 years, 10 months ago) by sgodin
File length: 57915 byte(s)
Diff to previous 10779
-use new SHA1 class to allow Websockets transport without OpenSSL



Revision 10779 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 24 01:26:14 2013 UTC (5 years, 10 months ago) by Dpocock
File length: 57806 byte(s)
Diff to previous 10600
reTurn: support for hashed passwords in user database file

Revision 10600 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 29 10:46:57 2013 UTC (6 years, 1 month ago) by dpocock
File length: 57552 byte(s)
Diff to previous 10213
reTurn: StunMessage: correct support for 64-bit values

Revision 10213 - (view) (download) (annotate) - [select for diffs]
Modified Sat May 18 19:33:32 2013 UTC (6 years, 6 months ago) by sgodin
File length: 57352 byte(s)
Diff to previous 10137
-optimization to not calculateHmacKey multiple times

Revision 10137 - (view) (download) (annotate) - [select for diffs]
Modified Sun Apr 28 18:43:19 2013 UTC (6 years, 6 months ago) by sgodin
File length: 57352 byte(s)
Diff to previous 10131
-merge work from b-counterpath-recon-20130424 with some changes
 - upped receive buffer size from 2048 to 4096
 - added setOnBeforeSocketClosedFp to AsyncSocketBase - Provides an opportunity
   for the app to clean up, e.g., QoS-related data or resources just before 
   the socket is closed
 - OS level Udp socket receive buffer size set to 66560
 - TurnAsyncSocketBase - use dispatch instead of post for send API for
   increased efficiency
 - TurnAsyncSocket - new client side APIs
   - setLocalPassword for checking integrity of incoming STUN messages
   - connectivityCheck for ICE connectivity checks 
   - setOnBeforeSocketClosedFp for QOS cleanup (windows)
   - send API now split into send(To)Framed and send(To)Unframed
   - Queue of guards modified to use a weak functor template instead
   - onBindFailure and onBindSuccess now return the Tuple that failed or succeeded
 - DataBuffer improvements
 - StunMessage - added ice attributes


Revision 10131 - (view) (download) (annotate) - [select for diffs]
Modified Mon Apr 22 13:33:55 2013 UTC (6 years, 7 months ago) by sgodin
File length: 53195 byte(s)
Diff to previous 9497
-improved diagnostics in RequestHandler - print senders tuple with errors
-detect port in use errors when creating relay
-move permission checking into TurnAllocation object for better encapsulation
-TCP/TLS Server classes - ensure we try to accept future connections if we
 receive an error indicating we ran out of file descriptors
-TLS/UDP Servers classes - throw on errors in constructor
-TurnAllocation/UdpRelayServer - added flags so that some errors only log 
 a Warning level once, then will log at Debug level after - this helps to 
 avoid flooding logs with Warning level messages



Revision 9497 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 7 22:06:33 2012 UTC (7 years, 7 months ago) by dpocock
File length: 53024 byte(s)
Diff to previous 9485
Remove typo warning

Revision 9485 - (view) (download) (annotate) - [select for diffs]
Modified Sat Apr 7 00:34:03 2012 UTC (7 years, 7 months ago) by dpocock
File length: 53025 byte(s)
Diff to previous 9371
Switch over to autotools build system from dpocock-autotools branch

Revision 9371 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 1 20:30:42 2012 UTC (7 years, 9 months ago) by sgodin
File length: 52967 byte(s)
Diff to previous 9055
-reTurn Server bug fixes
 - fix VS2008 project file to add UserAuthData class
 - log error in UdpServer if failure to bind
 - add StackLog logging of request type when encoding a message
 - added missing request type TurnCreatePermissionMethod to operator<<
 - log hex() version of HMAC keys, since they are binary
-return Client API fixes
 - TurnSocket - ensure we are connected before allowing send
 - Remove warning about 'this' use in initiator list - pointer is only stored
 - Increase allowed send size from 1024 bytes to 2048
 - fix potential memory leak with mActiveRequestMap (TurnAsyncSocket class)
 - ensure retrans timer is stopped when request is removed from map

Revision 9055 - (view) (download) (annotate) - [select for diffs]
Modified Fri Mar 11 19:32:30 2011 UTC (8 years, 8 months ago) by sgodin
File length: 52894 byte(s)
Diff to previous 8366
-allow multiple XOR_PEER_ADDRESS in Create Permission requests - thanks to Anshuman

Revision 8366 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 14 20:48:09 2008 UTC (10 years, 11 months ago) by sgodin
File length: 52744 byte(s)
Diff to previous 8365
-some minor code re-factoring

Revision 8365 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 14 20:28:08 2008 UTC (10 years, 11 months ago) by sgodin
File length: 52538 byte(s)
Diff to previous 8358
-updated stun/turn message parsing and attribute naming to behave-turn-12

Revision 8358 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 5 02:42:13 2008 UTC (10 years, 11 months ago) by sgodin
File length: 54296 byte(s)
Diff to previous 8357
-fix for long term authentication all draft-ietf-behave-stun-test-vectors-04 tests now pass!

Revision 8357 - (view) (download) (annotate) - [select for diffs]
Modified Fri Dec 5 01:53:48 2008 UTC (10 years, 11 months ago) by sgodin
File length: 54296 byte(s)
Diff to previous 8347
-fixed finger print crc calc - final XOR should be 0xFFFFFFFF before STUN final XOR is applied - this is not obvious from text in RFC5389

Revision 8347 - (view) (download) (annotate) - [select for diffs]
Modified Mon Dec 1 21:12:58 2008 UTC (10 years, 11 months ago) by sgodin
File length: 54506 byte(s)
Diff to previous 8311
-adding stun test vectors from draft-ietf-behave-stun-test-vectors-04
-note:  there are issues between reTurn and fingerprint attribute in test vector
        and reTurn and message integrity attribute in long term auth test vector
-fixed insert and compare of StunMagicCooke (found from raft-ietf-behave-stun-test-vectors-04)



Revision 8311 - (view) (download) (annotate) - [select for diffs]
Modified Mon Nov 24 00:46:22 2008 UTC (10 years, 11 months ago) by sgodin
File length: 53976 byte(s)
Diff to previous 8308
-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

Revision 8308 - (view) (download) (annotate) - [select for diffs]
Modified Sat Nov 22 21:57:52 2008 UTC (11 years ago) by sgodin
File length: 53869 byte(s)
Diff to previous 8301
-added checking for unknown comprehension-required attributes and sending 420 response

Revision 8301 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 20:10:43 2008 UTC (11 years ago) by sgodin
File length: 53567 byte(s)
Diff to previous 8299
-more RFC5389 updates
  -added Software header to client requests
  -changed TCP request timeout to 39500ms as per RFC5389


Revision 8299 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 19:40:34 2008 UTC (11 years ago) by sgodin
File length: 53567 byte(s)
Diff to previous 8298
-added max error code reason size
-fixed some bugs in unknown attribute parsing and encoding - modified to use RFC5389 padding

Revision 8298 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 19:01:42 2008 UTC (11 years ago) by sgodin
File length: 52975 byte(s)
Diff to previous 8297
-added max sizing for string attributes
-corrected message integrity calculations to be RFC5389 compliant

Revision 8297 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 19 16:40:45 2008 UTC (11 years ago) by sgodin
File length: 51578 byte(s)
Diff to previous 8205
-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



Revision 8205 - (view) (download) (annotate) - [select for diffs]
Modified Mon Aug 18 17:53:57 2008 UTC (11 years, 3 months ago) by sgodin
File length: 45167 byte(s)
Diff to previous 7755
-changes to reflow/reTurn/recon to work with resip fast streams
-changes to recon (RemoteParticipant.cxx) to update to new end reason list

Revision 7755 - (view) (download) (annotate) - [select for diffs]
Modified Tue May 27 01:19:13 2008 UTC (11 years, 5 months ago) by sgodin
File length: 45137 byte(s)
Diff to previous 7754
-some minor fixes to reTurn turn-07 update

Revision 7754 - (view) (download) (annotate) - [select for diffs]
Modified Mon May 26 21:55:31 2008 UTC (11 years, 5 months ago) by sgodin
File length: 45151 byte(s)
Diff to previous 7729
-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


Revision 7729 - (view) (download) (annotate) - [select for diffs]
Modified Fri May 9 19:19:21 2008 UTC (11 years, 6 months ago) by sgodin
File length: 44731 byte(s)
Diff to previous 7521
-merged b-recon-20080504 with main - summary:
  - added the new reflow and recon projects
  - changes to configure to support new projects and
    ask if repro should be built or not
  - updated ASIO to 1.0.0
  - added VS2005 project files and solutions for reTurn
  - moved/merged dtls_wrapper project into reflow


Revision 7521 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jan 6 18:27:47 2008 UTC (11 years, 10 months ago) by sgodin
File length: 44669 byte(s)
Diff to previous 7513
- 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

Revision 7513 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 22 23:30:21 2007 UTC (11 years, 11 months ago) by sgodin
File length: 45035 byte(s)
Diff to previous 7501
-updated some reTurn server code for rfc3489-bis13

Revision 7501 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 19 21:42:02 2007 UTC (11 years, 11 months ago) by sgodin
File length: 44994 byte(s)
Diff to previous 7476
-ServerRegistration.cxx - remove compiler warning
-BasicCall.cxx - fixed typo
-reTurn - use resip logging subsystem
-reTurn - code cleanup for converstion to/from StunAtrAddress and StunTuple
-OpenSSLInit - make sure locking function does not get called after de-initialization
 - this is possible on applications that use rutil with openSSL and openSSL from a different library


Revision 7476 - (view) (download) (annotate) - [select for diffs]
Modified Sun Dec 2 19:35:56 2007 UTC (11 years, 11 months ago) by sgodin
File length: 44002 byte(s)
Diff to previous 7418
- added retransmit and request timeout timers to async sockets
- made Async Socket calls thread safe
- Added WIN32 memory leak detection to server and test client

Revision 7418 - (view) (download) (annotate) - [select for diffs]
Modified Wed Nov 21 22:28:22 2007 UTC (12 years ago) by sgodin
File length: 43968 byte(s)
Diff to previous 7408
-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

Revision 7408 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 18 19:40:48 2007 UTC (12 years ago) by sgodin
File length: 43972 byte(s)
Diff to previous 7399
-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

Revision 7399 - (view) (download) (annotate) - [select for diffs]
Modified Sat Nov 3 19:02:42 2007 UTC (12 years ago) by sgodin
File length: 44205 byte(s)
Diff to previous 7395
-allow client to handle binding requests
-allow client and server to handle binding indications

Revision 7395 - (view) (download) (annotate) - [select for diffs]
Modified Fri Nov 2 21:42:41 2007 UTC (12 years ago) by sgodin
File length: 44276 byte(s)
Diff to previous 7366
-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


Revision 7366 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 28 17:34:51 2007 UTC (12 years ago) by sgodin
File length: 43811 byte(s)
Diff to previous 7365
-fixed eol-style

Revision 7365 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 28 16:52:18 2007 UTC (12 years ago) by sgodin
File length: 45051 byte(s)
Diff to previous 7355
-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

Revision 7355 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 24 20:54:56 2007 UTC (12 years ago) by sgodin
File length: 45480 byte(s)
Diff to previous 7348
Client side behave-turn-05 implemented - partially tested

Revision 7348 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 22 16:52:21 2007 UTC (12 years, 1 month ago) by sgodin
File length: 45440 byte(s)
Diff to previous 7346
- completed Server coding for behave-turn-05 channels (untested)
- client implementation still pending

Revision 7346 - (view) (download) (annotate) - [select for diffs]
Modified Mon Oct 22 02:43:23 2007 UTC (12 years, 1 month ago) by sgodin
File length: 45058 byte(s)
Diff to previous 7336
-begin update to behave-turn-05 (use of Channel Numbers) - not yet complete

Revision 7336 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 17 21:21:19 2007 UTC (12 years, 1 month ago) by sgodin
File length: 44211 byte(s)
Diff to previous 7335
- 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

Revision 7335 - (view) (download) (annotate) - [select for diffs]
Modified Wed Oct 17 13:15:57 2007 UTC (12 years, 1 month ago) by sgodin
File length: 43523 byte(s)
Diff to previous 7322
- added asio headers to vsproj for easier searching of asio source
- fixed StunMessage constructor to avoid passing in temporary objects

Revision 7322 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 14 21:00:24 2007 UTC (12 years, 1 month ago) by sgodin
File length: 43553 byte(s)
Diff to previous 7321
Modifications for linux build.

Revision 7321 - (view) (download) (annotate) - [select for diffs]
Added Sun Oct 14 18:18:46 2007 UTC (12 years, 1 month ago) by sgodin
File length: 43549 byte(s)
- initial checkin of reTurn project - Stun/Turn Server and Client Library
- see README.txt for more info and status

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27