transport: SIP SA always expires after 8 hours
commit80e0933b2bbd283c36efb0af43a5e7d8f45b1dc7
authorStefan Becker <chemobejk@gmail.com>
Sun, 22 Mar 2015 13:04:59 +0000 (22 15:04 +0200)
committerStefan Becker <chemobejk@gmail.com>
Sun, 22 Mar 2015 13:09:01 +0000 (22 15:09 +0200)
tree040f865e0baef44671090a0a3d38b36045b72d17
parentea38ced538b96d36183154aa08661eeb55048e84
transport: SIP SA always expires after 8 hours

Triggered by the discussion of an endless 401 loop in

  https://sourceforge.net/p/sipe/discussion/688534/thread/1a259300/

The "expires" value for SIP was handled inconsistently:

 - NTLM:     8 hours
 - Kerberos: ticket expiry time, can be higher than 8 hours
 - TLS-DSK:  certificate expiration time, max 8 hours

But [MS-SIPAE] 3.2.2 "Timers" clearly states that the maximum validity
of the SIP SA is 8 hours. Remove all special expires handling from other
places and handle it only in process_register_response().

Also schedule the re-register event 30 seconds before the timeout. This
is more in line with what we do for other timeouts already.
src/core/sip-sec-tls-dsk.c
src/core/sip-transport.c