]> git.ipfire.org Git - thirdparty/asterisk.git/commit
http.c: Reload TLS even if http.conf hasn't changed
authorSean Bright <sean.bright@gmail.com>
Wed, 3 Oct 2018 12:56:34 +0000 (08:56 -0400)
committerSean Bright <sean.bright@gmail.com>
Wed, 3 Oct 2018 13:35:08 +0000 (08:35 -0500)
commit2b4752911f496d83c2ff53b31211721acbc940a2
tree3767bdc2dcfc14a41d7d0291e992dec38430c520
parentf066dbc353c2c84bcc2df82abf52a74955c1127c
http.c: Reload TLS even if http.conf hasn't changed

There is currently no way to indicate to Asterisk that TLS certificates
and/or keys have been updated other than by modifying http.conf or
restarting Asterisk.

There is already code in main/tcptls.c that determines if a reload is
actually necessary based on the hashes of the certicate and dependent
files, so this change merely gives us a way to request a reload without
explicitly modifying http.conf.

Change-Id: Ie795420dcc7eb3d91336820688a29adbcc321276
main/http.c