ngircd-tor/src/ngircd
Tom Ryder b71a0ddbd5 Specify session context for OpenSSL clients
Reconnecting to ngIRCd 22.1 built with OpenSSL with some OpenSSL
clients, including Pidgin and stunnel 5.06, attempts to reuse a session
and fails due to the absence of this line.

The error message in syslog from ngIRCd is:

> SSL protocol error: SSL_accept (error:140D9115:SSL
> routines:SSL_GET_PREV_SESSION:session id context uninitialized)

This patch appears to fix the problem for both Pidgin and stunnel; it
may work for other OpenSSL clients that attempt to re-use sessions.

*   <https://github.com/ngircd/ngircd/issues/182>
*   <https://developer.pidgin.im/ticket/11568>
*   <https://www.openssl.org/docs/ssl/SSL_CTX_set_session_id_context.html>
2015-06-26 16:21:54 +12:00
..
.gitignore Add Cygwin binaries (*.exe) to .gitignore files 2012-12-25 18:52:49 +01:00
Makefile.ng Add new irc-macros.h to project 2013-02-09 23:55:42 +01:00
array.c Streamline DEBUG_ARRAY, DEBUG_BUFFER, DEBUG_IO, DEBUG_ZIP 2014-03-17 23:54:44 +01:00
array.h Fixed some spelling errors in documentation and code comments 2011-12-30 00:50:27 +01:00
channel.c IRC operators w/OperCanMode can kick anyone 2015-05-16 20:48:37 +02:00
channel.h Keep track of who placed bans/invites/excepts 2015-05-11 22:15:00 +02:00
class.c Fixed building issues\ 2015-05-13 20:08:26 +00:00
class.h Change Lists_MakeMask() to receive a buffer for the mask 2013-04-20 00:43:47 +01:00
client-cap.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
client-cap.h "multi-prefix" capability 1/2: implement complete CAP infrastructure 2012-04-28 00:36:41 +02:00
client.c Allow longer usernames for authentication 2014-09-11 22:04:31 +02:00
client.h Allow longer usernames for authentication 2014-09-11 22:04:31 +02:00
conf-ssl.h conf-ssl.h: make code compatible with pre-ANSI C compilers 2013-11-09 23:42:56 +01:00
conf.c Reset "last try" timer when enabling a passive server 2014-12-20 15:31:55 +01:00
conf.h Implement new configuration option "Network" 2013-12-27 23:16:11 +01:00
conn-encoding.c Update copyright notices of recently changed files 2014-03-17 12:22:00 +01:00
conn-encoding.h Implement new IRC+ "CHARCONV" command 2012-09-17 00:56:36 +02:00
conn-func.c Update copyright notices of recently changed files 2014-03-17 12:22:00 +01:00
conn-func.h Get rid of Conn_ResetPenalty(), it is unused 2012-12-31 18:23:21 +01:00
conn-ssl.c Specify session context for OpenSSL clients 2015-06-26 16:21:54 +12:00
conn-ssl.h Rename XXX_Fingerprint to XXX_CertFp 2013-08-04 03:14:27 +01:00
conn-zip.c Streamline DEBUG_ARRAY, DEBUG_BUFFER, DEBUG_IO, DEBUG_ZIP 2014-03-17 23:54:44 +01:00
conn-zip.h Code cleanup: mostly removing empty lines 2011-02-13 17:52:38 +01:00
conn.c Correctly check that a server has a valid hostname and port 2014-09-10 13:03:30 +02:00
conn.h Rename XXX_Fingerprint to XXX_CertFp 2013-08-04 03:14:27 +01:00
defines.h Implement +I (private channel list on whois) 2015-04-29 14:04:06 +02:00
hash.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
hash.h Code cleanup: mostly removing empty lines 2011-02-13 17:52:38 +01:00
io.c Streamline DEBUG_ARRAY, DEBUG_BUFFER, DEBUG_IO, DEBUG_ZIP 2014-03-17 23:54:44 +01:00
io.h Add Doxygen @file documentation to each source and header file 2011-02-13 17:52:38 +01:00
irc-cap.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
irc-cap.h Implement core IRC capability handling and "CAP" command 2012-03-31 15:59:06 +02:00
irc-channel.c Implement numeric RPL_LISTSTART(321) 2015-05-16 20:29:10 +02:00
irc-channel.h Code cleanup: mostly removing empty lines 2011-02-13 17:52:38 +01:00
irc-encoding.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
irc-encoding.h Implement new IRC+ "CHARCONV" command 2012-09-17 00:56:36 +02:00
irc-info.c Streamline effect of "MorePrivacy" option (WHOIS, LIST) 2015-05-13 22:42:51 +02:00
irc-info.h Code cleanup: mostly removing empty lines 2011-02-13 17:52:38 +01:00
irc-login.c Auth PING: Fix our information text for manual sending of "PONG" 2015-01-20 22:50:13 +01:00
irc-login.h Implement SVSNICK command to change remote nicknames 2012-11-02 17:50:31 +01:00
irc-macros.h When sending an error use the IRC_WriteErrClient() variant 2013-11-07 10:45:34 +00:00
irc-metadata.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
irc-metadata.h Implement METADATA command to update client metadata 2012-11-05 23:34:21 +01:00
irc-mode.c Keep track of who placed bans/invites/excepts 2015-05-11 22:15:00 +02:00
irc-mode.h Code cleanup: mostly removing empty lines 2011-02-13 17:52:38 +01:00
irc-op.c Fixed building issues\ 2015-05-13 20:08:26 +00:00
irc-op.h Add missong Doxygen @file tags to ngircd.h and irc-op.h 2011-02-13 17:52:39 +01:00
irc-oper.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
irc-oper.h Implement IRC_xLINE(): handler for "GLINE" and "KLINE" commands 2011-12-25 16:57:36 +01:00
irc-server.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
irc-server.h Code cleanup: mostly removing empty lines 2011-02-13 17:52:38 +01:00
irc-write.c Update copyright notices of recently changed files 2014-03-17 12:22:00 +01:00
irc-write.h Introduce new function IRC_WriteErrClient() 2013-08-07 00:10:50 +02:00
irc.c Update copyright notices of recently changed files 2014-03-17 12:22:00 +01:00
irc.h New function IRC_KillClient() to kill clients 2013-10-01 12:13:17 +02:00
lists.c Fix with oneshot invites 2015-05-15 14:02:37 +02:00
lists.h Fixed building issues\ 2015-05-13 20:08:26 +00:00
log.c Update copyright notices of recently changed files 2014-03-17 12:22:00 +01:00
log.h Correctly re-open syslog logging after reading of configuration 2012-02-14 11:01:13 +01:00
login.c Allow "DefaultUserModes" to set all possible modes 2014-03-18 16:43:21 +01:00
login.h New "login" source file 2012-03-31 15:38:46 +02:00
match.c Fix MatchCaseInsensitive[List]](): lowercase string _and_ pattern 2015-05-13 23:47:53 +02:00
match.h New function MatchCaseInsensitiveList() to check list of patterns 2012-08-26 13:11:45 +02:00
messages.h Merge remote-tracking branch 'LucentW/master' 2015-06-07 21:13:45 +02:00
ngircd.c Make setgroups(3) function optional 2015-06-06 22:19:47 +02:00
ngircd.h Doxygen'ify and update comments in ngircd.{c|h} 2011-02-13 17:52:39 +01:00
numeric.c Enhance debug messages while sending CHANINFO commands 2014-12-20 15:35:49 +01:00
numeric.h Add Doxygen @file documentation to each source and header file 2011-02-13 17:52:38 +01:00
op.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
op.h Op_Check(): return client that initiated the request or NULL 2011-12-25 16:52:31 +01:00
pam.c Update copyright notices of recently changed files 2014-03-17 12:22:00 +01:00
pam.h More spelling fixes 2013-08-04 12:45:11 +01:00
parse.c INVITE command: Enforce 1 second penalty time 2015-04-12 20:14:24 +02:00
parse.h Move IRC_SetPenalty() to Handle_Request() when possible 2013-11-07 16:29:21 +00:00
proc.c Update copyright notices of recently changed files 2014-03-17 12:22:00 +01:00
proc.h New function Proc_Close() to shutdown pipes to child processes 2011-08-23 12:31:17 +02:00
resolve.c Change log message for "Can't resolve address" 2014-12-10 11:11:42 +01:00
resolve.h Add Doxygen @file documentation to each source and header file 2011-02-13 17:52:38 +01:00
sighandlers.c Re-add #include's for header files of the C file itself 2014-03-17 18:02:57 +01:00
sighandlers.h Code cleanup: mostly removing empty lines 2011-02-13 17:52:38 +01:00