Initialize SSL when needed only, and disable SSL on errors
authorAlexander Barton <alex@barton.de>
Fri, 21 Sep 2012 08:36:09 +0000 (10:36 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 21 Sep 2012 08:36:09 +0000 (10:36 +0200)
commitbb20aeb9bcbb27eda540a6df2faf2d07e71d23f3
treecbc940802a2e178f285f2131281a2d5caeda97dc
parent1413a4886ffa120e82d4963368e82b4d5ec6eb2d
Initialize SSL when needed only, and disable SSL on errors

With this patch, the SSL subsystem will only be initialized if at least
one SSL ports is configured; so you won't get "SSL initialization failed"
messages if you didn't configured it at all.

And if SSL initialization fails, no SSL listen ports will be enabled
later which never could establish a working SSL connection at all ...
src/ngircd/conn-ssl.c
src/ngircd/ngircd.c