transport: SIP SA always expires after 8 hours
commit480fa42a000f46512adb6f6137dd71d741fcade4
authorStefan Becker <chemobejk@gmail.com>
Sun, 22 Mar 2015 13:04:59 +0000 (22 15:04 +0200)
committerStefan Becker <chemobejk@gmail.com>
Tue, 31 Mar 2015 09:21:29 +0000 (31 12:21 +0300)
treedd53a9e968e10923921229d9162ec5da8b86abda
parent3ac9d627c9340921b4bc2d90ea44523d23f21e92
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.

(cherry picked from commit 80e0933b2bbd283c36efb0af43a5e7d8f45b1dc7)
src/core/sip-sec-tls-dsk.c
src/core/sip-transport.c