-optimization to not calculateHmacKey multiple times

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10213 ddefafc4-47db-0310-ae44-fa13212b10f2
-fix bugs with port allocation logic 
 -properly detect wrap around when end of range is max ushort = 65535
 -properly allocate even or odd port after wrap around from end of range

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10215 ddefafc4-47db-0310-ae44-fa13212b10f2
-if return config file location contains a base path, then append this path to other filename
 settings if an absolute path isn't already specified

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10216 ddefafc4-47db-0310-ae44-fa13212b10f2
-put this back until multiple users auth is working properly

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10217 ddefafc4-47db-0310-ae44-fa13212b10f2
-revert bad change

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10218 ddefafc4-47db-0310-ae44-fa13212b10f2
-short term authentication makes no sense for a TURN server, since credential information
 needs to be exchanged out of band (ie. as with ICE) - remove short term auth option from
 return server - Long Term authentication is enabled by default

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10219 ddefafc4-47db-0310-ae44-fa13212b10f2
-rearrange config file to put users configuration in auth section

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10220 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: refactoring ConnectionBase::wsProcessHandshake() - contributed by Ng Zhi An

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10221 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: testConnectionBase refactoring to handle WebSockets, contributed by Ng Zhi An

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10222 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: refactoring ConnectionBase::wsProcessHandshake() - create response on heap rather than stack

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10223 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: refactoring ConnectionBase::wsProcessHandshake() - further enhancements

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10224 ddefafc4-47db-0310-ae44-fa13212b10f2
-applied patch from Tibor Velencei to fix issue with over active 1xx retransmissions
 "Let's say UAS responses with 100, 183 and 180 to an INVITE. In this case 180 will 
  be repeated 3 times after a minute. The reason is that DUM starts Retransmit1xx timer 
  on every provisional response. When a timer is triggered it is checked by CSeq if it 
  belongs to the last response. But CSeq is always the same as all the responses reply to 
  the same request. Hence all of the 3 timers will cause a 180 retransmission."
 - modified patch slightly to avoid use of secondarySeq in the timer (not required) - slg



git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10225 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: testSocketFunc: new test case

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10227 ddefafc4-47db-0310-ae44-fa13212b10f2
-formatting and new comment

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10228 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: testSocketFunc: expand test case to UDP and TCP

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10229 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: testSocketFunc: expand test case to WSS, add OpenSSL sample command for cert

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10230 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: cease using virtual transport() method from constructors

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10231 ddefafc4-47db-0310-ae44-fa13212b10f2
resip/stack: remove commented virtual transport() methods

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10232 ddefafc4-47db-0310-ae44-fa13212b10f2
reTurn: correct header installation

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10233 ddefafc4-47db-0310-ae44-fa13212b10f2
-treat EGAIN and EWOULDBLOCK the same as recommended here:  http://stackoverflow.com/questions/7003234/which-systems-define-eagain-and-ewouldblock-as-different-values



git-svn-id: https://svn.resiprocate.org/rep/resiprocate/main@10239 ddefafc4-47db-0310-ae44-fa13212b10f2